xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.instance
Class ArchInstanceImpl

java.lang.Object
  extended byedu.uci.isr.xarch.instance.ArchInstanceImpl
All Implemented Interfaces:
DOMBased, IArchInstance, IXArchElement

public class ArchInstanceImpl
extends Object
implements IArchInstance, DOMBased

DOM-Based implementation of the IArchInstance interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String COMPONENT_INSTANCE_ELT_NAME
          Tag name for componentInstances in this object.
static String CONNECTOR_INSTANCE_ELT_NAME
          Tag name for connectorInstances in this object.
static String DESCRIPTION_ELT_NAME
          Tag name for descriptions in this object.
protected  Element elt
           
static String GROUP_ELT_NAME
          Tag name for groups in this object.
static String ID_ATTR_NAME
          Tag name for ids in this object.
static String LINK_INSTANCE_ELT_NAME
          Tag name for linkInstances in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.instance.IArchInstance
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
ArchInstanceImpl(Element elt)
           
 
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()
          Removes the id attribute from this object.
 void clearLinkInstances()
          Remove all linkInstances from this ArchInstance.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 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.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 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()
          Gets the value of the id attribute on this object.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 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.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 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 value)
          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.
 int hashCode()
           
 boolean hasId(String id)
          Determines if this object's id attribute 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 c)
          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 setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setId(String id)
          Set the id attribute on this object.
 void setXArch(IXArch xArch)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_TYPE_NSURI

public static final String XSD_TYPE_NSURI
See Also:
Constant Field Values

XSD_TYPE_NAME

public static final String XSD_TYPE_NAME
See Also:
Constant Field Values

xArch

protected IXArch xArch

ID_ATTR_NAME

public static final String ID_ATTR_NAME
Tag name for ids in this object.

See Also:
Constant Field Values

DESCRIPTION_ELT_NAME

public static final String DESCRIPTION_ELT_NAME
Tag name for descriptions in this object.

See Also:
Constant Field Values

COMPONENT_INSTANCE_ELT_NAME

public static final String COMPONENT_INSTANCE_ELT_NAME
Tag name for componentInstances in this object.

See Also:
Constant Field Values

CONNECTOR_INSTANCE_ELT_NAME

public static final String CONNECTOR_INSTANCE_ELT_NAME
Tag name for connectorInstances in this object.

See Also:
Constant Field Values

LINK_INSTANCE_ELT_NAME

public static final String LINK_INSTANCE_ELT_NAME
Tag name for linkInstances in this object.

See Also:
Constant Field Values

GROUP_ELT_NAME

public static final String GROUP_ELT_NAME
Tag name for groups in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

ArchInstanceImpl

public ArchInstanceImpl(Element elt)
Method Detail

getDOMNode

public Node getDOMNode()
Description copied from interface: DOMBased
Gets the DOM node on which this implementation is based.

Specified by:
getDOMNode in interface DOMBased
Returns:
DOM node

setDOMNode

public void setDOMNode(Node node)
Description copied from interface: DOMBased
Sets the DOM node on which this implementation is based.

Specified by:
setDOMNode in interface DOMBased
Parameters:
node - DOM node

getSequenceOrder

protected static SequenceOrder getSequenceOrder()

setXArch

public void setXArch(IXArch xArch)
Specified by:
setXArch in interface IXArchElement

getXArch

public IXArch getXArch()
Specified by:
getXArch in interface IXArchElement

cloneElement

public IXArchElement cloneElement(int depth)
Specified by:
cloneElement in interface IXArchElement

equals

public boolean equals(Object o)

hashCode

public int hashCode()

getTypeMetadata

public XArchTypeMetadata getTypeMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the xsi:type of this element.

Specified by:
getTypeMetadata in interface IXArchElement
Returns:
metadata describing the xsi:type of this element.

getInstanceMetadata

public XArchInstanceMetadata getInstanceMetadata()
Description copied from interface: IXArchElement
Gets metadata describing the instance of this element.

Specified by:
getInstanceMetadata in interface IXArchElement
Returns:
metadata describing the instance of this element.

setId

public void setId(String id)
Set the id attribute on this object.

Specified by:
setId in interface IArchInstance
Parameters:
id - attribute value.

clearId

public void clearId()
Removes the id attribute from this object.

Specified by:
clearId in interface IArchInstance

getId

public String getId()
Gets the value of the id attribute on this object.

Specified by:
getId in interface IArchInstance
Returns:
id attribute's value or null if that attribute is not set.

hasId

public boolean hasId(String id)
Determines if this object's id attribute has the given value.

Specified by:
hasId in interface IArchInstance
Parameters:
id - value to test.
Returns:
true if the values match, false otherwise. Matching is done by string-matching.

setDescription

public void setDescription(IDescription value)
Description copied from interface: IArchInstance
Set the description for this ArchInstance.

Specified by:
setDescription in interface IArchInstance
Parameters:
value - new description

clearDescription

public void clearDescription()
Description copied from interface: IArchInstance
Clear the description from this ArchInstance.

Specified by:
clearDescription in interface IArchInstance

getDescription

public IDescription getDescription()
Description copied from interface: IArchInstance
Get the description from this ArchInstance.

Specified by:
getDescription in interface IArchInstance
Returns:
description

hasDescription

public boolean hasDescription(IDescription value)
Description copied from interface: IArchInstance
Determine if this ArchInstance has the given description

Specified by:
hasDescription in interface IArchInstance
Parameters:
value - description to compare
Returns:
true if the descriptions are equivalent, false otherwise

addComponentInstance

public void addComponentInstance(IComponentInstance newComponentInstance)
Description copied from interface: IArchInstance
Add a componentInstance to this ArchInstance.

Specified by:
addComponentInstance in interface IArchInstance
Parameters:
newComponentInstance - componentInstance to add.

addComponentInstances

public void addComponentInstances(Collection componentInstances)
Description copied from interface: IArchInstance
Add a collection of componentInstances to this ArchInstance.

Specified by:
addComponentInstances in interface IArchInstance
Parameters:
componentInstances - componentInstances to add.

clearComponentInstances

public void clearComponentInstances()
Description copied from interface: IArchInstance
Remove all componentInstances from this ArchInstance.

Specified by:
clearComponentInstances in interface IArchInstance

removeComponentInstance

public void removeComponentInstance(IComponentInstance componentInstanceToRemove)
Description copied from interface: IArchInstance
Remove the given componentInstance from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeComponentInstance in interface IArchInstance
Parameters:
componentInstanceToRemove - componentInstance to remove.

removeComponentInstances

public void removeComponentInstances(Collection componentInstances)
Description copied from interface: IArchInstance
Remove all the given componentInstances from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeComponentInstances in interface IArchInstance
Parameters:
componentInstances - componentInstance to remove.

getAllComponentInstances

public Collection getAllComponentInstances()
Description copied from interface: IArchInstance
Get all the componentInstances from this ArchInstance.

Specified by:
getAllComponentInstances in interface IArchInstance
Returns:
all componentInstances in this ArchInstance.

hasComponentInstance

public boolean hasComponentInstance(IComponentInstance componentInstanceToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains a given componentInstance.

Specified by:
hasComponentInstance in interface IArchInstance
Returns:
true if this ArchInstance contains the given componentInstanceToCheck, false otherwise.

hasComponentInstances

public Collection hasComponentInstances(Collection componentInstancesToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains the given set of componentInstances.

Specified by:
hasComponentInstances in interface IArchInstance
Parameters:
componentInstancesToCheck - componentInstances to check for.
Returns:
Collection of 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.

hasAllComponentInstances

public boolean hasAllComponentInstances(Collection componentInstancesToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains each element in the given set of componentInstances.

Specified by:
hasAllComponentInstances in interface IArchInstance
Parameters:
componentInstancesToCheck - componentInstances to check for.
Returns:
true if every element in componentInstances is found in this ArchInstance, false otherwise.

getComponentInstance

public IComponentInstance getComponentInstance(String id)
Description copied from interface: IArchInstance
Gets the componentInstance from this ArchInstance with the given id.

Specified by:
getComponentInstance in interface IArchInstance
Parameters:
id - ID to look for.
Returns:
componentInstance with the given ID, or null if not found.

getComponentInstances

public Collection getComponentInstances(Collection ids)
Description copied from interface: IArchInstance
Gets the componentInstances from this ArchInstance with the given ids.

Specified by:
getComponentInstances in interface IArchInstance
Parameters:
ids - ID to look for.
Returns:
componentInstances with the given IDs. If an element with a given ID was not found, that ID is ignored.

addConnectorInstance

public void addConnectorInstance(IConnectorInstance newConnectorInstance)
Description copied from interface: IArchInstance
Add a connectorInstance to this ArchInstance.

Specified by:
addConnectorInstance in interface IArchInstance
Parameters:
newConnectorInstance - connectorInstance to add.

addConnectorInstances

public void addConnectorInstances(Collection connectorInstances)
Description copied from interface: IArchInstance
Add a collection of connectorInstances to this ArchInstance.

Specified by:
addConnectorInstances in interface IArchInstance
Parameters:
connectorInstances - connectorInstances to add.

clearConnectorInstances

public void clearConnectorInstances()
Description copied from interface: IArchInstance
Remove all connectorInstances from this ArchInstance.

Specified by:
clearConnectorInstances in interface IArchInstance

removeConnectorInstance

public void removeConnectorInstance(IConnectorInstance connectorInstanceToRemove)
Description copied from interface: IArchInstance
Remove the given connectorInstance from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeConnectorInstance in interface IArchInstance
Parameters:
connectorInstanceToRemove - connectorInstance to remove.

removeConnectorInstances

public void removeConnectorInstances(Collection connectorInstances)
Description copied from interface: IArchInstance
Remove all the given connectorInstances from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeConnectorInstances in interface IArchInstance
Parameters:
connectorInstances - connectorInstance to remove.

getAllConnectorInstances

public Collection getAllConnectorInstances()
Description copied from interface: IArchInstance
Get all the connectorInstances from this ArchInstance.

Specified by:
getAllConnectorInstances in interface IArchInstance
Returns:
all connectorInstances in this ArchInstance.

hasConnectorInstance

public boolean hasConnectorInstance(IConnectorInstance connectorInstanceToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains a given connectorInstance.

Specified by:
hasConnectorInstance in interface IArchInstance
Returns:
true if this ArchInstance contains the given connectorInstanceToCheck, false otherwise.

hasConnectorInstances

public Collection hasConnectorInstances(Collection connectorInstancesToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains the given set of connectorInstances.

Specified by:
hasConnectorInstances in interface IArchInstance
Parameters:
connectorInstancesToCheck - connectorInstances to check for.
Returns:
Collection of 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.

hasAllConnectorInstances

public boolean hasAllConnectorInstances(Collection connectorInstancesToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains each element in the given set of connectorInstances.

Specified by:
hasAllConnectorInstances in interface IArchInstance
Parameters:
connectorInstancesToCheck - connectorInstances to check for.
Returns:
true if every element in connectorInstances is found in this ArchInstance, false otherwise.

getConnectorInstance

public IConnectorInstance getConnectorInstance(String id)
Description copied from interface: IArchInstance
Gets the connectorInstance from this ArchInstance with the given id.

Specified by:
getConnectorInstance in interface IArchInstance
Parameters:
id - ID to look for.
Returns:
connectorInstance with the given ID, or null if not found.

getConnectorInstances

public Collection getConnectorInstances(Collection ids)
Description copied from interface: IArchInstance
Gets the connectorInstances from this ArchInstance with the given ids.

Specified by:
getConnectorInstances in interface IArchInstance
Parameters:
ids - ID to look for.
Returns:
connectorInstances with the given IDs. If an element with a given ID was not found, that ID is ignored.

addLinkInstance

public void addLinkInstance(ILinkInstance newLinkInstance)
Description copied from interface: IArchInstance
Add a linkInstance to this ArchInstance.

Specified by:
addLinkInstance in interface IArchInstance
Parameters:
newLinkInstance - linkInstance to add.

addLinkInstances

public void addLinkInstances(Collection linkInstances)
Description copied from interface: IArchInstance
Add a collection of linkInstances to this ArchInstance.

Specified by:
addLinkInstances in interface IArchInstance
Parameters:
linkInstances - linkInstances to add.

clearLinkInstances

public void clearLinkInstances()
Description copied from interface: IArchInstance
Remove all linkInstances from this ArchInstance.

Specified by:
clearLinkInstances in interface IArchInstance

removeLinkInstance

public void removeLinkInstance(ILinkInstance linkInstanceToRemove)
Description copied from interface: IArchInstance
Remove the given linkInstance from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeLinkInstance in interface IArchInstance
Parameters:
linkInstanceToRemove - linkInstance to remove.

removeLinkInstances

public void removeLinkInstances(Collection linkInstances)
Description copied from interface: IArchInstance
Remove all the given linkInstances from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeLinkInstances in interface IArchInstance
Parameters:
linkInstances - linkInstance to remove.

getAllLinkInstances

public Collection getAllLinkInstances()
Description copied from interface: IArchInstance
Get all the linkInstances from this ArchInstance.

Specified by:
getAllLinkInstances in interface IArchInstance
Returns:
all linkInstances in this ArchInstance.

hasLinkInstance

public boolean hasLinkInstance(ILinkInstance linkInstanceToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains a given linkInstance.

Specified by:
hasLinkInstance in interface IArchInstance
Returns:
true if this ArchInstance contains the given linkInstanceToCheck, false otherwise.

hasLinkInstances

public Collection hasLinkInstances(Collection linkInstancesToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains the given set of linkInstances.

Specified by:
hasLinkInstances in interface IArchInstance
Parameters:
linkInstancesToCheck - linkInstances to check for.
Returns:
Collection of 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.

hasAllLinkInstances

public boolean hasAllLinkInstances(Collection linkInstancesToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains each element in the given set of linkInstances.

Specified by:
hasAllLinkInstances in interface IArchInstance
Parameters:
linkInstancesToCheck - linkInstances to check for.
Returns:
true if every element in linkInstances is found in this ArchInstance, false otherwise.

getLinkInstance

public ILinkInstance getLinkInstance(String id)
Description copied from interface: IArchInstance
Gets the linkInstance from this ArchInstance with the given id.

Specified by:
getLinkInstance in interface IArchInstance
Parameters:
id - ID to look for.
Returns:
linkInstance with the given ID, or null if not found.

getLinkInstances

public Collection getLinkInstances(Collection ids)
Description copied from interface: IArchInstance
Gets the linkInstances from this ArchInstance with the given ids.

Specified by:
getLinkInstances in interface IArchInstance
Parameters:
ids - ID to look for.
Returns:
linkInstances with the given IDs. If an element with a given ID was not found, that ID is ignored.

addGroup

public void addGroup(IGroup newGroup)
Description copied from interface: IArchInstance
Add a group to this ArchInstance.

Specified by:
addGroup in interface IArchInstance
Parameters:
newGroup - group to add.

addGroups

public void addGroups(Collection groups)
Description copied from interface: IArchInstance
Add a collection of groups to this ArchInstance.

Specified by:
addGroups in interface IArchInstance
Parameters:
groups - groups to add.

clearGroups

public void clearGroups()
Description copied from interface: IArchInstance
Remove all groups from this ArchInstance.

Specified by:
clearGroups in interface IArchInstance

removeGroup

public void removeGroup(IGroup groupToRemove)
Description copied from interface: IArchInstance
Remove the given group from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeGroup in interface IArchInstance
Parameters:
groupToRemove - group to remove.

removeGroups

public void removeGroups(Collection groups)
Description copied from interface: IArchInstance
Remove all the given groups from this ArchInstance. Matching is done by the isEquivalent(...) function.

Specified by:
removeGroups in interface IArchInstance
Parameters:
groups - group to remove.

getAllGroups

public Collection getAllGroups()
Description copied from interface: IArchInstance
Get all the groups from this ArchInstance.

Specified by:
getAllGroups in interface IArchInstance
Returns:
all groups in this ArchInstance.

hasGroup

public boolean hasGroup(IGroup groupToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains a given group.

Specified by:
hasGroup in interface IArchInstance
Returns:
true if this ArchInstance contains the given groupToCheck, false otherwise.

hasGroups

public Collection hasGroups(Collection groupsToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains the given set of groups.

Specified by:
hasGroups in interface IArchInstance
Parameters:
groupsToCheck - groups to check for.
Returns:
Collection of 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.

hasAllGroups

public boolean hasAllGroups(Collection groupsToCheck)
Description copied from interface: IArchInstance
Determine if this ArchInstance contains each element in the given set of groups.

Specified by:
hasAllGroups in interface IArchInstance
Parameters:
groupsToCheck - groups to check for.
Returns:
true if every element in groups is found in this ArchInstance, false otherwise.

getGroup

public IGroup getGroup(String id)
Description copied from interface: IArchInstance
Gets the group from this ArchInstance with the given id.

Specified by:
getGroup in interface IArchInstance
Parameters:
id - ID to look for.
Returns:
group with the given ID, or null if not found.

getGroups

public Collection getGroups(Collection ids)
Description copied from interface: IArchInstance
Gets the groups from this ArchInstance with the given ids.

Specified by:
getGroups in interface IArchInstance
Parameters:
ids - ID to look for.
Returns:
groups with the given IDs. If an element with a given ID was not found, that ID is ignored.

isEqual

public boolean isEqual(IArchInstance ArchInstanceToCheck)
Description copied from interface: IArchInstance
Determine if another ArchInstance has the same id as this one.

Specified by:
isEqual in interface IArchInstance
Parameters:
ArchInstanceToCheck - ArchInstance to compare with this one.

isEquivalent

public boolean isEquivalent(IArchInstance c)
Description copied from interface: IArchInstance
Determine if another ArchInstance is equivalent to this one, ignoring ID's.

Specified by:
isEquivalent in interface IArchInstance
Parameters:
c - ArchInstance to compare to this one.
Returns:
true if all the child elements of this ArchInstance are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library