public interface XMLObject
Modifier and Type | Method and Description |
---|---|
void |
addNamespace(Namespace namespace)
Deprecated.
use appropriate methods on the XMLObject's
NamespaceManager . |
void |
detach()
Detaches the XMLObject from its parent.
|
Element |
getDOM()
Gets the DOM representation of this XMLObject, if one exists.
|
QName |
getElementQName()
Gets the QName for this element.
|
IDIndex |
getIDIndex()
Get the IDIndex holding the ID-to-XMLObject index mapping, rooted at this XMLObject's subtree.
|
NamespaceManager |
getNamespaceManager()
Gets the
NamespaceManager instance for this object. |
Set<Namespace> |
getNamespaces()
Gets the namespaces that are scoped to this element.
|
String |
getNoNamespaceSchemaLocation()
Gets the value of the XML Schema noNamespaceSchemaLocation attribute for this object.
|
List<XMLObject> |
getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
|
XMLObject |
getParent()
Gets the parent of this element or null if there is no parent.
|
String |
getSchemaLocation()
Gets the value of the XML Schema schemaLocation attribute for this object.
|
QName |
getSchemaType()
Gets the XML schema type of this element.
|
boolean |
hasChildren()
Checks if this XMLObject has children.
|
boolean |
hasParent()
Checks to see if this object has a parent.
|
Boolean |
isNil()
Gets whether the object declares that its element content
is null, which corresponds to an
xsi:nil
attribute of true . |
XSBooleanValue |
isNilXSBoolean()
Gets whether the object declares that its element content
is null, which corresponds to an
xsi:nil
attribute of true . |
void |
releaseChildrenDOM(boolean propagateRelease)
Releases the DOM representation of this XMLObject's children.
|
void |
releaseDOM()
Releases the DOM representation of this XMLObject, if there is one.
|
void |
releaseParentDOM(boolean propagateRelease)
Releases the DOM representation of this XMLObject's parent.
|
void |
removeNamespace(Namespace namespace)
Deprecated.
use appropriate methods on the XMLObject's
NamespaceManager . |
XMLObject |
resolveID(String id)
Find the XMLObject which is identified by the specified ID attribute, within the subtree of XMLObjects which has
this XMLObject as its root.
|
XMLObject |
resolveIDFromRoot(String id)
Find the XMLObject which is identified by the specified ID attribute, from the root of the tree of XMLObjects in
which this XMLObject is a member.
|
void |
setDOM(Element dom)
Sets the DOM representation of this XMLObject.
|
void |
setNil(Boolean newNil)
Sets whether the object declares that its element content
is null, which corresponds to an
xsi:nil
attribute of true . |
void |
setNil(XSBooleanValue newNil)
Sets whether the object declares that its element content
is null, which corresponds to an
xsi:nil
attribute of true . |
void |
setNoNamespaceSchemaLocation(String location)
Sets the value of the XML Schema noNamespaceSchemaLocation attribute for this object.
|
void |
setParent(XMLObject parent)
Sets the parent of this element.
|
void |
setSchemaLocation(String location)
Sets the value of the XML Schema schemaLocation attribute for this object.
|
void addNamespace(Namespace namespace)
NamespaceManager
.namespace
- the namespace to addvoid detach()
Element getDOM()
QName getElementQName()
IDIndex getIDIndex()
NamespaceManager getNamespaceManager()
NamespaceManager
instance for this object.Set<Namespace> getNamespaces()
String getNoNamespaceSchemaLocation()
List<XMLObject> getOrderedChildren()
XMLObject getParent()
String getSchemaLocation()
QName getSchemaType()
boolean hasChildren()
boolean hasParent()
void releaseChildrenDOM(boolean propagateRelease)
propagateRelease
- true if all descendants of this element should release their DOMvoid releaseDOM()
void releaseParentDOM(boolean propagateRelease)
propagateRelease
- true if all ancestors of this element should release their DOMvoid removeNamespace(Namespace namespace)
NamespaceManager
.namespace
- the namespace to removeXMLObject resolveID(String id)
id
- the ID attribute to resolve to an XMLObjectXMLObject resolveIDFromRoot(String id)
id
- the ID attribute to resolve to an XMLObjectvoid setDOM(Element dom)
dom
- DOM representation of this XMLObjectvoid setNoNamespaceSchemaLocation(String location)
location
- value of the XML Schema noNamespaceSchemaLocation attribute for this objectvoid setParent(XMLObject parent)
parent
- the parent of this elementvoid setSchemaLocation(String location)
location
- value of the XML Schema schemaLocation attribute for this objectBoolean isNil()
xsi:nil
attribute of true
.
Note that it is up to the developer to ensure that the value of this attribute is consistent with the actual element content on the object instance.
Per the XML Schema specification, a value of true disallows element content, but not element attributes.
XSBooleanValue isNilXSBoolean()
xsi:nil
attribute of true
.
Note that it is up to the developer to ensure that the value of this attribute is consistent with the actual element content on the object instance.
Per the XML Schema specification, a value of true disallows element content, but not element attributes.
void setNil(Boolean newNil)
xsi:nil
attribute of true
.
Note that it is up to the developer to ensure that the value of this attribute is consistent with the actual element content on the object instance.
Per the XML Schema specification, a value of true disallows element content, but not element attributes.
newNil
- whether the object's content model is expressed as nullvoid setNil(XSBooleanValue newNil)
xsi:nil
attribute of true
.
Note that it is up to the developer to ensure that the value of this attribute is consistent with the actual element content on the object instance.
Per the XML Schema specification, a value of true disallows element content, but not element attributes.
Copyright © 2018 JBoss by Red Hat. All rights reserved.