| org.cougaar.planning.servlet.data.xml.DeXMLable
All known Subclasses: org.cougaar.logistics.servlet.ConditionData, org.cougaar.planning.servlet.data.Failure, org.cougaar.planning.servlet.data.completion.CompletionData, org.cougaar.planning.servlet.data.hierarchy.Organization, org.cougaar.planning.servlet.data.hierarchy.HierarchyData, org.cougaar.planning.servlet.data.completion.AbstractTask,
DeXMLable | public interface DeXMLable (Code) | | Classes conforming to this interface can DEserialize themselves
from a slightly restricted XML format.
The XML format used, does not allow character data between or
following nested tags. For example:
OK
OK
NOT OK
OK
NOT OK
since: 1/24/01 |
closeTag | boolean closeTag(String name) throws UnexpectedXMLException(Code) | | Report an endElement.
Parameters: name - endElement tag true iff the object is DONE being deXMLized |
completeSubObject | void completeSubObject(String name, DeXMLable obj) throws UnexpectedXMLException(Code) | | This function will be called whenever a subobject has
completed de-XMLizing and needs to be encorporated into
this object.
Parameters: name - the startElement tag that caused this subobjectto be created Parameters: obj - the object itself |
openTag | void openTag(String name, Attributes attr, String data) throws UnexpectedXMLException(Code) | | Report a startElement that pertains to THIS object, not any
sub objects. Call also provides the elements Attributes and data.
Note, that unlike in a SAX parser, data is guaranteed to contain
ALL of this tag's data, not just a 'chunk' of it.
Parameters: name - startElement tag Parameters: attr - attributes for this tag Parameters: data - data for this tag |
|
|