|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.impl.xs.XSAnnotationImpl
public class XSAnnotationImpl
This is an implementation of the XSAnnotation schema component.
Field Summary |
---|
Fields inherited from interface org.apache.xerces.xs.XSAnnotation |
---|
SAX_CONTENTHANDLER, W3C_DOM_DOCUMENT, W3C_DOM_ELEMENT |
Constructor Summary | |
---|---|
XSAnnotationImpl(java.lang.String contents,
SchemaGrammar grammar)
|
Method Summary | |
---|---|
java.lang.String |
getAnnotationString()
A text representation of annotation. |
java.lang.String |
getName()
The name of type NCName of this declaration as defined in
XML Namespaces. |
java.lang.String |
getNamespace()
The [target namespace] of this object, or null if it is
unspecified. |
XSNamespaceItem |
getNamespaceItem()
A namespace schema information item corresponding to the target namespace of the component, if it's globally declared; or null otherwise. |
short |
getType()
The type of this object, i.e. |
boolean |
writeAnnotation(java.lang.Object target,
short targetType)
Write contents of the annotation to the specified DOM object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSAnnotationImpl(java.lang.String contents, SchemaGrammar grammar)
Method Detail |
---|
public boolean writeAnnotation(java.lang.Object target, short targetType)
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.
writeAnnotation
in interface XSAnnotation
target
- A target pointer to the annotation target object, i.e.
org.w3c.dom.Document
,
org.xml.sax.ContentHandler
.targetType
- A target type.
target
is recognized type and supported by
this implementation return true, otherwise return false.public java.lang.String getAnnotationString()
getAnnotationString
in interface XSAnnotation
public short getType()
type
of this object, i.e.
ELEMENT_DECLARATION
.
getType
in interface XSObject
public java.lang.String getName()
NCName
of this declaration as defined in
XML Namespaces.
getName
in interface XSObject
public java.lang.String getNamespace()
null
if it is
unspecified.
getNamespace
in interface XSObject
public XSNamespaceItem getNamespaceItem()
getNamespaceItem
in interface XSObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |