Class XSAnnotationImpl
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.xs.XSAnnotationImpl
-
- All Implemented Interfaces:
XSAnnotation
,XSObject
public class XSAnnotationImpl extends Object implements XSAnnotation
This is an implementation of the XSAnnotation schema component.- Version:
- $Id$
-
-
Field Summary
-
Fields inherited from interface org.smooks.engine.delivery.sax.ng.org.apache.xerces.xs.XSAnnotation
SAX_CONTENTHANDLER, W3C_DOM_DOCUMENT, W3C_DOM_ELEMENT
-
-
Constructor Summary
Constructors Constructor Description XSAnnotationImpl(String contents, SchemaGrammar grammar)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAnnotationString()
A text representation of annotation.String
getName()
The name of typeNCName
of this declaration as defined in XML Namespaces.String
getNamespace()
The [target namespace] of this object, ornull
if it is unspecified.XSNamespaceItem
getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.short
getType()
Thetype
of this object, i.e.boolean
writeAnnotation(Object target, short targetType)
Write contents of the annotation to the specified DOM object.
-
-
-
Constructor Detail
-
XSAnnotationImpl
public XSAnnotationImpl(String contents, SchemaGrammar grammar)
-
-
Method Detail
-
writeAnnotation
public boolean writeAnnotation(Object target, short targetType)
Write contents of the annotation to the specified DOM object. If the specifiedtarget
object is a DOM in-scope namespace declarations forannotation
element are added as attributes nodes of the serializedannotation
, otherwise the corresponding events for all in-scope namespace declaration are sent via specified document handler.- Specified by:
writeAnnotation
in interfaceXSAnnotation
- Parameters:
target
- A target pointer to the annotation target object, i.e.org.w3c.dom.Document
,org.xml.sax.ContentHandler
.targetType
- A target type.- Returns:
- If the
target
is recognized type and supported by this implementation return true, otherwise return false.
-
getAnnotationString
public String getAnnotationString()
A text representation of annotation.- Specified by:
getAnnotationString
in interfaceXSAnnotation
-
getType
public short getType()
Thetype
of this object, i.e.ELEMENT_DECLARATION
.
-
getName
public String getName()
The name of typeNCName
of this declaration as defined in XML Namespaces.
-
getNamespace
public String getNamespace()
The [target namespace] of this object, ornull
if it is unspecified.- Specified by:
getNamespace
in interfaceXSObject
-
getNamespaceItem
public XSNamespaceItem getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.- Specified by:
getNamespaceItem
in interfaceXSObject
-
-