com.ibm.as400.resource

Class ResourceMetaData

    • 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.