public class ProgramAttributeSetter
extends java.lang.Object
implements java.io.Serializable
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
.
Constructor and Description |
---|
ProgramAttributeSetter(AS400 system,
ProgramCallDocument document,
ProgramMap attributeMap)
Deprecated.
Constructs a ProgramAttributeSetter object.
|
Modifier and Type | Method and Description |
---|---|
void |
initializeAttributeValues(ProgramAttributeGetter attributeGetter)
Deprecated.
Initializes the attribute values for the setter.
|
void |
initializeAttributeValues(ProgramAttributeGetter attributeGetter,
java.lang.Object[] attrsToInitializeFirst)
Deprecated.
Initializes the attribute values for the setter.
|
void |
setValues(java.lang.Object[] attributeIDs,
java.lang.Object[] values)
Deprecated.
Sets the attribute values.
|
public ProgramAttributeSetter(AS400 system, ProgramCallDocument document, ProgramMap attributeMap)
system
- The system.document
- The PCML document.attributeMap
- The attribute map.public void initializeAttributeValues(ProgramAttributeGetter attributeGetter) throws ResourceException
attributeGetter
- The attribute getter with which to retrieve the current values from the system.ResourceException
- If an error occurs.public void initializeAttributeValues(ProgramAttributeGetter attributeGetter, java.lang.Object[] attrsToInitializeFirst) throws ResourceException
attributeGetter
- The attribute getter with which to retrieve the current values from the system.attrsToInitializeFirst
- The IDs of the attributes to initialize first, in desired order of initialization. These will typically be "length of another field" attributes.ResourceException
- If an error occurs.public void setValues(java.lang.Object[] attributeIDs, java.lang.Object[] values) throws ResourceException
attributeIDs
- The attribute IDs.values
- The values. This array must contain the same number of
elements as attributeIDs.ResourceException
- If an error occurs.