| uk.org.ponder.saxalizer.GenericSAX
All known Subclasses: uk.org.ponder.saxalizer.GenericSAXImpl,
GenericSAX | public interface GenericSAX extends SAXalizableExtraAttrs,DeSAXalizable(Code) | | Classes implementing the GenericSAX interface do not have
specifically named methods for all of the subobjects that they
want serialized as XML. Instead, objects of arbitary types are
piled into them via the addChild method, and read
out by the size and elementAt
methods. This makes GenericSAX objects very much more like
DOM nodes than plain SAXalizable objects.
Note - the "Generic" infrastructure has not been recently used and is
not supported by the current SAXalizer infrastructure.
|
Method Summary | |
public void | addChild(GenericSAX child) Adds the specified node to this node as a child. | public GenericSAXImpl | findChild(String tagname) Finds the first (if any) child node having the specified tag.
Parameters: The - required tag to be found. | public Enumeration | getChildEnum() Returns an enumeration of all child nodes for this node. | public String | getData() Gets the (text) data, if any, associated with this XML node. | public String | getTag() Gets the XML tag that will be supplied to this object in its serialized form. | public void | setData(String s) Sets the text data associated with this XML node. | public void | setTag(String s) Sets the XML tag that will be applied to this object in its serialized form. | public int | size() Returns the number of child nodes for this node. |
addChild | public void addChild(GenericSAX child)(Code) | | Adds the specified node to this node as a child.
Parameters: child - The required child node. |
findChild | public GenericSAXImpl findChild(String tagname)(Code) | | Finds the first (if any) child node having the specified tag.
Parameters: The - required tag to be found. The first child node bearing the supplied tag, if any, ornull if no such child exists. |
getChildEnum | public Enumeration getChildEnum()(Code) | | Returns an enumeration of all child nodes for this node.
The required enumeration of all child nodes. |
getData | public String getData()(Code) | | Gets the (text) data, if any, associated with this XML node. Note that text is
currently not supported for nodes which in addition have children.
The required text data. |
getTag | public String getTag()(Code) | | Gets the XML tag that will be supplied to this object in its serialized form.
The required XML tag. |
setData | public void setData(String s)(Code) | | Sets the text data associated with this XML node.
Parameters: s - The required text data. |
setTag | public void setTag(String s)(Code) | | Sets the XML tag that will be applied to this object in its serialized form.
Parameters: s - The required XML tag. |
size | public int size()(Code) | | Returns the number of child nodes for this node.
The required number of child nodes. |
|
|