|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for accessing objects of the
ArchInstance xsi:type in the
instance namespace.
| Field Summary | |
static XArchTypeMetadata |
TYPE_METADATA
|
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Method Summary | |
void |
addComponentInstance(IComponentInstance newComponentInstance)
Add a componentInstance to this ArchInstance. |
void |
addComponentInstances(Collection componentInstances)
Add a collection of componentInstances to this ArchInstance. |
void |
addConnectorInstance(IConnectorInstance newConnectorInstance)
Add a connectorInstance to this ArchInstance. |
void |
addConnectorInstances(Collection connectorInstances)
Add a collection of connectorInstances to this ArchInstance. |
void |
addGroup(IGroup newGroup)
Add a group to this ArchInstance. |
void |
addGroups(Collection groups)
Add a collection of groups to this ArchInstance. |
void |
addLinkInstance(ILinkInstance newLinkInstance)
Add a linkInstance to this ArchInstance. |
void |
addLinkInstances(Collection linkInstances)
Add a collection of linkInstances to this ArchInstance. |
void |
clearComponentInstances()
Remove all componentInstances from this ArchInstance. |
void |
clearConnectorInstances()
Remove all connectorInstances from this ArchInstance. |
void |
clearDescription()
Clear the description from this ArchInstance. |
void |
clearGroups()
Remove all groups from this ArchInstance. |
void |
clearId()
Remove the id attribute from this ArchInstance. |
void |
clearLinkInstances()
Remove all linkInstances from this ArchInstance. |
Collection |
getAllComponentInstances()
Get all the componentInstances from this ArchInstance. |
Collection |
getAllConnectorInstances()
Get all the connectorInstances from this ArchInstance. |
Collection |
getAllGroups()
Get all the groups from this ArchInstance. |
Collection |
getAllLinkInstances()
Get all the linkInstances from this ArchInstance. |
IComponentInstance |
getComponentInstance(String id)
Gets the componentInstance from this ArchInstance with the given id. |
Collection |
getComponentInstances(Collection ids)
Gets the componentInstances from this ArchInstance with the given ids. |
IConnectorInstance |
getConnectorInstance(String id)
Gets the connectorInstance from this ArchInstance with the given id. |
Collection |
getConnectorInstances(Collection ids)
Gets the connectorInstances from this ArchInstance with the given ids. |
IDescription |
getDescription()
Get the description from this ArchInstance. |
IGroup |
getGroup(String id)
Gets the group from this ArchInstance with the given id. |
Collection |
getGroups(Collection ids)
Gets the groups from this ArchInstance with the given ids. |
String |
getId()
Get the id attribute from this ArchInstance. |
ILinkInstance |
getLinkInstance(String id)
Gets the linkInstance from this ArchInstance with the given id. |
Collection |
getLinkInstances(Collection ids)
Gets the linkInstances from this ArchInstance with the given ids. |
boolean |
hasAllComponentInstances(Collection componentInstancesToCheck)
Determine if this ArchInstance contains each element in the given set of componentInstances. |
boolean |
hasAllConnectorInstances(Collection connectorInstancesToCheck)
Determine if this ArchInstance contains each element in the given set of connectorInstances. |
boolean |
hasAllGroups(Collection groupsToCheck)
Determine if this ArchInstance contains each element in the given set of groups. |
boolean |
hasAllLinkInstances(Collection linkInstancesToCheck)
Determine if this ArchInstance contains each element in the given set of linkInstances. |
boolean |
hasComponentInstance(IComponentInstance componentInstanceToCheck)
Determine if this ArchInstance contains a given componentInstance. |
Collection |
hasComponentInstances(Collection componentInstancesToCheck)
Determine if this ArchInstance contains the given set of componentInstances. |
boolean |
hasConnectorInstance(IConnectorInstance connectorInstanceToCheck)
Determine if this ArchInstance contains a given connectorInstance. |
Collection |
hasConnectorInstances(Collection connectorInstancesToCheck)
Determine if this ArchInstance contains the given set of connectorInstances. |
boolean |
hasDescription(IDescription descriptionToCheck)
Determine if this ArchInstance has the given description |
boolean |
hasGroup(IGroup groupToCheck)
Determine if this ArchInstance contains a given group. |
Collection |
hasGroups(Collection groupsToCheck)
Determine if this ArchInstance contains the given set of groups. |
boolean |
hasId(String id)
Determine if the id attribute on this ArchInstance has the given value. |
boolean |
hasLinkInstance(ILinkInstance linkInstanceToCheck)
Determine if this ArchInstance contains a given linkInstance. |
Collection |
hasLinkInstances(Collection linkInstancesToCheck)
Determine if this ArchInstance contains the given set of linkInstances. |
boolean |
isEqual(IArchInstance ArchInstanceToCheck)
Determine if another ArchInstance has the same id as this one. |
boolean |
isEquivalent(IArchInstance ArchInstanceToCheck)
Determine if another ArchInstance is equivalent to this one, ignoring ID's. |
void |
removeComponentInstance(IComponentInstance componentInstanceToRemove)
Remove the given componentInstance from this ArchInstance. |
void |
removeComponentInstances(Collection componentInstances)
Remove all the given componentInstances from this ArchInstance. |
void |
removeConnectorInstance(IConnectorInstance connectorInstanceToRemove)
Remove the given connectorInstance from this ArchInstance. |
void |
removeConnectorInstances(Collection connectorInstances)
Remove all the given connectorInstances from this ArchInstance. |
void |
removeGroup(IGroup groupToRemove)
Remove the given group from this ArchInstance. |
void |
removeGroups(Collection groups)
Remove all the given groups from this ArchInstance. |
void |
removeLinkInstance(ILinkInstance linkInstanceToRemove)
Remove the given linkInstance from this ArchInstance. |
void |
removeLinkInstances(Collection linkInstances)
Remove all the given linkInstances from this ArchInstance. |
void |
setDescription(IDescription value)
Set the description for this ArchInstance. |
void |
setId(String id)
Set the id attribute on this ArchInstance. |
| Methods inherited from interface edu.uci.isr.xarch.IXArchElement |
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch |
| Field Detail |
public static final XArchTypeMetadata TYPE_METADATA
| Method Detail |
public void setId(String id)
id - id
FixedValueException - if the attribute has a fixed value
and the value passed is not the fixed value.public void clearId()
public String getId()
public boolean hasId(String id)
id - Attribute value to compare
true if they match; false
otherwise.public void setDescription(IDescription value)
value - new descriptionpublic void clearDescription()
public IDescription getDescription()
public boolean hasDescription(IDescription descriptionToCheck)
descriptionToCheck - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addComponentInstance(IComponentInstance newComponentInstance)
newComponentInstance - componentInstance to add.public void addComponentInstances(Collection componentInstances)
componentInstances - componentInstances to add.public void clearComponentInstances()
public void removeComponentInstance(IComponentInstance componentInstanceToRemove)
isEquivalent(...) function.
componentInstanceToRemove - componentInstance to remove.public void removeComponentInstances(Collection componentInstances)
isEquivalent(...) function.
componentInstances - componentInstance to remove.public Collection getAllComponentInstances()
public boolean hasComponentInstance(IComponentInstance componentInstanceToCheck)
true if this ArchInstance contains the given
componentInstanceToCheck, false otherwise.public Collection hasComponentInstances(Collection componentInstancesToCheck)
componentInstancesToCheck - componentInstances to check for.
java.lang.Boolean. If the ith
element in componentInstances was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllComponentInstances(Collection componentInstancesToCheck)
componentInstancesToCheck - componentInstances to check for.
true if every element in
componentInstances is found in this ArchInstance,
false otherwise.public IComponentInstance getComponentInstance(String id)
id - ID to look for.
null if not found.public Collection getComponentInstances(Collection ids)
ids - ID to look for.
public void addConnectorInstance(IConnectorInstance newConnectorInstance)
newConnectorInstance - connectorInstance to add.public void addConnectorInstances(Collection connectorInstances)
connectorInstances - connectorInstances to add.public void clearConnectorInstances()
public void removeConnectorInstance(IConnectorInstance connectorInstanceToRemove)
isEquivalent(...) function.
connectorInstanceToRemove - connectorInstance to remove.public void removeConnectorInstances(Collection connectorInstances)
isEquivalent(...) function.
connectorInstances - connectorInstance to remove.public Collection getAllConnectorInstances()
public boolean hasConnectorInstance(IConnectorInstance connectorInstanceToCheck)
true if this ArchInstance contains the given
connectorInstanceToCheck, false otherwise.public Collection hasConnectorInstances(Collection connectorInstancesToCheck)
connectorInstancesToCheck - connectorInstances to check for.
java.lang.Boolean. If the ith
element in connectorInstances was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllConnectorInstances(Collection connectorInstancesToCheck)
connectorInstancesToCheck - connectorInstances to check for.
true if every element in
connectorInstances is found in this ArchInstance,
false otherwise.public IConnectorInstance getConnectorInstance(String id)
id - ID to look for.
null if not found.public Collection getConnectorInstances(Collection ids)
ids - ID to look for.
public void addLinkInstance(ILinkInstance newLinkInstance)
newLinkInstance - linkInstance to add.public void addLinkInstances(Collection linkInstances)
linkInstances - linkInstances to add.public void clearLinkInstances()
public void removeLinkInstance(ILinkInstance linkInstanceToRemove)
isEquivalent(...) function.
linkInstanceToRemove - linkInstance to remove.public void removeLinkInstances(Collection linkInstances)
isEquivalent(...) function.
linkInstances - linkInstance to remove.public Collection getAllLinkInstances()
public boolean hasLinkInstance(ILinkInstance linkInstanceToCheck)
true if this ArchInstance contains the given
linkInstanceToCheck, false otherwise.public Collection hasLinkInstances(Collection linkInstancesToCheck)
linkInstancesToCheck - linkInstances to check for.
java.lang.Boolean. If the ith
element in linkInstances was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllLinkInstances(Collection linkInstancesToCheck)
linkInstancesToCheck - linkInstances to check for.
true if every element in
linkInstances is found in this ArchInstance,
false otherwise.public ILinkInstance getLinkInstance(String id)
id - ID to look for.
null if not found.public Collection getLinkInstances(Collection ids)
ids - ID to look for.
public void addGroup(IGroup newGroup)
newGroup - group to add.public void addGroups(Collection groups)
groups - groups to add.public void clearGroups()
public void removeGroup(IGroup groupToRemove)
isEquivalent(...) function.
groupToRemove - group to remove.public void removeGroups(Collection groups)
isEquivalent(...) function.
groups - group to remove.public Collection getAllGroups()
public boolean hasGroup(IGroup groupToCheck)
true if this ArchInstance contains the given
groupToCheck, false otherwise.public Collection hasGroups(Collection groupsToCheck)
groupsToCheck - groups to check for.
java.lang.Boolean. If the ith
element in groups was found, then the ith
element of the collection will be set to true, otherwise it
will be set to false. Matching is done with the
isEquivalent(...) method.public boolean hasAllGroups(Collection groupsToCheck)
groupsToCheck - groups to check for.
true if every element in
groups is found in this ArchInstance,
false otherwise.public IGroup getGroup(String id)
id - ID to look for.
null if not found.public Collection getGroups(Collection ids)
ids - ID to look for.
public boolean isEqual(IArchInstance ArchInstanceToCheck)
ArchInstanceToCheck - ArchInstance to compare with this
one.public boolean isEquivalent(IArchInstance ArchInstanceToCheck)
ArchInstanceToCheck - ArchInstance to compare to this one.
true if all the child elements of this
ArchInstance are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||