| uk.org.ponder.conversion.LeafObjectParser
All known Subclasses: uk.org.ponder.conversion.DateParser, uk.org.ponder.conversion.StringArrayParser, uk.org.ponder.xml.RandomAccessPointer, uk.org.ponder.conversion.StringableLeafTypeParser, uk.org.ponder.conversion.BooleanParser, uk.org.ponder.matrix.MatrixParser, uk.org.ponder.conversion.ClassParser, uk.org.ponder.conversion.doubleArrayParser, uk.org.ponder.rsf.viewstate.support.ViewParamsLeafParser, uk.org.ponder.conversion.DateParserParser, uk.org.ponder.rsf.components.ELReferenceParser, uk.org.ponder.conversion.intArrayParser,
LeafObjectParser | public interface LeafObjectParser (Code) | | A minimal interface which expresses the conversion of simple (leaf,
non-composite) objects to and from a String representation.
|
Method Summary | |
public Object | copy(Object tocopy) Clones an object by returning an equivalent object which shares no
state with the original. | Object | parse(String toparse) Parses a leaf object (i.e. | String | render(Object torender) The DeSAXalizer calls this method when it wishes to render a leaf node
object into textual form.
Parameters: torender - The object to be rendered. |
copy | public Object copy(Object tocopy)(Code) | | Clones an object by returning an equivalent object which shares no
state with the original. For most leaf objects simply returns the original
if they are known to be immutable.
This method is useful since the JDK Object.clone() method is not only
vastly inefficient (costing around a microsecond per throw) but also
greatly intrusive.
|
parse | Object parse(String toparse)(Code) | | Parses a leaf object (i.e. one which is not composite) from a String
representation.
Parameters: toparse - The putative leaf data to be parsed. The successfully parsed object. |
render | String render(Object torender)(Code) | | The DeSAXalizer calls this method when it wishes to render a leaf node
object into textual form.
Parameters: torender - The object to be rendered. A String holding the rendered text. |
|
|