com.ibm.as400.resource

Class ProgramAttributeGetter

  • All Implemented Interfaces:
    Serializable

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

    public class ProgramAttributeGetter
    extends Object
    implements Serializable
    The ProgramAttributeGetter class gets attribute values by calling a program on the system. The program call is specified using Program Call Markup Language (PCML).

    This class uses a ProgramMap object to define how attribute values are specified in the PCML definition. This class is intended as a helper class for implementing subclasses of Resource.

    See Also:
    Serialized Form
    • Constructor Detail

      • ProgramAttributeGetter

        public ProgramAttributeGetter(AS400 system,
                              ProgramCallDocument document,
                              ProgramMap attributeMap)
        Deprecated. 
        Constructs a ProgramAttributeGetter object.
        Parameters:
        system - The system.
        document - The PCML document.
        attributeMap - The attribute map.
    • Method Detail

      • clearBuffer

        public void clearBuffer()
        Deprecated. 
        Clears any buffered attribute values. Calling this method ensures that subsequent calls to getValues() are current.
      • getValue

        public Object getValue(Object attributeID)
                        throws ResourceException
        Deprecated. 
        Returns an attribute value.
        Parameters:
        attributeID - The attribute ID.
        Returns:
        The attribute value.
        Throws:
        ResourceException - If an error occurs.
      • getValue

        public Object getValue(Object attributeID,
                      int bidiStringType)
                        throws ResourceException
        Deprecated. 
        Returns an attribute value.
        Parameters:
        attributeID - The attribute ID.
        bidiStringType - The bidi string type as defined by the CDRA (Character Data Representation Architecture). See BidiStringType for more information and valid values.
        Returns:
        The attribute value.
        Throws:
        ResourceException - If an error occurs.