public class Resource extends com.ibm.json.java.JSONObject implements java.io.Serializable, IMXResource
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(java.lang.String prop)
Get Boolean will return true, if the data is a number and != 0, or if the data is a String and starts with
Y or T, of if the data is actually a boolean it will return the boolean value
|
java.util.Date |
getDate(java.lang.String prop) |
double |
getDouble(java.lang.String prop) |
float |
getFloat(java.lang.String prop) |
java.lang.String |
getID() |
int |
getInt(java.lang.String prop) |
long |
getLong(java.lang.String prop) |
java.lang.Object |
getProperty(java.lang.String prop) |
java.util.Collection<java.lang.String> |
getPropertyNames() |
float |
getQuantity() |
java.lang.String |
getString(java.lang.String prop) |
java.lang.String |
getString(java.lang.String prop,
java.lang.String defValue) |
<T> T |
getUserData(java.lang.String key)
Get some transient user data for the resource
|
java.lang.Object |
setProperty(java.lang.String prop,
java.lang.Object value) |
java.lang.Object |
setProperty(java.lang.String prop,
java.lang.Object value,
boolean ignoreChangeTracking) |
<T> void |
setUserData(java.lang.String key,
T data)
Sets dome transient user date for the given resource
|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString
public java.lang.Object getProperty(java.lang.String prop)
getProperty
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getProperty(java.lang.String)
public int getInt(java.lang.String prop)
getInt
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getInt(java.lang.String)
public long getLong(java.lang.String prop)
getLong
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getLong(java.lang.String)
public float getFloat(java.lang.String prop)
getFloat
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getFloat(java.lang.String)
public double getDouble(java.lang.String prop)
getDouble
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getDouble(java.lang.String)
public boolean getBoolean(java.lang.String prop)
IMXPropertyGetterSetter
getBoolean
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getBoolean(java.lang.String)
public java.lang.String getString(java.lang.String prop)
getString
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getString(java.lang.String)
public java.lang.String getString(java.lang.String prop, java.lang.String defValue)
getString
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getString(java.lang.String, java.lang.String)
public java.util.Date getDate(java.lang.String prop)
getDate
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.getDate(java.lang.String)
public java.lang.Object setProperty(java.lang.String prop, java.lang.Object value)
setProperty
in interface IMXPropertyGetterSetter
IMXPropertyGetterSetter.setProperty(java.lang.String, java.lang.Object)
public java.lang.Object setProperty(java.lang.String prop, java.lang.Object value, boolean ignoreChangeTracking)
setProperty
in interface IMXPropertyGetterSetter
public java.lang.String getID()
getID
in interface IMXResource
IMXResource.getID()
public <T> T getUserData(java.lang.String key)
IMXResource
getUserData
in interface IMXResource
IMXResource.getUserData(java.lang.String)
public <T> void setUserData(java.lang.String key, T data)
IMXResource
setUserData
in interface IMXResource
IMXResource.setUserData(java.lang.String, java.lang.Object)
public float getQuantity()
getQuantity
in interface IMXResource
IMXResource.getQuantity()
public java.util.Collection<java.lang.String> getPropertyNames()
getPropertyNames
in interface IMXPropertyGetterSetter