|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Memory XML object interface for GXOS API.
$Id: XMLObject.java,v 1.3 2001/10/09 19:19:30 balsoy Exp $
Method Summary | |
void |
addObject(XMLObject object)
Adds an XML object as a child XML object into this XML object. |
java.util.Enumeration |
enumerateChildren()
Returns an enumeration of child objects. |
XMLObject |
getChild(java.lang.String name)
Returns the child object whose name is as given. |
java.lang.String[] |
getChildren()
Returns a list of child XML obhects' names. |
java.lang.String |
getName()
Returns the name of this XML object. |
java.lang.String |
getParameter(java.lang.String key)
Returns the parameter value associated with this attribute value. |
XMLObject |
getParentXMLObject()
Returns the parent of this XML object. |
java.lang.String |
getURI()
Returns the URI of this XML object. |
java.lang.String |
getXML()
Returns contents of this XML object as an XML document. |
void |
removeObject(java.lang.String name)
Removes an XML object from children list of this XML object. |
void |
setParameter(java.lang.String key,
java.lang.String value)
Returns the parameter value associated with this attribute value. |
void |
updateObject()
Writes any changes of XML object back to the database. |
void |
updateObject(XMLObject object)
Replaces an XML object with a new one or updated one. |
Method Detail |
public java.lang.String getName() throws XMLException
XMLException
- if an error is encountered.public java.lang.String getURI() throws XMLException
XMLException
- if an error is encountered.public XMLObject getParentXMLObject() throws XMLException
XMLException
- if an error is encountered.public XMLObject getChild(java.lang.String name) throws XMLException
this object . child_1 . grandchild_1 . child_2 . grandchild_2 . grandchild_3then object retrieval can be
this.getChild("child_1")
or
this.getChild("child_2/grandchild_3")
and so on.
name
- name of the XML objectXMLException
- if an error is encountered.public void addObject(XMLObject object) throws XMLException
object
- any XML object.XMLException
- if an error is encountered.public void updateObject() throws XMLException
XMLException
- if an error is encountered.updateObject(XMLObject)
public void updateObject(XMLObject object) throws XMLException
object
- any XML object.XMLException
- if an error is encountered.updateObject()
public void removeObject(java.lang.String name) throws XMLException
getChild(String)
for name usage.
name
- name of the child object to be removed.XMLException
- if an error is encountered.public java.lang.String getXML() throws XMLException
XMLException
- if an error is encountered.public java.lang.String[] getChildren() throws XMLException
XMLException
- if an error is encountered.public java.util.Enumeration enumerateChildren() throws XMLException
XMLException
- if an error is encountered.public java.lang.String getParameter(java.lang.String key) throws XMLException
key
- key to retrieve a parameter valuesetParameter(java.lang.String, java.lang.String)
public void setParameter(java.lang.String key, java.lang.String value) throws XMLException
key
- key that the value will be associated.value
- value to retrive with the given key.getParameter(java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |