public class XSAnnotationImpl extends Object implements XSAnnotation
SAX_CONTENTHANDLER, W3C_DOM_DOCUMENT, W3C_DOM_ELEMENT| Constructor and Description |
|---|
XSAnnotationImpl(String contents,
SchemaGrammar grammar) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAnnotationString()
A text representation of annotation.
|
String |
getName()
The name of type
NCName of this declaration as defined in
XML Namespaces. |
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(Object target,
short targetType)
Write contents of the annotation to the specified DOM object.
|
public XSAnnotationImpl(String contents, SchemaGrammar grammar)
public boolean writeAnnotation(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 XSAnnotationtarget - 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 String getAnnotationString()
getAnnotationString in interface XSAnnotationpublic short getType()
type of this object, i.e.
ELEMENT_DECLARATION.public String getName()
NCName of this declaration as defined in
XML Namespaces.public String getNamespace()
null if it is
unspecified.getNamespace in interface XSObjectpublic XSNamespaceItem getNamespaceItem()
getNamespaceItem in interface XSObjectCopyright © 2012 JBoss by Red Hat. All Rights Reserved.