public class ResourceMetaDataTable
extends java.lang.Object
implements java.io.Serializable
ResourceMetaData
objects. This is intended for use by subclasses of
Resource
and
ResourceList
implementations. This information is externalized as an array of
ResourceMetaData objects, but this class makes it easier to build
this array without knowing the number of elements ahead of time.Constructor and Description |
---|
ResourceMetaDataTable()
Deprecated.
Constructs a ResourceMetaDataTable object.
|
ResourceMetaDataTable(PresentationLoader presentationLoader,
java.lang.String presentationKey)
Deprecated.
Constructs a ResourceMetaDataTable object.
|
ResourceMetaDataTable(ResourceMetaData[] metaData)
Deprecated.
Constructs a ResourceMetaDataTable object.
|
Modifier and Type | Method and Description |
---|---|
ResourceMetaData |
add(java.lang.Object id,
java.lang.Class type)
Deprecated.
Creates and adds a ResourceMetaData object to the list.
|
ResourceMetaData |
add(java.lang.Object id,
java.lang.Class type,
boolean readOnly)
Deprecated.
Creates and adds a ResourceMetaData object to the list.
|
ResourceMetaData |
add(java.lang.Object id,
java.lang.Class type,
boolean readOnly,
java.lang.Object[] possibleValues,
java.lang.Object defaultValue,
boolean valueLimited)
Deprecated.
Creates and adds a ResourceMetaData object to the list.
|
ResourceMetaData |
add(java.lang.Object id,
java.lang.Class type,
boolean readOnly,
java.lang.Object[] possibleValues,
java.lang.Object defaultValue,
boolean valueLimited,
boolean multipleAllowed)
Deprecated.
Creates and adds a ResourceMetaData object to the list.
|
ResourceMetaData |
add(java.lang.Object id,
java.lang.Class type,
boolean readOnly,
java.lang.Object[] possibleValues,
java.lang.Object defaultValue,
boolean valueLimited,
boolean multipleAllowed,
java.lang.String[] possibleValuePresentationKeys)
Deprecated.
Creates and adds a ResourceMetaData object to the list.
|
ResourceMetaData |
add(java.lang.Object id,
java.lang.Class type,
java.lang.Object defaultValue)
Deprecated.
Creates and adds a ResourceMetaData object to the list.
|
ResourceMetaData[] |
getMetaData()
Deprecated.
Returns the array of ResourceMetaData objects.
|
ResourceMetaData |
getMetaData(java.lang.Object id)
Deprecated.
Returns the meta data for a particular ID.
|
ResourceMetaData[] |
getMetaData(java.lang.String level)
Deprecated.
Returns the array of ResourceMetaData objects.
|
public ResourceMetaDataTable()
public ResourceMetaDataTable(PresentationLoader presentationLoader, java.lang.String presentationKey)
presentationLoader
- The presentation loader.presentationKey
- The presentation key.public ResourceMetaDataTable(ResourceMetaData[] metaData)
metaData
- The meta data, or null if none.public ResourceMetaData add(java.lang.Object id, java.lang.Class type)
id
- The ID.type
- The type of value.public ResourceMetaData add(java.lang.Object id, java.lang.Class type, boolean readOnly)
id
- The ID.type
- The type of value.readOnly
- true if the value is read-only,
false if the value is writable.public ResourceMetaData add(java.lang.Object id, java.lang.Class type, java.lang.Object defaultValue)
id
- The ID.type
- The type of value.defaultValue
- The default value.public ResourceMetaData add(java.lang.Object id, java.lang.Class type, boolean readOnly, java.lang.Object[] possibleValues, java.lang.Object defaultValue, boolean valueLimited)
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.public ResourceMetaData add(java.lang.Object id, java.lang.Class type, boolean readOnly, java.lang.Object[] possibleValues, java.lang.Object defaultValue, boolean valueLimited, boolean multipleAllowed)
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.public ResourceMetaData add(java.lang.Object id, java.lang.Class type, boolean readOnly, java.lang.Object[] possibleValues, java.lang.Object defaultValue, boolean valueLimited, boolean multipleAllowed, java.lang.String[] possibleValuePresentationKeys)
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.possibleValuePresentationKeys
- The possible value presentation keys, or null
if there are none.public ResourceMetaData[] getMetaData()
public ResourceMetaData[] getMetaData(java.lang.String level)
level
- The current level.public ResourceMetaData getMetaData(java.lang.Object id)
id
- The ID.