public interface

XSAnnotation

implements XSObject
org.apache.xerces.xs.XSAnnotation
Known Indirect Subclasses

Class Overview

This interface represents the Annotation schema component.

Summary

Constants
short SAX_CONTENTHANDLER The object type is org.xml.sax.ContentHandler.
short W3C_DOM_DOCUMENT The object type is org.w3c.dom.Document.
short W3C_DOM_ELEMENT The object type is org.w3c.dom.Element.
Public Methods
abstract String getAnnotationString()
A text representation of the annotation.
abstract boolean writeAnnotation(Object target, short targetType)
Write contents of the annotation to the specified object.
[Expand]
Inherited Methods
From interface org.apache.xerces.xs.XSObject

Constants

public static final short SAX_CONTENTHANDLER

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

Constant Value: 2 (0x00000002)

public static final short W3C_DOM_DOCUMENT

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

Constant Value: 3 (0x00000003)

public static final short W3C_DOM_ELEMENT

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

Constant Value: 1 (0x00000001)

Public Methods

public abstract String getAnnotationString ()

A text representation of the annotation.

public abstract 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 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.