xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.instance
Class ConnectorInstanceImpl

java.lang.Object
  extended byedu.uci.isr.xarch.instance.ConnectorInstanceImpl
All Implemented Interfaces:
DOMBased, IConnectorInstance, IXArchElement
Direct Known Subclasses:
PrescribedConnectorInstanceImpl

public class ConnectorInstanceImpl
extends Object
implements IConnectorInstance, DOMBased

DOM-Based implementation of the IConnectorInstance interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String DESCRIPTION_ELT_NAME
          Tag name for descriptions in this object.
protected  Element elt
           
static String ID_ATTR_NAME
          Tag name for ids in this object.
static String INTERFACE_INSTANCE_ELT_NAME
          Tag name for interfaceInstances in this object.
static String SUB_ARCHITECTURE_ELT_NAME
          Tag name for subArchitectures 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.IConnectorInstance
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
ConnectorInstanceImpl(Element elt)
           
 
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()
          Removes the id attribute from this object.
 void clearInterfaceInstances()
          Remove all interfaceInstances from this ConnectorInstance.
 void clearSubArchitecture()
          Clear the subArchitecture from this ConnectorInstance.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllInterfaceInstances()
          Get all the interfaceInstances from this ConnectorInstance.
 IDescription getDescription()
          Get the description from this ConnectorInstance.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 String getId()
          Gets the value of the id attribute on this object.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 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.
protected static SequenceOrder getSequenceOrder()
           
 ISubArchitecture getSubArchitecture()
          Get the subArchitecture from this ConnectorInstance.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllInterfaceInstances(Collection interfaceInstancesToCheck)
          Determine if this ConnectorInstance contains each element in the given set of interfaceInstances.
 boolean hasDescription(IDescription value)
          Determine if this ConnectorInstance has the given description
 int hashCode()
           
 boolean hasId(String id)
          Determines if this object's id attribute 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 value)
          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 c)
          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 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 setSubArchitecture(ISubArchitecture value)
          Set the subArchitecture for this ConnectorInstance.
 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

INTERFACE_INSTANCE_ELT_NAME

public static final String INTERFACE_INSTANCE_ELT_NAME
Tag name for interfaceInstances in this object.

See Also:
Constant Field Values

SUB_ARCHITECTURE_ELT_NAME

public static final String SUB_ARCHITECTURE_ELT_NAME
Tag name for subArchitectures in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

ConnectorInstanceImpl

public ConnectorInstanceImpl(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 IConnectorInstance
Parameters:
id - attribute value.

clearId

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

Specified by:
clearId in interface IConnectorInstance

getId

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

Specified by:
getId in interface IConnectorInstance
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 IConnectorInstance
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: IConnectorInstance
Set the description for this ConnectorInstance.

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

clearDescription

public void clearDescription()
Description copied from interface: IConnectorInstance
Clear the description from this ConnectorInstance.

Specified by:
clearDescription in interface IConnectorInstance

getDescription

public IDescription getDescription()
Description copied from interface: IConnectorInstance
Get the description from this ConnectorInstance.

Specified by:
getDescription in interface IConnectorInstance
Returns:
description

hasDescription

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

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

addInterfaceInstance

public void addInterfaceInstance(IInterfaceInstance newInterfaceInstance)
Description copied from interface: IConnectorInstance
Add a interfaceInstance to this ConnectorInstance.

Specified by:
addInterfaceInstance in interface IConnectorInstance
Parameters:
newInterfaceInstance - interfaceInstance to add.

addInterfaceInstances

public void addInterfaceInstances(Collection interfaceInstances)
Description copied from interface: IConnectorInstance
Add a collection of interfaceInstances to this ConnectorInstance.

Specified by:
addInterfaceInstances in interface IConnectorInstance
Parameters:
interfaceInstances - interfaceInstances to add.

clearInterfaceInstances

public void clearInterfaceInstances()
Description copied from interface: IConnectorInstance
Remove all interfaceInstances from this ConnectorInstance.

Specified by:
clearInterfaceInstances in interface IConnectorInstance

removeInterfaceInstance

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

Specified by:
removeInterfaceInstance in interface IConnectorInstance
Parameters:
interfaceInstanceToRemove - interfaceInstance to remove.

removeInterfaceInstances

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

Specified by:
removeInterfaceInstances in interface IConnectorInstance
Parameters:
interfaceInstances - interfaceInstance to remove.

getAllInterfaceInstances

public Collection getAllInterfaceInstances()
Description copied from interface: IConnectorInstance
Get all the interfaceInstances from this ConnectorInstance.

Specified by:
getAllInterfaceInstances in interface IConnectorInstance
Returns:
all interfaceInstances in this ConnectorInstance.

hasInterfaceInstance

public boolean hasInterfaceInstance(IInterfaceInstance interfaceInstanceToCheck)
Description copied from interface: IConnectorInstance
Determine if this ConnectorInstance contains a given interfaceInstance.

Specified by:
hasInterfaceInstance in interface IConnectorInstance
Returns:
true if this ConnectorInstance contains the given interfaceInstanceToCheck, false otherwise.

hasInterfaceInstances

public Collection hasInterfaceInstances(Collection interfaceInstancesToCheck)
Description copied from interface: IConnectorInstance
Determine if this ConnectorInstance contains the given set of interfaceInstances.

Specified by:
hasInterfaceInstances in interface IConnectorInstance
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)
Description copied from interface: IConnectorInstance
Determine if this ConnectorInstance contains each element in the given set of interfaceInstances.

Specified by:
hasAllInterfaceInstances in interface IConnectorInstance
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)
Description copied from interface: IConnectorInstance
Gets the interfaceInstance from this ConnectorInstance with the given id.

Specified by:
getInterfaceInstance in interface IConnectorInstance
Parameters:
id - ID to look for.
Returns:
interfaceInstance with the given ID, or null if not found.

getInterfaceInstances

public Collection getInterfaceInstances(Collection ids)
Description copied from interface: IConnectorInstance
Gets the interfaceInstances from this ConnectorInstance with the given ids.

Specified by:
getInterfaceInstances in interface IConnectorInstance
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)
Description copied from interface: IConnectorInstance
Set the subArchitecture for this ConnectorInstance.

Specified by:
setSubArchitecture in interface IConnectorInstance
Parameters:
value - new subArchitecture

clearSubArchitecture

public void clearSubArchitecture()
Description copied from interface: IConnectorInstance
Clear the subArchitecture from this ConnectorInstance.

Specified by:
clearSubArchitecture in interface IConnectorInstance

getSubArchitecture

public ISubArchitecture getSubArchitecture()
Description copied from interface: IConnectorInstance
Get the subArchitecture from this ConnectorInstance.

Specified by:
getSubArchitecture in interface IConnectorInstance
Returns:
subArchitecture

hasSubArchitecture

public boolean hasSubArchitecture(ISubArchitecture value)
Description copied from interface: IConnectorInstance
Determine if this ConnectorInstance has the given subArchitecture

Specified by:
hasSubArchitecture in interface IConnectorInstance
Parameters:
value - subArchitecture to compare
Returns:
true if the subArchitectures are equivalent, false otherwise

isEqual

public boolean isEqual(IConnectorInstance ConnectorInstanceToCheck)
Description copied from interface: IConnectorInstance
Determine if another ConnectorInstance has the same id as this one.

Specified by:
isEqual in interface IConnectorInstance
Parameters:
ConnectorInstanceToCheck - ConnectorInstance to compare with this one.

isEquivalent

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

Specified by:
isEquivalent in interface IConnectorInstance
Parameters:
c - 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