public class TypedValue extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TypedValue.DataType
Denotes the data types that a setting value can have.
|
| Constructor and Description |
|---|
TypedValue() |
| Modifier and Type | Method and Description |
|---|---|
TypedValue.DataType |
getType()
Returns the data type.
|
Object |
getTypedValue()
Returns the value of this TypedValue as the data type specified.
|
String |
getValue()
Returns the value.
|
TypedValue |
setType(TypedValue.DataType type)
Sets the data type.
|
TypedValue |
setValue(String value)
Sets the value to set.
|
String |
toCompactString()
Returns a compact string representation of the object in JSON format.
|
String |
toString()
Returns a string representation of the object in JSON format.
|
String |
toXmlCompactString()
Returns a compact string representation of the object in XML format.
|
String |
toXmlString()
Returns a string representation of the object in XML format.
|
public TypedValue.DataType getType()
public String getValue()
public Object getTypedValue() throws FMWEnvSpecException
FMWEnvSpecException - if a type conversion error occurspublic TypedValue setType(TypedValue.DataType type)
type - the data typepublic TypedValue setValue(String value)
value - the value to setpublic String toXmlCompactString()
public String toXmlString()
public String toCompactString()