public class FileObjectParser
extends java.lang.Object
implements org.ai_heuristic.def.ParserDef
FileObject
to or from XML.Constructor and Description |
---|
FileObjectParser()
Creates a new instance of FileObjectParser
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
parse(org.licas_xml.abs.Element fileXml)
Parse the xml element to return the java object.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object nextObj)
Convert the file object into xml format if a parser exists.
|
public FileObjectParser()
public java.lang.Object parse(org.licas_xml.abs.Element fileXml) throws java.lang.Exception
parse
in interface org.ai_heuristic.def.ParserDef
fileXml
- a description of the file object.java.lang.Exception
- any error.public org.licas_xml.abs.Element serialize(java.lang.Object nextObj)
serialize
in interface org.ai_heuristic.def.ParserDef
nextObj
- the object to convert.