|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.ram.common.data.AssetAttribute
com.ibm.ram.client.RAMAssetAttribute
public class RAMAssetAttribute
Represents a custom attribute that is defined on an asset or an asset type. On an asset type, you might define which attributes are applicable or required for a that type. After attributes are bound to an asset type, the assets become visible to assets of that type. On an asset, you can get and set values of an attribute.
| Field Summary |
|---|
| Fields inherited from class com.ibm.ram.common.data.AssetAttribute |
|---|
TYPE_BOOLEAN, TYPE_DATE, TYPE_LINK, TYPE_NUMBER, TYPE_RESOURCE, TYPE_TEXT, TYPE_USER, TYPE_XML |
| Method Summary | |
|---|---|
void |
addValue(java.lang.String value)
Add a value to the list of set values for this attribute. |
RAMAction |
getAction()
Set the action to be performed on the session object. |
protected RAMAsset |
getAsset()
|
java.lang.String |
getConfiguration()
|
java.lang.String |
getDescription()
The optional description. |
java.lang.String |
getName()
Get the name of the attribute. |
RAMSession |
getSession()
Return the session this type was fetched from. |
java.lang.String |
getType()
|
java.lang.String |
getURI()
The string will be fully-qualified. |
java.lang.String[] |
getValidValues()
Get the array of valid settings. |
java.lang.String[] |
getValues()
Returns the value of this custom attribute |
boolean |
isDirty()
Returns true if the Object has been modified from the copy on the server |
boolean |
isRestrictedSetting()
Answer whether this is a standard any value setting, or if it is a restricted value setting (i.e. |
boolean |
isSingleSetting()
Answer whether this is a single setting attribute of a multi-setting attribute. |
void |
setAction(RAMAction action)
Set the action to be performed when passed to RAMSession#put(IRAMSessionObject, org.eclipse.core.runtime.IProgressMonitor)
Accepts
RAMAction.CREATE
RAMAction.UPDATE
RAMAction.DELETE |
void |
setDescription(java.lang.String description)
|
void |
setName(java.lang.String name)
|
void |
setRestrictedSetting(boolean restrictedSetting)
The array of valid settings. |
void |
setSingleSetting(boolean singleSetting)
|
void |
setType(java.lang.String type)
|
void |
setURI(java.lang.String uriString)
|
void |
setValidValues(java.lang.String[] validSettings)
|
void |
setValues(java.lang.String[] value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getName()
AssetAttribute
getName in class AssetAttributepublic void setName(java.lang.String name)
setName in class AssetAttributename - The name to set.public java.lang.String[] getValues()
AssetAttribute
getValues in class AssetAttribute
public void setValues(java.lang.String[] value)
throws RAMRuntimeException
setValues in class AssetAttributeRAMRuntimeExceptionpublic void addValue(java.lang.String value)
value - public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getDescription()
AssetAttribute
getDescription in class AssetAttributenull if there is no description.public void setDescription(java.lang.String description)
setDescription in class AssetAttributedescription - The description to set.public java.lang.String getURI()
AssetAttribute
getURI in class AssetAttributepublic java.lang.String[] getValidValues()
AssetAttributeAssetAttribute.isRestrictedSetting() returns true.
getValidValues in class AssetAttributeAssetAttribute.isRestrictedSetting(),
AssetAttribute.isSingleSetting()public void setValidValues(java.lang.String[] validSettings)
setValidValues in class AssetAttributevalidSettings - The validSettings to set.public boolean isRestrictedSetting()
AssetAttribute
isRestrictedSetting in class AssetAttributetrue if restricted, false if no restriction.public void setRestrictedSetting(boolean restrictedSetting)
AssetAttributeAssetAttribute.isRestrictedSetting() returns true.
setRestrictedSetting in class AssetAttributeAssetAttribute.isRestrictedSetting(),
AssetAttribute.isSingleSetting()public boolean isSingleSetting()
AssetAttributeAssetAttribute.isRestrictedSetting() returns true.
isSingleSetting in class AssetAttributepublic void setSingleSetting(boolean singleSetting)
setSingleSetting in class AssetAttributesingleSetting - The singleSetting to set.public RAMSession getSession()
public boolean isDirty()
public void setURI(java.lang.String uriString)
setURI in class AssetAttributeuriString - The uriString to set.protected RAMAsset getAsset()
public RAMAction getAction()
public void setAction(RAMAction action)
RAMSession#put(IRAMSessionObject, org.eclipse.core.runtime.IProgressMonitor)
Accepts
RAMAction.CREATE
RAMAction.UPDATE
RAMAction.DELETE
action - public java.lang.String getType()
getType in class AssetAttributepublic void setType(java.lang.String type)
setType in class AssetAttributetype - The type to set.public java.lang.String getConfiguration()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||