Top Description Fields Constructors Methods
org.apache.xerces.impl.xs

public Class XSAnnotationImpl

extends Object
implements XSAnnotation
Class Inheritance
All Implemented Interfaces
org.apache.xerces.xs.XSAnnotation, org.apache.xerces.xs.XSObject
Imports
java.io.IOException, .StringReader, org.apache.xerces.dom.CoreDocumentImpl, org.apache.xerces.parsers.DOMParser, .SAXParser, org.apache.xerces.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.
Version
$Id: XSAnnotationImpl.java 699892 2008-09-28 21:08:27Z mrglavas $

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
getAnnotationString()

Implements org.apache.xerces.xs.XSAnnotation.getAnnotationString.

A text representation of annotation.
public String
getName()

Implements org.apache.xerces.xs.XSObject.getName.

The name of type NCName of this declaration as defined in XML Namespaces.
public String
getNamespace()

Implements org.apache.xerces.xs.XSObject.getNamespace.

The [target namespace] of this object, or null if it is unspecified.
public XSNamespaceItem
getNamespaceItem()

Implements org.apache.xerces.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 org.apache.xerces.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 org.apache.xerces.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 org.apache.xerces.xs.XSAnnotation.getAnnotationString.

A text representation of annotation.

getNameback to summary
public String getName()

Implements org.apache.xerces.xs.XSObject.getName.

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

getNamespaceback to summary
public String getNamespace()

Implements org.apache.xerces.xs.XSObject.getNamespace.

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

getNamespaceItemback to summary
public XSNamespaceItem getNamespaceItem()

Implements org.apache.xerces.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 org.apache.xerces.xs.XSObject.getType.

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

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

Implements org.apache.xerces.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)