Data
@Deprecated public class DataInfo extends Object implements ToolInfo
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>
Modifier and Type | Field and Description |
---|---|
static String |
TYPE_BOOLEAN
Deprecated.
|
static String |
TYPE_NUMBER
Deprecated.
|
static String |
TYPE_STRING
Deprecated.
|
Constructor and Description |
---|
DataInfo()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getClassname()
Deprecated.
|
Object |
getInstance(Object initData)
Deprecated.
Returns the data.
|
String |
getKey()
Deprecated.
Accessors
|
void |
setKey(String key)
Deprecated.
Mutators
|
void |
setType(String type)
Deprecated.
|
void |
setValue(String value)
Deprecated.
|
public static final String TYPE_STRING
public static final String TYPE_NUMBER
public static final String TYPE_BOOLEAN
public void setKey(String key)
public void setType(String type)
public void setValue(String value)
public String getKey()
public String getClassname()
getClassname
in interface ToolInfo
public Object getInstance(Object initData)
getInstance
in interface ToolInfo
initData
- an object that may be used to initialize the instanceCopyright © 2002–2016 Apache Software Foundation. All rights reserved.