xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.instance
Interface IConnectorInstance

All Superinterfaces:
IXArchElement
All Known Subinterfaces:
IPrescribedConnectorInstance
All Known Implementing Classes:
ConnectorInstanceImpl, PrescribedConnectorInstanceImpl

public interface IConnectorInstance
extends IXArchElement

Interface for accessing objects of the ConnectorInstance xsi:type in the instance namespace.

Author:
Automatically generated by xArch apigen

Field Summary
static XArchTypeMetadata TYPE_METADATA
           
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Method Summary
 void addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
          Add a interfaceInstance to this ConnectorInstance.
 void addInterfaceInstances(Collection interfaceInstances)
          Add a collection of interfaceInstances to this ConnectorInstance.
 void clearDescription()
          Clear the description from this ConnectorInstance.
 void clearId()
          Remove the id attribute from this ConnectorInstance.
 void clearInterfaceInstances()
          Remove all interfaceInstances from this ConnectorInstance.
 void clearSubArchitecture()
          Clear the subArchitecture from this ConnectorInstance.
 Collection getAllInterfaceInstances()
          Get all the interfaceInstances from this ConnectorInstance.
 IDescription getDescription()
          Get the description from this ConnectorInstance.
 String getId()
          Get the id attribute from this ConnectorInstance.
 IInterfaceInstance getInterfaceInstance(String id)
          Gets the interfaceInstance from this ConnectorInstance with the given id.
 Collection getInterfaceInstances(Collection ids)
          Gets the interfaceInstances from this ConnectorInstance with the given ids.
 ISubArchitecture getSubArchitecture()
          Get the subArchitecture from this ConnectorInstance.
 boolean hasAllInterfaceInstances(Collection interfaceInstancesToCheck)
          Determine if this ConnectorInstance contains each element in the given set of interfaceInstances.
 boolean hasDescription(IDescription descriptionToCheck)
          Determine if this ConnectorInstance has the given description
 boolean hasId(String id)
          Determine if the id attribute on this ConnectorInstance has the given value.
 boolean hasInterfaceInstance(IInterfaceInstance interfaceInstanceToCheck)
          Determine if this ConnectorInstance contains a given interfaceInstance.
 Collection hasInterfaceInstances(Collection interfaceInstancesToCheck)
          Determine if this ConnectorInstance contains the given set of interfaceInstances.
 boolean hasSubArchitecture(ISubArchitecture subArchitectureToCheck)
          Determine if this ConnectorInstance has the given subArchitecture
 boolean isEqual(IConnectorInstance ConnectorInstanceToCheck)
          Determine if another ConnectorInstance has the same id as this one.
 boolean isEquivalent(IConnectorInstance ConnectorInstanceToCheck)
          Determine if another ConnectorInstance is equivalent to this one, ignoring ID's.
 void removeInterfaceInstance(IInterfaceInstance interfaceInstanceToRemove)
          Remove the given interfaceInstance from this ConnectorInstance.
 void removeInterfaceInstances(Collection interfaceInstances)
          Remove all the given interfaceInstances from this ConnectorInstance.
 void setDescription(IDescription value)
          Set the description for this ConnectorInstance.
 void setId(String id)
          Set the id attribute on this ConnectorInstance.
 void setSubArchitecture(ISubArchitecture value)
          Set the subArchitecture for this ConnectorInstance.
 
Methods inherited from interface edu.uci.isr.xarch.IXArchElement
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch
 

Field Detail

TYPE_METADATA

public static final XArchTypeMetadata TYPE_METADATA
Method Detail

setId

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

Parameters:
id - id
Throws:
FixedValueException - if the attribute has a fixed value and the value passed is not the fixed value.

clearId

public void clearId()
Remove the id attribute from this ConnectorInstance.


getId

public String getId()
Get the id attribute from this ConnectorInstance. if the attribute has a fixed value, this function will return that fixed value, even if it is not actually present in the XML document.

Returns:
id on this ConnectorInstance

hasId

public boolean hasId(String id)
Determine if the id attribute on this ConnectorInstance has the given value.

Parameters:
id - Attribute value to compare
Returns:
true if they match; false otherwise.

setDescription

public void setDescription(IDescription value)
Set the description for this ConnectorInstance.

Parameters:
value - new description

clearDescription

public void clearDescription()
Clear the description from this ConnectorInstance.


getDescription

public IDescription getDescription()
Get the description from this ConnectorInstance.

Returns:
description

hasDescription

public boolean hasDescription(IDescription descriptionToCheck)
Determine if this ConnectorInstance has the given description

Parameters:
descriptionToCheck - description to compare
Returns:
true if the descriptions are equivalent, false otherwise

addInterfaceInstance

public void addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
Add a interfaceInstance to this ConnectorInstance.

Parameters:
newInterfaceInstance - interfaceInstance to add.

addInterfaceInstances

public void addInterfaceInstances(Collection interfaceInstances)
Add a collection of interfaceInstances to this ConnectorInstance.

Parameters:
interfaceInstances - interfaceInstances to add.

clearInterfaceInstances

public void clearInterfaceInstances()
Remove all interfaceInstances from this ConnectorInstance.


removeInterfaceInstance

public void removeInterfaceInstance(IInterfaceInstance interfaceInstanceToRemove)
Remove the given interfaceInstance from this ConnectorInstance. Matching is done by the isEquivalent(...) function.

Parameters:
interfaceInstanceToRemove - interfaceInstance to remove.

removeInterfaceInstances

public void removeInterfaceInstances(Collection interfaceInstances)
Remove all the given interfaceInstances from this ConnectorInstance. Matching is done by the isEquivalent(...) function.

Parameters:
interfaceInstances - interfaceInstance to remove.

getAllInterfaceInstances

public Collection getAllInterfaceInstances()
Get all the interfaceInstances from this ConnectorInstance.

Returns:
all interfaceInstances in this ConnectorInstance.

hasInterfaceInstance

public boolean hasInterfaceInstance(IInterfaceInstance interfaceInstanceToCheck)
Determine if this ConnectorInstance contains a given interfaceInstance.

Returns:
true if this ConnectorInstance contains the given interfaceInstanceToCheck, false otherwise.

hasInterfaceInstances

public Collection hasInterfaceInstances(Collection interfaceInstancesToCheck)
Determine if this ConnectorInstance contains the given set of interfaceInstances.

Parameters:
interfaceInstancesToCheck - interfaceInstances to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in interfaceInstances 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.

hasAllInterfaceInstances

public boolean hasAllInterfaceInstances(Collection interfaceInstancesToCheck)
Determine if this ConnectorInstance contains each element in the given set of interfaceInstances.

Parameters:
interfaceInstancesToCheck - interfaceInstances to check for.
Returns:
true if every element in interfaceInstances is found in this ConnectorInstance, false otherwise.

getInterfaceInstance

public IInterfaceInstance getInterfaceInstance(String id)
Gets the interfaceInstance from this ConnectorInstance with the given id.

Parameters:
id - ID to look for.
Returns:
interfaceInstance with the given ID, or null if not found.

getInterfaceInstances

public Collection getInterfaceInstances(Collection ids)
Gets the interfaceInstances from this ConnectorInstance with the given ids.

Parameters:
ids - ID to look for.
Returns:
interfaceInstances with the given IDs. If an element with a given ID was not found, that ID is ignored.

setSubArchitecture

public void setSubArchitecture(ISubArchitecture value)
Set the subArchitecture for this ConnectorInstance.

Parameters:
value - new subArchitecture

clearSubArchitecture

public void clearSubArchitecture()
Clear the subArchitecture from this ConnectorInstance.


getSubArchitecture

public ISubArchitecture getSubArchitecture()
Get the subArchitecture from this ConnectorInstance.

Returns:
subArchitecture

hasSubArchitecture

public boolean hasSubArchitecture(ISubArchitecture subArchitectureToCheck)
Determine if this ConnectorInstance has the given subArchitecture

Parameters:
subArchitectureToCheck - subArchitecture to compare
Returns:
true if the subArchitectures are equivalent, false otherwise

isEqual

public boolean isEqual(IConnectorInstance ConnectorInstanceToCheck)
Determine if another ConnectorInstance has the same id as this one.

Parameters:
ConnectorInstanceToCheck - ConnectorInstance to compare with this one.

isEquivalent

public boolean isEquivalent(IConnectorInstance ConnectorInstanceToCheck)
Determine if another ConnectorInstance is equivalent to this one, ignoring ID's.

Parameters:
ConnectorInstanceToCheck - ConnectorInstance to compare to this one.
Returns:
true if all the child elements of this ConnectorInstance are equivalent, false otherwise.

xArch/xADL 2.0 Data Binding Library