Class DataInfo

  • All Implemented Interfaces:
    ToolInfo

    @Deprecated
    public class DataInfo
    extends Object
    implements ToolInfo
    Deprecated.
    Use Data

    ToolInfo implementation to handle "primitive" data types. It currently supports String, Number, and Boolean data.

    An example of data elements specified in your toolbox.xml might be:

      <data type="string">
        <key>app_name</key>
        <value>FooWeb Deluxe</value>
      </data>
      <data type="number">
        <key>app_version</key>
        <value>4.2</value>
      </data>
      <data type="boolean">
        <key>debug</key>
        <value>true</value>
      </data>
      <data type="number">
        <key>screen_width</key>
        <value>400</value>
      </data>
     

    Version:
    $Id$
    Author:
    Nathan Bubna
    • Constructor Detail

      • DataInfo

        public DataInfo()
        Deprecated.
    • Method Detail

      • setKey

        public void setKey​(String key)
        Deprecated.
        Mutators
      • setType

        public void setType​(String type)
        Deprecated.
      • setValue

        public void setValue​(String value)
        Deprecated.
      • getKey

        public String getKey()
        Deprecated.
        Accessors
        Specified by:
        getKey in interface ToolInfo
        Returns:
        the context key for the tool
      • getClassname

        public String getClassname()
        Deprecated.
        Specified by:
        getClassname in interface ToolInfo
        Returns:
        the fully qualified classname for the tool
      • getInstance

        public Object getInstance​(Object initData)
        Deprecated.
        Returns the data. Always returns the same object since the data is a constant. Initialization data is ignored.
        Specified by:
        getInstance in interface ToolInfo
        Parameters:
        initData - an object that may be used to initialize the instance
        Returns:
        an instance of the tool