|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.resource.ResourceMetaData
public class ResourceMetaData extends Object implements Serializable
The ResourceMetaData class represents information about a
Resource
or ResourceList.
| Constructor and Description |
|---|
ResourceMetaData(Object id,
Class type,
boolean readOnly,
Object[] possibleValues,
Object defaultValue,
boolean valueLimited,
boolean multipleAllowed,
Presentation presentation,
Presentation[] possibleValuePresentations)
Deprecated. Constructs a ResourceMetaData object. |
ResourceMetaData(Object id,
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. |
Object |
getDefaultValue()
Deprecated. Returns the default value. |
Object |
getID()
Deprecated. Returns the ID. |
ResourceLevel |
getLevel()
Deprecated. Returns the level for which this is supported. |
Presentation |
getPossibleValuePresentation(Object possibleValue)
Deprecated. Returns the presentation for a possible value. |
Presentation[] |
getPossibleValuePresentations()
Deprecated. Returns the presentations for the possible values. |
Object[] |
getPossibleValues()
Deprecated. Returns the possible values. |
Presentation |
getPresentation()
Deprecated. Returns the presentation information. |
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(Object[] possibleValues,
ResourceLevel level)
Deprecated. Sets the possible values for a level. |
String |
toString()
Deprecated. Returns the String representation of the ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceMetaData(Object id,
Class type,
Presentation presentation)
id - The ID.type - The type of value.presentation - The presentation information.
public ResourceMetaData(Object id,
Class type,
boolean readOnly,
Object[] possibleValues,
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.| Method Detail |
|---|
public boolean areMultipleAllowed()
public Object getID()
public Object getDefaultValue()
public ResourceLevel getLevel()
public Presentation getPresentation()
public Object[] getPossibleValues()
public Presentation getPossibleValuePresentation(Object possibleValue)
possibleValue - The possible value.public Presentation[] getPossibleValuePresentations()
public 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(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 String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||