- All Superinterfaces:
XSObject
This interface represents the Annotation schema component.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
The object type isorg.xml.sax.ContentHandler
.static final short
The object type isorg.w3c.dom.Document
.static final short
The object type isorg.w3c.dom.Element
. -
Method Summary
Modifier and TypeMethodDescriptionA text representation of the annotation.boolean
writeAnnotation
(Object target, short targetType) Write contents of the annotation to the specified object.Methods inherited from interface org.apache.jena.ext.xerces.xs.XSObject
getName, getNamespace, getNamespaceItem, getType
-
Field Details
-
W3C_DOM_ELEMENT
static final short W3C_DOM_ELEMENTThe object type isorg.w3c.dom.Element
.- See Also:
-
SAX_CONTENTHANDLER
static final short SAX_CONTENTHANDLERThe object type isorg.xml.sax.ContentHandler
.- See Also:
-
W3C_DOM_DOCUMENT
static final short W3C_DOM_DOCUMENTThe object type isorg.w3c.dom.Document
.- See Also:
-
-
Method Details
-
writeAnnotation
Write contents of the annotation to the specified object. If the specifiedtarget
is a DOM object, in-scope namespace declarations forannotation
element 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
target
is a recognized type and supported by this implementation, otherwise false.
-
getAnnotationString
String getAnnotationString()A text representation of the annotation.
-