public class MetaBagOfWordsParser extends java.lang.Object implements ParserDef
MetaBagOfWords
structure to or from XML.Constructor and Description |
---|
MetaBagOfWordsParser()
Create a new instance of MetaBagOfWordsParser
|
Modifier and Type | Method and Description |
---|---|
MetaBagOfWords |
parse(org.licas_xml.abs.Element toParse)
Parse the XML element back into the appropriate Object.
|
org.licas_xml.abs.Element |
serialize(MetaBagOfWords bagOfWordsAnd)
Serialize the object into an XML element.
|
org.licas_xml.abs.Element |
serialize(java.lang.Object toSerialize)
Serialize the object into an XML element.
|
public MetaBagOfWordsParser()
public org.licas_xml.abs.Element serialize(java.lang.Object toSerialize) throws java.lang.Exception
serialize
in interface ParserDef
toSerialize
- the object to serialize. Of type MetaBagOfWords
.java.lang.Exception
- any error.public org.licas_xml.abs.Element serialize(MetaBagOfWords bagOfWordsAnd) throws java.lang.Exception
bagOfWordsAnd
- the bag of words to serialize.java.lang.Exception
- any error.public MetaBagOfWords parse(org.licas_xml.abs.Element toParse) throws java.lang.Exception