public class ProgramMap
extends java.lang.Object
implements java.io.Serializable
Resource
attribute values and data in a PCML document. Each logical value is
referred to by a logical ID in the map. A logical value may map to
multiple pieces of data in a PCML document.
This class is intended as a helper class for implementing subclasses
of Resource
.
Constructor and Description |
---|
ProgramMap()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object id,
java.lang.String programName,
java.lang.String dataName)
Deprecated.
Adds a map entry.
|
void |
add(java.lang.Object id,
java.lang.String programName,
java.lang.String dataName,
int[] indices)
Deprecated.
Adds a map entry.
|
void |
add(java.lang.Object id,
java.lang.String programName,
java.lang.String dataName,
int[] indices,
ValueMap valueMap)
Deprecated.
Adds a map entry.
|
void |
add(java.lang.Object id,
java.lang.String programName,
java.lang.String dataName,
java.lang.String countName)
Deprecated.
Adds a map entry for array elements.
|
void |
add(java.lang.Object id,
java.lang.String programName,
java.lang.String dataName,
java.lang.String countName,
ValueMap map)
Deprecated.
Adds a map entry for array elements.
|
void |
add(java.lang.Object id,
java.lang.String programName,
java.lang.String dataName,
ValueMap valueMap)
Deprecated.
Adds a map entry.
|
void |
add(java.lang.Object id,
java.lang.String programName,
java.lang.String dataName,
ValueMap valueMap,
ResourceLevel level)
Deprecated.
Adds a map entry.
|
java.lang.Object[] |
getIDs()
Deprecated.
Returns the list of IDs in the map.
|
java.lang.Object[] |
getValues(java.lang.Object[] ids,
AS400 system,
ProgramCallDocument document,
java.lang.String programName,
int[] indices)
Deprecated.
Get a set of values from the PCML document and map them to
the appropriate logical values.
|
public void add(java.lang.Object id, java.lang.String programName, java.lang.String dataName)
id
- Identifies the logical value.programName
- The program name in the PCML definition.dataName
- The data name in the PCML definition.public void add(java.lang.Object id, java.lang.String programName, java.lang.String dataName, ValueMap valueMap)
id
- Identifies the logical value.programName
- The program name in the PCML definition.dataName
- The data name in the PCML definition.valueMap
- The value map, or null if there is none.public void add(java.lang.Object id, java.lang.String programName, java.lang.String dataName, ValueMap valueMap, ResourceLevel level)
id
- Identifies the logical value.programName
- The program name in the PCML definition.dataName
- The data name in the PCML definition.valueMap
- The value map, or null if there is none.level
- The level where this entry is valid, or null if this
entry is always valid.public void add(java.lang.Object id, java.lang.String programName, java.lang.String dataName, int[] indices)
id
- Identifies the logical value.programName
- The program name in the PCML definition.dataName
- The data name in the PCML definition.indices
- The indices in the PCML definition, or null if there are none.public void add(java.lang.Object id, java.lang.String programName, java.lang.String dataName, java.lang.String countName, ValueMap map)
id
- Identifies the logical value.programName
- The program name in the PCML definition.dataName
- The data name in the PCML definition.countName
- The data name in the PCML defintion which specifies
the size of the array.map
- The value map, or null if there is none.public void add(java.lang.Object id, java.lang.String programName, java.lang.String dataName, java.lang.String countName)
id
- Identifies the logical value.programName
- The program name in the PCML definition.dataName
- The data name in the PCML definition.countName
- The data name in the PCML defintion which specifies
the size of the array.public void add(java.lang.Object id, java.lang.String programName, java.lang.String dataName, int[] indices, ValueMap valueMap)
id
- Identifies the logical value.programName
- The program name in the PCML definition, or null
if it will be filled in later.dataName
- The data name in the PCML definition.indices
- The indices in the PCML definition, or null if there are none.valueMap
- The value map, or null if there is none.public java.lang.Object[] getIDs()
public java.lang.Object[] getValues(java.lang.Object[] ids, AS400 system, ProgramCallDocument document, java.lang.String programName, int[] indices) throws PcmlException
ids
- Identifies the logical values.system
- The system.document
- The PCML document.programName
- The PCML program name, or null if
the program name is specified as
part of the entry.indices
- The indices, or null if not applicable,
or if the indices are specified as
part of the entry.PcmlException