Top Description Fields Methods
org.apache.xerces.xs

public Interface XSAnnotation

extends XSObject
Known Direct Implementers
org.apache.xerces.impl.xs.XSAnnotationImpl

This interface represents the Annotation schema component.

Field Summary

Modifier and TypeField and Description
public static final short
SAX_CONTENTHANDLER

The object type is org.xml.sax.ContentHandler.

public static final short
W3C_DOM_DOCUMENT

The object type is org.w3c.dom.Document.

public static final short
W3C_DOM_ELEMENT

The object type is org.w3c.dom.Element.

Method Summary

Modifier and TypeMethod and Description
public String
getAnnotationString()

A text representation of the annotation.

public boolean

Returns:

True if the target is a recognized type and supported by this implementation, otherwise false.
writeAnnotation
(Object
A target pointer to the annotation target object, i.e. org.w3c.dom.Document, org.w3c.dom.Element , org.xml.sax.ContentHandler.
target
,
short
A target type.
targetType
)

Write contents of the annotation to the specified object.

Inherited from org.apache.xerces.xs.XSObject:
getNamegetNamespacegetNamespaceItemgetType

Field Detail

SAX_CONTENTHANDLERback to summary
public static final short SAX_CONTENTHANDLER

The object type is org.xml.sax.ContentHandler.

W3C_DOM_DOCUMENTback to summary
public static final short W3C_DOM_DOCUMENT

The object type is org.w3c.dom.Document.

W3C_DOM_ELEMENTback to summary
public static final short W3C_DOM_ELEMENT

The object type is org.w3c.dom.Element.

Method Detail

getAnnotationStringback to summary
public String getAnnotationString()

A text representation of the annotation.

writeAnnotationback to summary
public boolean writeAnnotation(Object target, short targetType)

Write contents of the annotation to the specified object. If the specified target is a DOM object, in-scope namespace declarations for annotation element are added as attribute nodes of the serialized annotation, otherwise the corresponding events for all in-scope namespace declarations are sent via the specified document handler.

Parameters
target:Object

A target pointer to the annotation target object, i.e. org.w3c.dom.Document, org.w3c.dom.Element , org.xml.sax.ContentHandler.

targetType:short

A target type.

Returns:boolean

True if the target is a recognized type and supported by this implementation, otherwise false.