|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLObject
A object that represents an XML element, usually of a specific schema type, that has been unmarshalled into this Java object.
Method Summary | |
---|---|
void |
addNamespace(Namespace namespace)
Adds a namespace to the ones already scoped to this element. |
org.w3c.dom.Element |
getDOM()
Gets the DOM representation of this XMLObject, if one exists. |
javax.xml.namespace.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. |
java.util.Set<Namespace> |
getNamespaces()
Gets the namespaces that are scoped to this element. |
java.lang.String |
getNoNamespaceSchemaLocation()
Gets the value of the XML Schema noNamespaceSchemaLocation attribute for this object. |
java.util.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. |
java.lang.String |
getSchemaLocation()
Gets the value of the XML Schema schemaLocation attribute for this object. |
javax.xml.namespace.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. |
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)
Removes a namespace from this element. |
XMLObject |
resolveID(java.lang.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(java.lang.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(org.w3c.dom.Element dom)
Sets the DOM representation of this XMLObject. |
void |
setNoNamespaceSchemaLocation(java.lang.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(java.lang.String location)
Sets the value of the XML Schema schemaLocation attribute for this object. |
Method Detail |
---|
javax.xml.namespace.QName getElementQName()
java.util.Set<Namespace> getNamespaces()
void addNamespace(Namespace namespace)
namespace
- the namespace to addvoid removeNamespace(Namespace namespace)
namespace
- the namespace to removejava.lang.String getSchemaLocation()
void setSchemaLocation(java.lang.String location)
location
- value of the XML Schema schemaLocation attribute for this objectjava.lang.String getNoNamespaceSchemaLocation()
void setNoNamespaceSchemaLocation(java.lang.String location)
location
- value of the XML Schema noNamespaceSchemaLocation attribute for this objectjavax.xml.namespace.QName getSchemaType()
boolean hasParent()
XMLObject getParent()
void setParent(XMLObject parent)
parent
- the parent of this elementboolean hasChildren()
java.util.List<XMLObject> getOrderedChildren()
org.w3c.dom.Element getDOM()
void setDOM(org.w3c.dom.Element dom)
dom
- DOM representation of this XMLObjectvoid releaseDOM()
void releaseParentDOM(boolean propagateRelease)
propagateRelease
- true if all ancestors of this element should release thier DOMvoid releaseChildrenDOM(boolean propagateRelease)
propagateRelease
- true if all descendants of this element should release thier DOMXMLObject resolveID(java.lang.String id)
id
- the ID attribute to resolve to an XMLObject
XMLObject resolveIDFromRoot(java.lang.String id)
id
- the ID attribute to resolve to an XMLObject
IDIndex getIDIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |