public class HandledInstancesMap
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.String[]> |
aaNamesMap
Map with the names of the attributes of an element.
|
protected java.util.HashMap<java.lang.String,java.util.Vector<java.lang.Long>> |
elementMap |
protected java.util.HashMap<InstanceElement,T_LONGLONG> |
ieSourceMap |
protected java.util.HashMap<java.lang.String,InstanceElement> |
ieTargetMap |
Constructor and Description |
---|
HandledInstancesMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String elementName,
T_LONGLONG ieId)
Add the Id of the instances as a handled instance element.
|
void |
addCopied(java.lang.String identifier,
InstanceElement ieTarget)
Add the copied target instance into the map identified by an identifier.
|
void |
addCopied(java.lang.String aeName,
T_LONGLONG ieId,
InstanceElement ieTarget)
Add the copied target instance into the map.
|
java.util.Vector<java.lang.Long> |
get(java.lang.String elementName)
Get the vector with the Id's of the handled instances of an element.
|
InstanceElement |
getCopied(java.lang.String identifier)
Get the target instance element identified by an indetifier.
|
InstanceElement |
getCopied(java.lang.String aeName,
T_LONGLONG ieId)
Get the target instance element identified by the name of the application element and
the Id of the source instance.
|
T_LONGLONG[] |
getIds(java.lang.String elementName)
Get the List with the Id's of the handled instances of an element.
|
T_LONGLONG |
getSourceInstanceId(InstanceElement ieTarget)
Get the Id of the source instance from the target instances.
|
boolean |
inMap(java.lang.String elementName,
T_LONGLONG ieId)
Determine whether the instance (element name and instances Id) are
already stored in the map.
|
protected java.lang.String[] |
listAttributes(java.lang.String aeName,
ApplicationElement aeTarget,
ApplicationElement aeSource,
boolean skipId,
boolean skipName,
boolean skipValues)
List attributes.
|
protected java.util.HashMap<java.lang.String,java.util.Vector<java.lang.Long>> elementMap
protected java.util.HashMap<java.lang.String,InstanceElement> ieTargetMap
protected java.util.HashMap<InstanceElement,T_LONGLONG> ieSourceMap
protected java.util.HashMap<java.lang.String,java.lang.String[]> aaNamesMap
public void addCopied(java.lang.String aeName, T_LONGLONG ieId, InstanceElement ieTarget)
aeName
- the name of the application element.ieId
- the Id of the source instance.ieTarget
- the target instance element.public void addCopied(java.lang.String identifier, InstanceElement ieTarget)
identifier
- the identifier of the source elementieTarget
- the target instance.public T_LONGLONG getSourceInstanceId(InstanceElement ieTarget)
ieTarget
- the target instance.public InstanceElement getCopied(java.lang.String aeName, T_LONGLONG ieId)
aeName
- the application element nameieId
- the Id of the source instances.public InstanceElement getCopied(java.lang.String identifier)
identifier
- the identifier.public java.util.Vector<java.lang.Long> get(java.lang.String elementName)
elementName
- the name of the element.public T_LONGLONG[] getIds(java.lang.String elementName)
elementName
- the name of the element.public void add(java.lang.String elementName, T_LONGLONG ieId)
elementName
- the name of the element.ieId
- the Id of the instance.public boolean inMap(java.lang.String elementName, T_LONGLONG ieId)
elementName
- Name of the elementieId
- Id of the instanceprotected java.lang.String[] listAttributes(java.lang.String aeName, ApplicationElement aeTarget, ApplicationElement aeSource, boolean skipId, boolean skipName, boolean skipValues) throws AoException
aeName
- name of the elementaeTarget
- the target application elementaeSource
- the source application elementskipId
- skip the based attribute IdskipName
- skip the based attribute nameAoException
- any occurring ASAM ODS exception.