public class Resource extends com.ibm.json.java.JSONObject implements java.io.Serializable, IMXResource
Modifier and Type | Class and Description |
---|---|
static class |
Resource.Status |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_ALLOCATION |
static java.lang.String |
PROPERTY_CREWWORKGROUP |
static java.lang.String |
PROPERTY_DAY |
static java.lang.String |
PROPERTY_EXTERNALASSIGNMENTS |
static java.lang.String |
PROPERTY_FULLDAY |
static java.lang.String |
PROPERTY_HASWORKPERIOD |
static java.lang.String |
PROPERTY_MODAVAILCOLOR |
static java.lang.String |
PROPERTY_MODAVAILFONTCOLOR |
static java.lang.String |
PROPERTY_MODAVAILINFO |
static java.lang.String |
PROPERTY_NAME |
static java.lang.String |
PROPERTY_PRIMARYCRAFT |
static java.lang.String |
PROPERTY_SECONDARYCRAFTS |
static java.lang.String |
PROPERTY_SHIFTINFO |
static java.lang.String |
PROPERTY_SKILL |
static java.lang.String |
PROPERTY_WORKHOURSDAY |
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.String |
getObjectName() |
java.lang.Object |
getProperty(java.lang.String prop) |
java.util.Collection<java.lang.String> |
getPropertyNames() |
float |
getQuantity() |
java.lang.String |
getRefObjectName() |
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 |
put(java.lang.Object key,
java.lang.Object value) |
java.lang.Object |
remove(java.lang.Object key) |
void |
setObjectName(java.lang.String objectName) |
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) |
void |
setRefObjectName(java.lang.String refObjectName) |
<T> void |
setUserData(java.lang.String key,
T data)
Sets dome transient user date for the given resource
|
isValidObject, isValidType, parse, parse, parse, serialize, serialize, serialize, serialize, serialize, serialize, toString
public static final java.lang.String PROPERTY_ALLOCATION
public static final java.lang.String PROPERTY_SKILL
public static final java.lang.String PROPERTY_DAY
public static final java.lang.String PROPERTY_WORKHOURSDAY
public static final java.lang.String PROPERTY_CREWWORKGROUP
public static final java.lang.String PROPERTY_HASWORKPERIOD
public static final java.lang.String PROPERTY_FULLDAY
public static final java.lang.String PROPERTY_EXTERNALASSIGNMENTS
public static final java.lang.String PROPERTY_PRIMARYCRAFT
public static final java.lang.String PROPERTY_SECONDARYCRAFTS
public static final java.lang.String PROPERTY_MODAVAILFONTCOLOR
public static final java.lang.String PROPERTY_MODAVAILCOLOR
public static final java.lang.String PROPERTY_SHIFTINFO
public static final java.lang.String PROPERTY_MODAVAILINFO
public static final java.lang.String PROPERTY_NAME
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
public void setObjectName(java.lang.String objectName)
public void setRefObjectName(java.lang.String refObjectName)
public java.lang.String getObjectName()
public java.lang.String getRefObjectName()
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class com.ibm.json.java.JSONObject
public java.lang.Object remove(java.lang.Object key)
remove
in interface java.util.Map
remove
in class java.util.HashMap