Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.xs

public Class XSAnnotationImpl

extends Object
implements XSAnnotation
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xs.XSAnnotation, com.sun.org.apache.xerces.internal.xs.XSObject
Imports
java.io.IOException, .StringReader, com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl, com.sun.org.apache.xerces.internal.parsers.DOMParser, .SAXParser, com.sun.org.apache.xerces.internal.xs.XSAnnotation, .XSConstants, .XSNamespaceItem, org.w3c.dom.Document, .Element, .Node, org.xml.sax.ContentHandler, .InputSource, .SAXException

This is an implementation of the XSAnnotation schema component.

Field Summary

Modifier and TypeField and Description
private String
private SchemaGrammar

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public String
getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of type NCName of this declaration as defined in XML Namespaces.

public String
getNamespace()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespace.

The [target namespace] of this object, or null if it is unspecified.

public XSNamespaceItem
getNamespaceItem()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.

public short
getType()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getType.

The type of this object, i.e. ELEMENT_DECLARATION.

public boolean

Returns:

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

Implements com.sun.org.apache.xerces.internal.xs.XSAnnotation.writeAnnotation.

Write contents of the annotation to the specified DOM object.

private synchronized void
writeToDOM(Node target, short type)

private synchronized void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fDataback to summary
private String fData
fGrammarback to summary
private SchemaGrammar fGrammar

Constructor Detail

XSAnnotationImplback to summary
public XSAnnotationImpl(String contents, SchemaGrammar grammar)

Method Detail

getAnnotationStringback to summary
public String getAnnotationString()

Implements com.sun.org.apache.xerces.internal.xs.XSAnnotation.getAnnotationString.

A text representation of annotation.

getNameback to summary
public String getName()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getName.

The name of type NCName of this declaration as defined in XML Namespaces.

getNamespaceback to summary
public String getNamespace()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespace.

The [target namespace] of this object, or null if it is unspecified.

getNamespaceItemback to summary
public XSNamespaceItem getNamespaceItem()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getNamespaceItem.

A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise.

getTypeback to summary
public short getType()

Implements com.sun.org.apache.xerces.internal.xs.XSObject.getType.

The type of this object, i.e. ELEMENT_DECLARATION.

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

Implements com.sun.org.apache.xerces.internal.xs.XSAnnotation.writeAnnotation.

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

Parameters
target:Object

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

targetType:short

A target type.

Returns:boolean

If the target is recognized type and supported by this implementation return true, otherwise return false.

writeToDOMback to summary
private synchronized void writeToDOM(Node target, short type)
writeToSAXback to summary
private synchronized void writeToSAX(ContentHandler handler)