Interface XSAnnotation
-
- All Superinterfaces:
XSObject
- All Known Implementing Classes:
XSAnnotationImpl
public interface XSAnnotation extends XSObject
This interface represents the Annotation schema component.
-
-
Field Summary
Fields Modifier and Type Field Description static shortSAX_CONTENTHANDLERThe object type isorg.xml.sax.ContentHandler.static shortW3C_DOM_DOCUMENTThe object type isorg.w3c.dom.Document.static shortW3C_DOM_ELEMENTThe object type isorg.w3c.dom.Element.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAnnotationString()A text representation of the annotation.booleanwriteAnnotation(Object target, short targetType)Write contents of the annotation to the specified object.-
Methods inherited from interface org.smooks.engine.delivery.sax.ng.org.apache.xerces.xs.XSObject
getName, getNamespace, getNamespaceItem, getType
-
-
-
-
Field Detail
-
W3C_DOM_ELEMENT
static final short W3C_DOM_ELEMENT
The object type isorg.w3c.dom.Element.- See Also:
- Constant Field Values
-
SAX_CONTENTHANDLER
static final short SAX_CONTENTHANDLER
The object type isorg.xml.sax.ContentHandler.- See Also:
- Constant Field Values
-
W3C_DOM_DOCUMENT
static final short W3C_DOM_DOCUMENT
The object type isorg.w3c.dom.Document.- See Also:
- Constant Field Values
-
-
Method Detail
-
writeAnnotation
boolean writeAnnotation(Object target, short targetType)
Write contents of the annotation to the specified object. If the specifiedtargetis a DOM object, in-scope namespace declarations forannotationelement are added as attribute nodes of the serializedannotation, otherwise the corresponding events for all in-scope namespace declarations are sent via the specified document handler.- Parameters:
target- A target pointer to the annotation target object, i.e.org.w3c.dom.Document,org.w3c.dom.Element,org.xml.sax.ContentHandler.targetType- A target type.- Returns:
- True if the
targetis a recognized type and supported by this implementation, otherwise false.
-
getAnnotationString
String getAnnotationString()
A text representation of the annotation.
-
-