public class ResourceMetaData
extends java.lang.Object
implements java.io.Serializable
Resource
or ResourceList
.Constructor and Description |
---|
ResourceMetaData(java.lang.Object id,
java.lang.Class type,
boolean readOnly,
java.lang.Object[] possibleValues,
java.lang.Object defaultValue,
boolean valueLimited,
boolean multipleAllowed,
Presentation presentation,
Presentation[] possibleValuePresentations)
Deprecated.
Constructs a ResourceMetaData object.
|
ResourceMetaData(java.lang.Object id,
java.lang.Class type,
Presentation presentation)
Deprecated.
Constructs a ResourceMetaData object for a read-only value with no
possible values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areMultipleAllowed()
Deprecated.
Indicates if multiple values are allowed.
|
java.lang.Object |
getDefaultValue()
Deprecated.
Returns the default value.
|
java.lang.Object |
getID()
Deprecated.
Returns the ID.
|
ResourceLevel |
getLevel()
Deprecated.
Returns the level for which this is supported.
|
Presentation |
getPossibleValuePresentation(java.lang.Object possibleValue)
Deprecated.
Returns the presentation for a possible value.
|
Presentation[] |
getPossibleValuePresentations()
Deprecated.
Returns the presentations for the possible values.
|
java.lang.Object[] |
getPossibleValues()
Deprecated.
Returns the possible values.
|
Presentation |
getPresentation()
Deprecated.
Returns the presentation information.
|
java.lang.Class |
getType()
Deprecated.
Returns the type of value.
|
boolean |
isReadOnly()
Deprecated.
Indicates if the value is read-only.
|
boolean |
isValueLimited()
Deprecated.
Indicates if the value is limited to the possible values.
|
void |
setLevel(ResourceLevel level)
Deprecated.
Sets the level for which this is valid.
|
void |
setPossibleValues(java.lang.Object[] possibleValues,
ResourceLevel level)
Deprecated.
Sets the possible values for a level.
|
java.lang.String |
toString()
Deprecated.
Returns the String representation of the ID.
|
public ResourceMetaData(java.lang.Object id, java.lang.Class type, Presentation presentation)
id
- The ID.type
- The type of value.presentation
- The presentation information.public ResourceMetaData(java.lang.Object id, java.lang.Class type, boolean readOnly, java.lang.Object[] possibleValues, java.lang.Object defaultValue, boolean valueLimited, boolean multipleAllowed, Presentation presentation, Presentation[] possibleValuePresentations)
id
- The ID.type
- The type of value.readOnly
- true if the value is read-only,
false if the value is writable.possibleValues
- The possible values, or null if
there are none. All possible values must be
of the correct type.defaultValue
- The default value, or null if there is no
default.valueLimited
- true if the value is limited to
the possible values, false if other values are
allowed.multipleAllowed
- true if multiple values are allowed.presentation
- The presentation information.possibleValuePresentations
- The possible value presentations, or null
if none.public boolean areMultipleAllowed()
public java.lang.Object getID()
public java.lang.Object getDefaultValue()
public ResourceLevel getLevel()
public Presentation getPresentation()
public java.lang.Object[] getPossibleValues()
public Presentation getPossibleValuePresentation(java.lang.Object possibleValue)
possibleValue
- The possible value.public Presentation[] getPossibleValuePresentations()
public java.lang.Class getType()
public boolean isReadOnly()
public boolean isValueLimited()
public void setLevel(ResourceLevel level)
level
- The level for which this is valid, or null if this is
valid for all levels.public void setPossibleValues(java.lang.Object[] possibleValues, ResourceLevel level)
possibleValues
- The possible values, or an empty
array if there are none. All possible values
must be of the correct type.level
- The level for which the possible values are valid,
or null if the possible values are valid for all levels.public java.lang.String toString()
toString
in class java.lang.Object