类 XMLBeans

所有已实现的接口:
RevisionHandler

public class XMLBeans extends XMLBasicSerialization
This class serializes and deserializes a KnowledgeFlow setup to and fro XML.
版本:
$Revision: 7411 $
作者:
FracPete (fracpete at waikato dot ac dot nz)
  • 字段详细资料

    • VAL_ID

      public static final String VAL_ID
      the value of the id property
      另请参阅:
    • VAL_X

      public static final String VAL_X
      the value of the x property
      另请参阅:
    • VAL_Y

      public static final String VAL_Y
      the value of the y property
      另请参阅:
    • VAL_BEAN

      public static final String VAL_BEAN
      the value of the bean property
      另请参阅:
    • VAL_CUSTOM_NAME

      public static final String VAL_CUSTOM_NAME
      the value of the customName property
      另请参阅:
    • VAL_SOURCEID

      public static final String VAL_SOURCEID
      the value of the source property
      另请参阅:
    • VAL_TARGETID

      public static final String VAL_TARGETID
      the value of the target property
      另请参阅:
    • VAL_EVENTNAME

      public static final String VAL_EVENTNAME
      the value of the eventname property
      另请参阅:
    • VAL_HIDDEN

      public static final String VAL_HIDDEN
      the value of the hidden property
      另请参阅:
    • VAL_FILE

      public static final String VAL_FILE
      the value of the file property
      另请参阅:
    • VAL_DIR

      public static final String VAL_DIR
      the value of the dir property
      另请参阅:
    • VAL_PREFIX

      public static final String VAL_PREFIX
      the value of the prefix property
      另请参阅:
    • VAL_RELATIVE_PATH

      public static final String VAL_RELATIVE_PATH
      另请参阅:
    • VAL_OPTIONS

      public static final String VAL_OPTIONS
      the value of the options property
      另请参阅:
    • VAL_SAVER

      public static final String VAL_SAVER
      the value of the saver property
      另请参阅:
    • VAL_LOADER

      public static final String VAL_LOADER
      the value of the loader property
      另请参阅:
    • VAL_TEXT

      public static final String VAL_TEXT
      the value of the text property
      另请参阅:
    • VAL_BEANCONTEXT

      public static final String VAL_BEANCONTEXT
      the value of the beanContext property
      另请参阅:
    • VAL_WIDTH

      public static final String VAL_WIDTH
      the value of the width property
      另请参阅:
    • VAL_HEIGHT

      public static final String VAL_HEIGHT
      the value of the height property
      另请参阅:
    • VAL_RED

      public static final String VAL_RED
      the value of the red property
      另请参阅:
    • VAL_GREEN

      public static final String VAL_GREEN
      the value of the green property
      另请参阅:
    • VAL_BLUE

      public static final String VAL_BLUE
      the value of the blue property
      另请参阅:
    • VAL_NAME

      public static final String VAL_NAME
      the value of the value property
      另请参阅:
    • VAL_STYLE

      public static final String VAL_STYLE
      the value of the style property
      另请参阅:
    • VAL_LOCATION

      public static final String VAL_LOCATION
      the value of the location property
      另请参阅:
    • VAL_SIZE

      public static final String VAL_SIZE
      the value of the size property
      另请参阅:
    • VAL_COLOR

      public static final String VAL_COLOR
      the value of the color property
      另请参阅:
    • VAL_FONT

      public static final String VAL_FONT
      the value of the font property
      另请参阅:
    • VAL_ICONPATH

      public static final String VAL_ICONPATH
      the value of the iconpath property
      另请参阅:
    • VAL_ANIMATEDICONPATH

      public static final String VAL_ANIMATEDICONPATH
      the value of the animatedIconPath property
      另请参阅:
    • VAL_ASSOCIATEDCONNECTIONS

      public static final String VAL_ASSOCIATEDCONNECTIONS
      the value of the associatedConnections property
      另请参阅:
    • VAL_INPUTS

      public static final String VAL_INPUTS
      the value of the input property
      另请参阅:
    • VAL_INPUTSID

      public static final String VAL_INPUTSID
      the value of the input id property
      另请参阅:
    • VAL_OUTPUTS

      public static final String VAL_OUTPUTS
      the value of the outputs id property
      另请参阅:
    • VAL_OUTPUTSID

      public static final String VAL_OUTPUTSID
      the value of the outputs property
      另请参阅:
    • VAL_SUBFLOW

      public static final String VAL_SUBFLOW
      the value of the subFlow property
      另请参阅:
    • VAL_ORIGINALCOORDS

      public static final String VAL_ORIGINALCOORDS
      the value of the originalCoords property
      另请参阅:
    • VAL_RELATIONNAMEFORFILENAME

      public static final String VAL_RELATIONNAMEFORFILENAME
      the value of the relationNameForFilename property (Saver)
      另请参阅:
    • INDEX_BEANINSTANCES

      public static final int INDEX_BEANINSTANCES
      the 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_BEANCONNECTIONS
      the 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_LAYOUT
      the data that is about to be read/written contains a complete layout
      另请参阅:
    • DATATYPE_USERCOMPONENTS

      public static final int DATATYPE_USERCOMPONENTS
      the data that is about to be read/written contains user-components, i.e., Metabeans
      另请参阅:
  • 构造器详细资料

    • XMLBeans

      public XMLBeans(JComponent layout, BeanContextSupport context) throws Exception
      initializes the serialization for layouts
      参数:
      layout - the component that manages the layout
      context - the bean context support to use
      抛出:
      Exception - if initialization fails
    • XMLBeans

      public XMLBeans(JComponent layout, BeanContextSupport context, int datatype) throws Exception
      initializes the serialization for different types of data
      参数:
      layout - the component that manages the layout
      context - the bean context support to use
      datatype - 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

      public void clear() throws Exception
      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

      public Element writeColor(Element parent, Object o, String name) throws Exception
      adds the given Color to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readColor

      public Object readColor(Element node) throws Exception
      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

      public Element writeDimension(Element parent, Object o, String name) throws Exception
      adds the given Dimension to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readDimension

      public Object readDimension(Element node) throws Exception
      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

      public Element writeFont(Element parent, Object o, String name) throws Exception
      adds the given Font to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readFont

      public Object readFont(Element node) throws Exception
      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

      public Element writePoint(Element parent, Object o, String name) throws Exception
      adds the given Point to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readPoint

      public Object readPoint(Element node) throws Exception
      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

      public Element writeColorUIResource(Element parent, Object o, String name) throws Exception
      adds the given ColorUIResource to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readColorUIResource

      public Object readColorUIResource(Element node) throws Exception
      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

      public Element writeFontUIResource(Element parent, Object o, String name) throws Exception
      adds the given FontUIResource to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readFontUIResource

      public Object readFontUIResource(Element node) throws Exception
      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

      public Element writeBeanInstance(Element parent, Object o, String name) throws Exception
      adds the given BeanInstance to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readBeanInstance

      public Object readBeanInstance(Element node) throws Exception
      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

      public Element writeBeanConnection(Element parent, Object o, String name) throws Exception
      adds the given BeanConncetion to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readBeanConnection

      public Object readBeanConnection(Element node) throws Exception
      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

      public Element writeBeanLoader(Element parent, Object o, String name) throws Exception
      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 of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • writeBeanSaver

      public Element writeBeanSaver(Element parent, Object o, String name) throws Exception
      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 of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • writeLoader

      public Element writeLoader(Element parent, Object o, String name) throws Exception
      adds the given Loader to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readLoader

      public Object readLoader(Element node) throws Exception
      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

      public Element writeSaver(Element parent, Object o, String name) throws Exception
      adds the given Saver to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readSaver

      public Object readSaver(Element node) throws Exception
      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

      public Element writeBeanVisual(Element parent, Object o, String name) throws Exception
      adds the given BeanVisual to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readBeanVisual

      public Object readBeanVisual(Element node) throws Exception
      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

      public Element writeMetaBean(Element parent, Object o, String name) throws Exception
      adds the given MetaBean to a DOM structure.
      参数:
      parent - the parent of this object, e.g. the class this object is a member of
      o - the Object to describe in XML
      name - the name of the object
      返回:
      the node that was created
      抛出:
      Exception - if the DOM creation fails
    • readMetaBean

      public Object readMetaBean(Element node) throws Exception
      builds the MetaBean from the given DOM node.
      参数:
      node - the associated XML node
      返回:
      the instance created from the XML description
      抛出:
      Exception - if instantiation fails