程序包 weka.core.xml
类 XMLBasicSerialization
java.lang.Object
weka.core.xml.XMLSerialization
weka.core.xml.XMLBasicSerialization
- 所有已实现的接口:
RevisionHandler
- 直接已知子类:
XMLBeans
,XMLClassifier
,XMLExperiment
This serializer contains some read/write methods for common classes that
are not beans-conform. Currently supported are:
- java.util.HashMap
- java.util.HashSet
- java.util.Hashtable
- java.util.LinkedList
- java.util.Properties
- java.util.Stack
- java.util.TreeMap
- java.util.TreeSet
- java.util.Vector
- javax.swing.DefaultListModel
- weka.core.Matrix
- weka.core.matrix.Matrix
- 版本:
- $Revision: 1.6 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
-
字段概要
字段修饰符和类型字段说明static final String
the matrix cellsstatic final String
the value for a mapping-key, e.g., Mapsstatic final String
the value for mapping, e.g., Mapsstatic final String
the value for mapping-value, e.g., Maps从类继承的字段 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
clear()
generates internally a new XML document and clears also the IgnoreList and the mappings for the Read/Write-MethodsReturns the revision string.readCollection
(Element node) builds the Collection from the given DOM node.readCostMatrixOld
(Element node) builds the Matrix (old) from the given DOM node.readDefaultListModel
(Element node) builds the DefaultListModel from the given DOM node.builds the Map from the given DOM node.readMatrix
(Element node) builds the Matrix from the given DOM node.readMatrixOld
(Element node) builds the Matrix (old) from the given DOM node.writeCollection
(Element parent, Object o, String name) adds the given Collection to a DOM structure.writeCostMatrixOld
(Element parent, Object o, String name) adds the given CostMatrix (old) to a DOM structure.writeDefaultListModel
(Element parent, Object o, String name) adds the given DefaultListModel to a DOM structure.adds the given Map to a DOM structure.writeMatrix
(Element parent, Object o, String name) adds the given Matrix to a DOM structure.writeMatrixOld
(Element parent, Object o, String name) adds the given Matrix (old) to a DOM structure.从类继承的方法 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
-
字段详细资料
-
构造器详细资料
-
XMLBasicSerialization
initializes the serialization- 抛出:
Exception
- if initialization fails
-
-
方法详细资料
-
clear
generates internally a new XML document and clears also the IgnoreList and the mappings for the Read/Write-Methods- 覆盖:
clear
在类中XMLSerialization
- 抛出:
Exception
- if initializing fails
-
writeDefaultListModel
adds the given DefaultListModel to a DOM structure.- 参数:
parent
- the parent of this object, e.g. the class this object is a member ofo
- the Object to describe in XMLname
- the name of the object- 返回:
- the node that was created
- 抛出:
Exception
- if the DOM creation fails- 另请参阅:
-
readDefaultListModel
builds the DefaultListModel from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails- 另请参阅:
-
writeCollection
adds the given Collection to a DOM structure.- 参数:
parent
- the parent of this object, e.g. the class this object is a member ofo
- the Object to describe in XMLname
- the name of the object- 返回:
- the node that was created
- 抛出:
Exception
- if the DOM creation fails- 另请参阅:
-
readCollection
builds the Collection from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails- 另请参阅:
-
writeMap
adds the given Map to a DOM structure. -
readMap
builds the Map from the given DOM node. -
writeMatrix
adds the given Matrix to a DOM structure. -
readMatrix
builds the Matrix from the given DOM node. -
writeMatrixOld
adds the given Matrix (old) to a DOM structure. -
readMatrixOld
builds the Matrix (old) from the given DOM node. -
writeCostMatrixOld
adds the given CostMatrix (old) to a DOM structure.- 参数:
parent
- the parent of this object, e.g. the class this object is a member ofo
- the Object to describe in XMLname
- the name of the object- 返回:
- the node that was created
- 抛出:
Exception
- if the DOM creation fails- 另请参阅:
-
readCostMatrixOld
builds the Matrix (old) from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails- 另请参阅:
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中XMLSerialization
- 返回:
- the revision
-