public class ReferenceCache
extends java.lang.Object
ImplementationIF
Constructor and Description |
---|
ReferenceCache(java.lang.String name)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(ReferenceCache child)
Add a child.
|
void |
addDSRef(ApplAttr attr)
Add a sequence reference.
|
void |
addDTRef(ApplAttr attr)
Add a standard reference.
|
void |
addRel(ApplRel attr)
Add a relation.
|
T_ExternalReference[] |
getExtRefs(OdsCacheIF cache,
TargetElement element)
Get the external reference structures signed by a target element.
|
T_LONGLONG |
getRelated(int index,
T_LONGLONG aeId)
Get the related application element id.
|
int |
getRelCount()
Get the total number of relations.
|
java.lang.String |
getRelName(int index)
Get the relation name.
|
boolean |
hasAttrs()
Has this node external reference attributes.
|
boolean |
hasChildRefs()
Has this node children.
|
boolean |
hasRels()
Has this node relation attributes.
|
public ReferenceCache(java.lang.String name)
name
- the name of the reference.public void addDSRef(ApplAttr attr)
attr
- the sequence attribute.public void addDTRef(ApplAttr attr)
attr
- the attribute.public T_ExternalReference[] getExtRefs(OdsCacheIF cache, TargetElement element) throws AoException
cache
- the ASAM ODS cacheelement
- the target elementAoException
- if ASAM ODS fails.public void addRel(ApplRel attr)
attr
- the relation attribute.public void addChild(ReferenceCache child)
child
- the child.public boolean hasAttrs()
public boolean hasRels()
public int getRelCount()
public T_LONGLONG getRelated(int index, T_LONGLONG aeId)
index
- the relation index.aeId
- the application element idpublic java.lang.String getRelName(int index)
index
- the relation index.public boolean hasChildRefs()