|
||||||||||
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. |
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. |
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. |
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(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 |
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. |
Method Detail |
---|
void addNamespace(Namespace namespace)
namespace
- the namespace to addvoid detach()
Element getDOM()
QName getElementQName()
IDIndex getIDIndex()
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)
namespace
- the namespace to removeXMLObject resolveID(String id)
id
- the ID attribute to resolve to an XMLObject
XMLObject resolveIDFromRoot(String id)
id
- the ID attribute to resolve to an XMLObject
void 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 object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |