类 XMLBeans
java.lang.Object
weka.core.xml.XMLSerialization
weka.core.xml.XMLBasicSerialization
weka.gui.beans.xml.XMLBeans
- 所有已实现的接口:
RevisionHandler
This class serializes and deserializes a KnowledgeFlow setup to and fro XML.
- 版本:
- $Revision: 7411 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
-
字段概要
字段修饰符和类型字段说明static final int
the data that is about to be read/written contains a complete layoutstatic final int
the data that is about to be read/written contains user-components, i.e., Metabeansstatic final int
the index in the Vector, where the BeanConnections are stored (Instances and Connections are stored in a Vector and then serialized)static final int
the index in the Vector, where the BeanInstances are stored (Instances and Connections are stored in a Vector and then serialized)static final String
the value of the animatedIconPath propertystatic final String
the value of the associatedConnections propertystatic final String
the value of the bean propertystatic final String
the value of the beanContext propertystatic final String
the value of the blue propertystatic final String
the value of the color propertystatic final String
the value of the customName propertystatic final String
the value of the dir propertystatic final String
the value of the eventname propertystatic final String
the value of the file propertystatic final String
the value of the font propertystatic final String
the value of the green propertystatic final String
the value of the height propertystatic final String
the value of the hidden propertystatic final String
the value of the iconpath propertystatic final String
the value of the id propertystatic final String
the value of the input propertystatic final String
the value of the input id propertystatic final String
the value of the loader propertystatic final String
the value of the location propertystatic final String
the value of the value propertystatic final String
the value of the options propertystatic final String
the value of the originalCoords propertystatic final String
the value of the outputs id propertystatic final String
the value of the outputs propertystatic final String
the value of the prefix propertystatic final String
the value of the red propertystatic final String
the value of the relationNameForFilename property (Saver)static final String
static final String
the value of the saver propertystatic final String
the value of the size propertystatic final String
the value of the source propertystatic final String
the value of the style propertystatic final String
the value of the subFlow propertystatic final String
the value of the target propertystatic final String
the value of the text propertystatic final String
the value of the width propertystatic final String
the value of the x propertystatic final String
the value of the y property从类继承的字段 weka.core.xml.XMLBasicSerialization
VAL_CELLS, VAL_KEY, VAL_MAPPING, VAL_VALUE
从类继承的字段 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
-
构造器概要
构造器构造器说明XMLBeans
(JComponent layout, BeanContextSupport context) initializes the serialization for layoutsXMLBeans
(JComponent layout, BeanContextSupport context, int datatype) initializes the serialization for different types of data -
方法概要
修饰符和类型方法说明void
clear()
generates internally a new XML document and clears also the IgnoreList and the mappings for the Read/Write-Methodsint
returns the type of data that is to be read/writtenreadBeanConnection
(Element node) builds the BeanConnection from the given DOM node.readBeanInstance
(Element node) builds the BeanInstance from the given DOM node.readBeanVisual
(Element node) builds the BeanVisual from the given DOM node.builds the Color from the given DOM node.readColorUIResource
(Element node) builds the ColorUIResource from the given DOM node.readDimension
(Element node) builds the Dimension from the given DOM node.builds the Font from the given DOM node.readFontUIResource
(Element node) builds the FontUIResource from the given DOM node.readLoader
(Element node) builds the Loader from the given DOM node.readMetaBean
(Element node) builds the MetaBean from the given DOM node.builds the Point from the given DOM node.builds the Saver from the given DOM node.void
setDataType
(int value) sets what kind of data is to be read/writtenwriteBeanConnection
(Element parent, Object o, String name) adds the given BeanConncetion to a DOM structure.writeBeanInstance
(Element parent, Object o, String name) adds the given BeanInstance to a DOM structure.writeBeanLoader
(Element parent, Object o, String name) adds the given Loader (a bean) to a DOM structure.writeBeanSaver
(Element parent, Object o, String name) adds the given Saver (a bean) to a DOM structure.writeBeanVisual
(Element parent, Object o, String name) adds the given BeanVisual to a DOM structure.writeColor
(Element parent, Object o, String name) adds the given Color to a DOM structure.writeColorUIResource
(Element parent, Object o, String name) adds the given ColorUIResource to a DOM structure.writeDimension
(Element parent, Object o, String name) adds the given Dimension to a DOM structure.adds the given Font to a DOM structure.writeFontUIResource
(Element parent, Object o, String name) adds the given FontUIResource to a DOM structure.writeLoader
(Element parent, Object o, String name) adds the given Loader to a DOM structure.writeMetaBean
(Element parent, Object o, String name) adds the given MetaBean to a DOM structure.writePoint
(Element parent, Object o, String name) adds the given Point to a DOM structure.writeSaver
(Element parent, Object o, String name) adds the given Saver to a DOM structure.从类继承的方法 weka.core.xml.XMLBasicSerialization
getRevision, readCollection, readCostMatrixOld, readDefaultListModel, readMap, readMatrix, readMatrixOld, writeCollection, writeCostMatrixOld, writeDefaultListModel, writeMap, writeMatrix, writeMatrixOld
从类继承的方法 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
-
字段详细资料
-
VAL_ID
the value of the id property- 另请参阅:
-
VAL_X
the value of the x property- 另请参阅:
-
VAL_Y
the value of the y property- 另请参阅:
-
VAL_BEAN
the value of the bean property- 另请参阅:
-
VAL_CUSTOM_NAME
the value of the customName property- 另请参阅:
-
VAL_SOURCEID
the value of the source property- 另请参阅:
-
VAL_TARGETID
the value of the target property- 另请参阅:
-
VAL_EVENTNAME
the value of the eventname property- 另请参阅:
-
VAL_HIDDEN
the value of the hidden property- 另请参阅:
-
VAL_FILE
the value of the file property- 另请参阅:
-
VAL_DIR
the value of the dir property- 另请参阅:
-
VAL_PREFIX
the value of the prefix property- 另请参阅:
-
VAL_RELATIVE_PATH
- 另请参阅:
-
VAL_OPTIONS
the value of the options property- 另请参阅:
-
VAL_SAVER
the value of the saver property- 另请参阅:
-
VAL_LOADER
the value of the loader property- 另请参阅:
-
VAL_TEXT
the value of the text property- 另请参阅:
-
VAL_BEANCONTEXT
the value of the beanContext property- 另请参阅:
-
VAL_WIDTH
the value of the width property- 另请参阅:
-
VAL_HEIGHT
the value of the height property- 另请参阅:
-
VAL_RED
the value of the red property- 另请参阅:
-
VAL_GREEN
the value of the green property- 另请参阅:
-
VAL_BLUE
the value of the blue property- 另请参阅:
-
VAL_NAME
the value of the value property- 另请参阅:
-
VAL_STYLE
the value of the style property- 另请参阅:
-
VAL_LOCATION
the value of the location property- 另请参阅:
-
VAL_SIZE
the value of the size property- 另请参阅:
-
VAL_COLOR
the value of the color property- 另请参阅:
-
VAL_FONT
the value of the font property- 另请参阅:
-
VAL_ICONPATH
the value of the iconpath property- 另请参阅:
-
VAL_ANIMATEDICONPATH
the value of the animatedIconPath property- 另请参阅:
-
VAL_ASSOCIATEDCONNECTIONS
the value of the associatedConnections property- 另请参阅:
-
VAL_INPUTS
the value of the input property- 另请参阅:
-
VAL_INPUTSID
the value of the input id property- 另请参阅:
-
VAL_OUTPUTS
the value of the outputs id property- 另请参阅:
-
VAL_OUTPUTSID
the value of the outputs property- 另请参阅:
-
VAL_SUBFLOW
the value of the subFlow property- 另请参阅:
-
VAL_ORIGINALCOORDS
the value of the originalCoords property- 另请参阅:
-
VAL_RELATIONNAMEFORFILENAME
the value of the relationNameForFilename property (Saver)- 另请参阅:
-
INDEX_BEANINSTANCES
public static final int INDEX_BEANINSTANCESthe index in the Vector, where the BeanInstances are stored (Instances and Connections are stored in a Vector and then serialized)- 另请参阅:
-
INDEX_BEANCONNECTIONS
public static final int INDEX_BEANCONNECTIONSthe index in the Vector, where the BeanConnections are stored (Instances and Connections are stored in a Vector and then serialized)- 另请参阅:
-
DATATYPE_LAYOUT
public static final int DATATYPE_LAYOUTthe data that is about to be read/written contains a complete layout- 另请参阅:
-
m_DataType
- 常量字段值
-
DATATYPE_USERCOMPONENTS
public static final int DATATYPE_USERCOMPONENTSthe data that is about to be read/written contains user-components, i.e., Metabeans- 另请参阅:
-
m_DataType
- 常量字段值
-
-
构造器详细资料
-
XMLBeans
initializes the serialization for layouts- 参数:
layout
- the component that manages the layoutcontext
- the bean context support to use- 抛出:
Exception
- if initialization fails
-
XMLBeans
initializes the serialization for different types of data- 参数:
layout
- the component that manages the layoutcontext
- the bean context support to usedatatype
- the type of data to read/write- 抛出:
Exception
- if initialization fails
-
-
方法详细资料
-
setDataType
public void setDataType(int value) sets what kind of data is to be read/written- 参数:
value
- the type of data- 另请参阅:
-
m_DataType
-
getDataType
public int getDataType()returns the type of data that is to be read/written- 返回:
- the type of data
- 另请参阅:
-
m_DataType
-
clear
generates internally a new XML document and clears also the IgnoreList and the mappings for the Read/Write-Methods- 覆盖:
clear
在类中XMLBasicSerialization
- 抛出:
Exception
- if something goes wrong
-
writeColor
adds the given Color 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
-
readColor
builds the Color from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeDimension
adds the given Dimension 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
-
readDimension
builds the Dimension from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeFont
adds the given Font 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
-
readFont
builds the Font from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writePoint
adds the given Point 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
-
readPoint
builds the Point from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeColorUIResource
adds the given ColorUIResource 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
-
readColorUIResource
builds the ColorUIResource from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeFontUIResource
adds the given FontUIResource 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
-
readFontUIResource
builds the FontUIResource from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeBeanInstance
adds the given BeanInstance 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
-
readBeanInstance
builds the BeanInstance from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeBeanConnection
adds the given BeanConncetion 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
-
readBeanConnection
builds the BeanConnection from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeBeanLoader
adds the given Loader (a bean) 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
-
writeBeanSaver
adds the given Saver (a bean) 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
-
writeLoader
adds the given Loader 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
-
readLoader
builds the Loader from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeSaver
adds the given Saver 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
-
readSaver
builds the Saver from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeBeanVisual
adds the given BeanVisual 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
-
readBeanVisual
builds the BeanVisual from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-
writeMetaBean
adds the given MetaBean 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
-
readMetaBean
builds the MetaBean from the given DOM node.- 参数:
node
- the associated XML node- 返回:
- the instance created from the XML description
- 抛出:
Exception
- if instantiation fails
-