weka.classifiers.xml
Class XMLClassifier
java.lang.Object
weka.core.xml.XMLSerialization
weka.core.xml.XMLBasicSerialization
weka.classifiers.xml.XMLClassifier
- All Implemented Interfaces:
- RevisionHandler
public class XMLClassifier
- extends XMLBasicSerialization
This class serializes and deserializes a Classifier instance to and
fro XML.
- Version:
- $Revision: 8034 $
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
| Fields inherited from class weka.core.xml.XMLSerialization |
ATT_ARRAY, ATT_ARRAY_DEFAULT, ATT_CLASS, ATT_NAME, ATT_NULL, ATT_NULL_DEFAULT, ATT_PRIMITIVE, ATT_PRIMITIVE_DEFAULT, ATT_VERSION, DOCTYPE, ROOT_NODE, TAG_OBJECT, VAL_NO, VAL_ROOT, VAL_YES |
|
Constructor Summary |
XMLClassifier()
initializes the serialization |
|
Method Summary |
void |
clear()
generates internally a new XML document and clears also the IgnoreList and
the mappings for the Read/Write-Methods |
String |
getRevision()
Returns the revision string. |
| Methods inherited from class weka.core.xml.XMLBasicSerialization |
readCollection, readCostMatrixOld, readDefaultListModel, readMap, readMatrix, readMatrixOld, writeCollection, writeCostMatrixOld, writeDefaultListModel, writeMap, writeMatrix, writeMatrixOld |
| Methods inherited from class weka.core.xml.XMLSerialization |
fromXML, getVersion, main, read, read, read, read, readBooleanFromXML, readByteFromXML, readCharFromXML, readDoubleFromXML, readFloatFromXML, readFromXML, readFromXML, readIntFromXML, readLongFromXML, readShortFromXML, toXML, write, write, write, write, writeToXML |
XMLClassifier
public XMLClassifier()
throws Exception
- initializes the serialization
- Throws:
Exception - if initialization fails
clear
public void clear()
throws Exception
- generates internally a new XML document and clears also the IgnoreList and
the mappings for the Read/Write-Methods
- Overrides:
clear in class XMLBasicSerialization
- Throws:
Exception - if initializing fails
getRevision
public String getRevision()
- Returns the revision string.
- Specified by:
getRevision in interface RevisionHandler- Overrides:
getRevision in class XMLBasicSerialization
- Returns:
- the revision
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.