Serializablepublic class ProgramMap extends Object implements 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 | Description |
|---|---|
ProgramMap() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(Object id,
String programName,
String dataName) |
Deprecated.
Adds a map entry.
|
void |
add(Object id,
String programName,
String dataName,
int[] indices) |
Deprecated.
Adds a map entry.
|
void |
add(Object id,
String programName,
String dataName,
int[] indices,
ValueMap valueMap) |
Deprecated.
Adds a map entry.
|
void |
add(Object id,
String programName,
String dataName,
ValueMap valueMap) |
Deprecated.
Adds a map entry.
|
void |
add(Object id,
String programName,
String dataName,
ValueMap valueMap,
ResourceLevel level) |
Deprecated.
Adds a map entry.
|
void |
add(Object id,
String programName,
String dataName,
String countName) |
Deprecated.
Adds a map entry for array elements.
|
void |
add(Object id,
String programName,
String dataName,
String countName,
ValueMap map) |
Deprecated.
Adds a map entry for array elements.
|
Object[] |
getIDs() |
Deprecated.
Returns the list of IDs in the map.
|
Object[] |
getValues(Object[] ids,
AS400 system,
ProgramCallDocument document,
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(Object id, String programName, 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(Object id, String programName, 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(Object id, String programName, 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(Object id, String programName, 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(Object id, String programName, String dataName, 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(Object id, String programName, String dataName, 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(Object id, String programName, 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 Object[] getIDs()
public Object[] getValues(Object[] ids, AS400 system, ProgramCallDocument document, 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.PcmlExceptionCopyright © 2024. All rights reserved.