FileDocCategorySizeDatePackage
XSAnnotation.javaAPI DocJava SE 5 API4333Fri Aug 26 14:55:58 BST 2005com.sun.org.apache.xerces.internal.xs

XSAnnotation

public interface XSAnnotation implements XSObject
This interface represents the Annotation schema component.

Fields Summary
public static final short
W3C_DOM_ELEMENT
The object type is org.w3c.dom.Element.
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.
Constructors Summary
Methods Summary
public java.lang.StringgetAnnotationString()
A text representation of the annotation.

public booleanwriteAnnotation(java.lang.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.

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