Package org.apache.xerces.impl.xs
Class XSAnnotationImpl
java.lang.Object
org.apache.xerces.impl.xs.XSAnnotationImpl
- All Implemented Interfaces:
org.apache.xerces.xs.XSAnnotation,org.apache.xerces.xs.XSObject
This is an implementation of the XSAnnotation schema component.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: XSAnnotationImpl.java 699892 2008-09-28 21:08:27Z mrglavas $
-
Field Summary
Fields inherited from interface org.apache.xerces.xs.XSAnnotation
SAX_CONTENTHANDLER, W3C_DOM_DOCUMENT, W3C_DOM_ELEMENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA text representation of annotation.getName()The name of typeNCNameof this declaration as defined in XML Namespaces.The [target namespace] of this object, ornullif it is unspecified.org.apache.xerces.xs.XSNamespaceItemA namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.shortgetType()Thetypeof this object, i.e.booleanwriteAnnotation(Object target, short targetType) Write contents of the annotation to the specified DOM object.
-
Constructor Details
-
XSAnnotationImpl
-
-
Method Details
-
writeAnnotation
Write contents of the annotation to the specified DOM object. If the specifiedtargetobject is a DOM in-scope namespace declarations forannotationelement 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:
writeAnnotationin interfaceorg.apache.xerces.xs.XSAnnotation- 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
targetis recognized type and supported by this implementation return true, otherwise return false.
-
getAnnotationString
A text representation of annotation.- Specified by:
getAnnotationStringin interfaceorg.apache.xerces.xs.XSAnnotation
-
getType
public short getType()Thetypeof this object, i.e.ELEMENT_DECLARATION.- Specified by:
getTypein interfaceorg.apache.xerces.xs.XSObject
-
getName
The name of typeNCNameof this declaration as defined in XML Namespaces.- Specified by:
getNamein interfaceorg.apache.xerces.xs.XSObject
-
getNamespace
The [target namespace] of this object, ornullif it is unspecified.- Specified by:
getNamespacein interfaceorg.apache.xerces.xs.XSObject
-
getNamespaceItem
public org.apache.xerces.xs.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:
getNamespaceItemin interfaceorg.apache.xerces.xs.XSObject
-