public interface XSAnnotation extends XSObject
Modifier and Type | Field and Description |
---|---|
static short |
SAX_CONTENTHANDLER
The object type is
org.xml.sax.ContentHandler . |
static short |
W3C_DOM_DOCUMENT
The object type is
org.w3c.dom.Document . |
static short |
W3C_DOM_ELEMENT
The object type is
org.w3c.dom.Element . |
Modifier and Type | Method and Description |
---|---|
String |
getAnnotationString()
A text representation of the annotation.
|
boolean |
writeAnnotation(Object target,
short targetType)
Write contents of the annotation to the specified object.
|
getName, getNamespace, getNamespaceItem, getType
static final short W3C_DOM_ELEMENT
org.w3c.dom.Element
.static final short SAX_CONTENTHANDLER
org.xml.sax.ContentHandler
.static final short W3C_DOM_DOCUMENT
org.w3c.dom.Document
.boolean writeAnnotation(Object target, short targetType)
target
is a DOM object, in-scope namespace
declarations for annotation
element are added as
attribute nodes of the serialized annotation
, otherwise
the corresponding events for all in-scope namespace declarations are
sent via the specified document handler.target
- A target pointer to the annotation target object, i.e.
org.w3c.dom.Document
, org.w3c.dom.Element
, org.xml.sax.ContentHandler
.targetType
- A target type.target
is a recognized type and
supported by this implementation, otherwise false.String getAnnotationString()
Copyright © 2021 JBoss by Red Hat. All rights reserved.