com.ibm.as400.resource
Class ResourceMetaData
- java.lang.Object
-
- com.ibm.as400.resource.ResourceMetaData
-
- All Implemented Interfaces:
- java.io.Serializable
Deprecated.Use packages com.ibm.as400.access and com.ibm.as400.access.list instead.
public class ResourceMetaData extends java.lang.Object implements java.io.Serializable
The ResourceMetaData class represents information about aResource
orResourceList
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors 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.
-
Method Summary
Methods 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.
-
-
-
Constructor Detail
-
ResourceMetaData
public 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.- Parameters:
id
- The ID.type
- The type of value.presentation
- The presentation information.
-
ResourceMetaData
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)
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 java.lang.Object getID()
Deprecated.Returns the ID.- Returns:
- The ID.
-
getDefaultValue
public java.lang.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 java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.lang.String toString()
Deprecated.Returns the String representation of the ID.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The String representation of the ID.
-
-