com.ibm.as400.resource
Class ResourceMetaData

java.lang.Object
  extended by com.ibm.as400.resource.ResourceMetaData
All Implemented Interfaces:
Serializable

Deprecated. Use packages com.ibm.as400.access and com.ibm.as400.access.list instead.

public class ResourceMetaData
extends Object
implements Serializable

The ResourceMetaData class represents information about a Resource or ResourceList.

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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

ResourceMetaData

public ResourceMetaData(Object id,
                        Class type,
                        Presentation presentation)
Deprecated. 
Constructs a ResourceMetaData object for a read-only value with no possible values.

Parameters:
id - The ID.
type - The type of value.
presentation - The presentation information.

ResourceMetaData

public ResourceMetaData(Object id,
                        Class type,
                        boolean readOnly,
                        Object[] possibleValues,
                        Object defaultValue,
                        boolean valueLimited,
                        boolean multipleAllowed,
                        Presentation presentation,
                        Presentation[] possibleValuePresentations)
Deprecated. 
Constructs a ResourceMetaData object.

Parameters:
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

areMultipleAllowed

public boolean areMultipleAllowed()
Deprecated. 
Indicates if multiple values are allowed. If this is true, then values are expressed as arrays.

Returns:
true if multiple values are allowed, false otherwise.

getID

public Object getID()
Deprecated. 
Returns the ID.

Returns:
The ID.

getDefaultValue

public Object getDefaultValue()
Deprecated. 
Returns the default value.

Returns:
The default value, or null if there is no default value.

getLevel

public ResourceLevel getLevel()
Deprecated. 
Returns the level for which this is supported.

Returns:
The level for which this is supported.

getPresentation

public Presentation getPresentation()
Deprecated. 
Returns the presentation information.

Returns:
The presentation.

getPossibleValues

public Object[] getPossibleValues()
Deprecated. 
Returns the possible values. If the value is limited to the possible values, then the value will always be one of these values.

Returns:
The possible values. The array has zero elements if there are no possible values.

getPossibleValuePresentation

public Presentation getPossibleValuePresentation(Object possibleValue)
Deprecated. 
Returns the presentation for a possible value.

Parameters:
possibleValue - The possible value.
Returns:
The presentation for the possible value, or null if there is no presentation available for the possible value.

getPossibleValuePresentations

public Presentation[] getPossibleValuePresentations()
Deprecated. 
Returns the presentations for the possible values.

Returns:
The presentations for the possible values. The array has zero elements if there are no possible values.

getType

public Class getType()
Deprecated. 
Returns the type of value.


isReadOnly

public boolean isReadOnly()
Deprecated. 
Indicates if the value is read-only.

Returns:
true if the value is read-only, false if the value is writable.

isValueLimited

public boolean isValueLimited()
Deprecated. 
Indicates if the value is limited to the possible values.

Returns:
true if the value is limited to the possible values, false if other values are allowed.

setLevel

public void setLevel(ResourceLevel level)
Deprecated. 
Sets the level for which this is valid.

Parameters:
level - The level for which this is valid, or null if this is valid for all levels.

setPossibleValues

public void setPossibleValues(Object[] possibleValues,
                              ResourceLevel level)
Deprecated. 
Sets the possible values for a level. If this value is limited, then the value will always be one of these values.

Parameters:
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.

toString

public String toString()
Deprecated. 
Returns the String representation of the ID.

Overrides:
toString in class Object
Returns:
The String representation of the ID.