public interface ParserDef
licas
system. This interface needs
to be implemented so that the main parser class knows what method to invoke. It is added to
this package, so that the parser classes of this package can be included in the main licas
package automatically.Modifier and Type | Method and Description |
---|---|
<T> T |
parse(org.licas_xml.abs.Element toParse)
Parse the XML element back into the appropriate Object.
|
<T> org.licas_xml.abs.Element |
serialize(T toSerialize)
Serialize the object into an XML element.
|
<T> org.licas_xml.abs.Element serialize(T toSerialize) throws java.lang.Exception
T
- generic serialize type.toSerialize
- the object to serialize.java.lang.Exception
- any error.<T> T parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception
T
- generic serialize type.toParse
- the element to parse.java.lang.Exception
- any error.