org.apache.xerces.impl.xs
Class XSAnnotationImpl
java.lang.Objectorg.apache.xerces.impl.xs.XSAnnotationImpl
- org.apache.xerces.xs.XSAnnotation
public class XSAnnotationImpl
extends java.lang.Object
implements org.apache.xerces.xs.XSAnnotation
This is an implementation of the XSAnnotation schema component.
$Id: XSAnnotationImpl.java 446734 2006-09-15 20:51:23Z mrglavas $
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.
|
org.apache.xerces.xs.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.
|
XSAnnotationImpl
public XSAnnotationImpl(String contents,
SchemaGrammar grammar)
getAnnotationString
public String getAnnotationString()
A text representation of annotation.
- getAnnotationString in interface org.apache.xerces.xs.XSAnnotation
getName
public String getName()
The name of type NCName of this declaration as defined in
XML Namespaces.
- getName in interface org.apache.xerces.xs.XSObject
getNamespace
public String getNamespace()
The [target namespace] of this object, or null if it is
unspecified.
- getNamespace in interface org.apache.xerces.xs.XSObject
getNamespaceItem
public org.apache.xerces.xs.XSNamespaceItem getNamespaceItem()
A namespace schema information item corresponding to the target
namespace of the component, if it's globally declared; or null
otherwise.
- getNamespaceItem in interface org.apache.xerces.xs.XSObject
getType
public short getType()
The type of this object, i.e.
ELEMENT_DECLARATION.
- getType in interface org.apache.xerces.xs.XSObject
writeAnnotation
public boolean writeAnnotation(Object target,
short targetType) 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.
- writeAnnotation in interface org.apache.xerces.xs.XSAnnotation
target - A target pointer to the annotation target object, i.e.
org.w3c.dom.Document,
org.xml.sax.ContentHandler.targetType - A target type.
- If the
target is recognized type and supported by
this implementation return true, otherwise return false.
Copyright B) 1999-2007 The Apache Software Foundation. All Rights Reserved.