|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.gxos.gndi.context.TreeObjectContext
Memory XML object interface for GXOS API.
$Id: TreeObjectContext.java,v 1.1 2001/10/09 18:54:32 balsoy Exp $
| Constructor Summary | |
TreeObjectContext()
|
|
| 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. |
GxContext |
getContext()
Returns the memory container of this GXOS object. |
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 |
setContext(GxContext container)
Sets the memory container for this GXOS 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TreeObjectContext()
| Method Detail |
public void setContext(GxContext container)
throws XMLException
container - memory container which will hold this GXOS object.XMLException - if an error is encountered.public GxContext getContext()
public java.lang.String getName()
throws XMLException
getName in interface XMLObjectXMLException - if an error is encountered.
public java.lang.String getURI()
throws XMLException
getURI in interface XMLObjectXMLException - if an error is encountered.
public XMLObject getParentXMLObject()
throws XMLException
getParentXMLObject in interface XMLObjectXMLException - 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_3
then object retrieval can be
this.getChild("child_1") or
this.getChild("child_2/grandchild_3") and so on.
getChild in interface XMLObjectname - name of the XML objectXMLException - if an error is encountered.
public void addObject(XMLObject object)
throws XMLException
addObject in interface XMLObjectobject - any XML object.XMLException - if an error is encountered.
public void updateObject()
throws XMLException
updateObject in interface XMLObjectXMLException - if an error is encountered.updateObject(XMLObject)
public void updateObject(XMLObject object)
throws XMLException
updateObject in interface XMLObjectobject - any XML object.XMLException - if an error is encountered.updateObject()
public void removeObject(java.lang.String name)
throws XMLException
getChild(String) for name usage.
removeObject in interface XMLObjectname - name of the child object to be removed.XMLException - if an error is encountered.
public java.lang.String getXML()
throws XMLException
getXML in interface XMLObjectXMLException - if an error is encountered.
public java.lang.String[] getChildren()
throws XMLException
getChildren in interface XMLObjectXMLException - if an error is encountered.
public java.util.Enumeration enumerateChildren()
throws XMLException
enumerateChildren in interface XMLObjectXMLException - if an error is encountered.
public java.lang.String getParameter(java.lang.String key)
throws XMLException
getParameter in interface XMLObjectkey - 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
setParameter in interface XMLObjectkey - 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 | ||||||||