程序包 weka.core.xml
类 XMLSerializationMethodHandler
java.lang.Object
weka.core.xml.XMLSerializationMethodHandler
- 所有已实现的接口:
RevisionHandler
This class handles relationships between display names of properties
(or classes) and Methods that are associated with them. It differentiates
between read and write methods. It automatically stores public methods that
have the same signature as the
readFromXML()
and
writeToXML()
methods in the XMLSerialization
class.- 版本:
- $Revision: 1.5 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器构造器说明initializes the method handling, executes alsoclear()
, which adds initial methods automatically. -
方法概要
修饰符和类型方法说明void
clear()
removes all current methods and adds the methods according to thestatic Method
findReadMethod
(Object o, String name) returns the method with the given name that has the same signature asreadFromXML()
of theXMLSerialiation
class.static Method
findWriteMethod
(Object o, String name) returns the method with the given name that has the same signature aswriteToXML()
of theXMLSerialiation
class.Returns the revision string.read()
returns the handler for read methodsvoid
adds read and write methods for the given class, i.e., read&;lt;name> and write<name> ("name" is prefixed by read and write)toString()
returns the read and write method handlers as stringwrite()
returns the handler for write methods
-
构造器详细资料
-
方法详细资料
-
findReadMethod
returns the method with the given name that has the same signature asreadFromXML()
of theXMLSerialiation
class. simplifies the adding of custom methods.- 参数:
o
- the object to inspectname
- the name of the method to return- 返回:
- either
null
if no method was found or a reference - 另请参阅:
-
findWriteMethod
returns the method with the given name that has the same signature aswriteToXML()
of theXMLSerialiation
class. simplifies the adding of custom methods.- 参数:
o
- the object to inspectname
- the name of the method to return- 返回:
- either
null
if no method was found or a reference - 另请参阅:
-
clear
public void clear()removes all current methods and adds the methods according to the -
read
returns the handler for read methods- 返回:
- the methodhandler for read methods
-
write
returns the handler for write methods- 返回:
- the methodhandler for read methods
-
register
adds read and write methods for the given class, i.e., read&;lt;name> and write<name> ("name" is prefixed by read and write)- 参数:
handler
- the handler class that contains the read and write methodcls
- the class to register the read and write method forname
- the suffix of the read and write method
-
toString
returns the read and write method handlers as string -
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-