xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.types
Class ArchTypesImpl

java.lang.Object
  extended byedu.uci.isr.xarch.types.ArchTypesImpl
All Implemented Interfaces:
DOMBased, IArchTypes, IXArchElement

public class ArchTypesImpl
extends Object
implements IArchTypes, DOMBased

DOM-Based implementation of the IArchTypes interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String COMPONENT_TYPE_ELT_NAME
          Tag name for componentTypes in this object.
static String CONNECTOR_TYPE_ELT_NAME
          Tag name for connectorTypes in this object.
protected  Element elt
           
static String INTERFACE_TYPE_ELT_NAME
          Tag name for interfaceTypes in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.types.IArchTypes
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
ArchTypesImpl(Element elt)
           
 
Method Summary
 void addComponentType(IComponentType newComponentType)
          Add a componentType to this ArchTypes.
 void addComponentTypes(Collection componentTypes)
          Add a collection of componentTypes to this ArchTypes.
 void addConnectorType(IConnectorType newConnectorType)
          Add a connectorType to this ArchTypes.
 void addConnectorTypes(Collection connectorTypes)
          Add a collection of connectorTypes to this ArchTypes.
 void addInterfaceType(IInterfaceType newInterfaceType)
          Add a interfaceType to this ArchTypes.
 void addInterfaceTypes(Collection interfaceTypes)
          Add a collection of interfaceTypes to this ArchTypes.
 void clearComponentTypes()
          Remove all componentTypes from this ArchTypes.
 void clearConnectorTypes()
          Remove all connectorTypes from this ArchTypes.
 void clearInterfaceTypes()
          Remove all interfaceTypes from this ArchTypes.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllComponentTypes()
          Get all the componentTypes from this ArchTypes.
 Collection getAllConnectorTypes()
          Get all the connectorTypes from this ArchTypes.
 Collection getAllInterfaceTypes()
          Get all the interfaceTypes from this ArchTypes.
 IComponentType getComponentType(String id)
          Gets the componentType from this ArchTypes with the given id.
 Collection getComponentTypes(Collection ids)
          Gets the componentTypes from this ArchTypes with the given ids.
 IConnectorType getConnectorType(String id)
          Gets the connectorType from this ArchTypes with the given id.
 Collection getConnectorTypes(Collection ids)
          Gets the connectorTypes from this ArchTypes with the given ids.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 IInterfaceType getInterfaceType(String id)
          Gets the interfaceType from this ArchTypes with the given id.
 Collection getInterfaceTypes(Collection ids)
          Gets the interfaceTypes from this ArchTypes with the given ids.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllComponentTypes(Collection componentTypesToCheck)
          Determine if this ArchTypes contains each element in the given set of componentTypes.
 boolean hasAllConnectorTypes(Collection connectorTypesToCheck)
          Determine if this ArchTypes contains each element in the given set of connectorTypes.
 boolean hasAllInterfaceTypes(Collection interfaceTypesToCheck)
          Determine if this ArchTypes contains each element in the given set of interfaceTypes.
 boolean hasComponentType(IComponentType componentTypeToCheck)
          Determine if this ArchTypes contains a given componentType.
 Collection hasComponentTypes(Collection componentTypesToCheck)
          Determine if this ArchTypes contains the given set of componentTypes.
 boolean hasConnectorType(IConnectorType connectorTypeToCheck)
          Determine if this ArchTypes contains a given connectorType.
 Collection hasConnectorTypes(Collection connectorTypesToCheck)
          Determine if this ArchTypes contains the given set of connectorTypes.
 int hashCode()
           
 boolean hasInterfaceType(IInterfaceType interfaceTypeToCheck)
          Determine if this ArchTypes contains a given interfaceType.
 Collection hasInterfaceTypes(Collection interfaceTypesToCheck)
          Determine if this ArchTypes contains the given set of interfaceTypes.
 boolean isEquivalent(IArchTypes c)
          Determine if another ArchTypes is equivalent to this one, ignoring ID's.
 void removeComponentType(IComponentType componentTypeToRemove)
          Remove the given componentType from this ArchTypes.
 void removeComponentTypes(Collection componentTypes)
          Remove all the given componentTypes from this ArchTypes.
 void removeConnectorType(IConnectorType connectorTypeToRemove)
          Remove the given connectorType from this ArchTypes.
 void removeConnectorTypes(Collection connectorTypes)
          Remove all the given connectorTypes from this ArchTypes.
 void removeInterfaceType(IInterfaceType interfaceTypeToRemove)
          Remove the given interfaceType from this ArchTypes.
 void removeInterfaceTypes(Collection interfaceTypes)
          Remove all the given interfaceTypes from this ArchTypes.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 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

COMPONENT_TYPE_ELT_NAME

public static final String COMPONENT_TYPE_ELT_NAME
Tag name for componentTypes in this object.

See Also:
Constant Field Values

CONNECTOR_TYPE_ELT_NAME

public static final String CONNECTOR_TYPE_ELT_NAME
Tag name for connectorTypes in this object.

See Also:
Constant Field Values

INTERFACE_TYPE_ELT_NAME

public static final String INTERFACE_TYPE_ELT_NAME
Tag name for interfaceTypes in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

ArchTypesImpl

public ArchTypesImpl(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.

addComponentType

public void addComponentType(IComponentType newComponentType)
Description copied from interface: IArchTypes
Add a componentType to this ArchTypes.

Specified by:
addComponentType in interface IArchTypes
Parameters:
newComponentType - componentType to add.

addComponentTypes

public void addComponentTypes(Collection componentTypes)
Description copied from interface: IArchTypes
Add a collection of componentTypes to this ArchTypes.

Specified by:
addComponentTypes in interface IArchTypes
Parameters:
componentTypes - componentTypes to add.

clearComponentTypes

public void clearComponentTypes()
Description copied from interface: IArchTypes
Remove all componentTypes from this ArchTypes.

Specified by:
clearComponentTypes in interface IArchTypes

removeComponentType

public void removeComponentType(IComponentType componentTypeToRemove)
Description copied from interface: IArchTypes
Remove the given componentType from this ArchTypes. Matching is done by the isEquivalent(...) function.

Specified by:
removeComponentType in interface IArchTypes
Parameters:
componentTypeToRemove - componentType to remove.

removeComponentTypes

public void removeComponentTypes(Collection componentTypes)
Description copied from interface: IArchTypes
Remove all the given componentTypes from this ArchTypes. Matching is done by the isEquivalent(...) function.

Specified by:
removeComponentTypes in interface IArchTypes
Parameters:
componentTypes - componentType to remove.

getAllComponentTypes

public Collection getAllComponentTypes()
Description copied from interface: IArchTypes
Get all the componentTypes from this ArchTypes.

Specified by:
getAllComponentTypes in interface IArchTypes
Returns:
all componentTypes in this ArchTypes.

hasComponentType

public boolean hasComponentType(IComponentType componentTypeToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains a given componentType.

Specified by:
hasComponentType in interface IArchTypes
Returns:
true if this ArchTypes contains the given componentTypeToCheck, false otherwise.

hasComponentTypes

public Collection hasComponentTypes(Collection componentTypesToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains the given set of componentTypes.

Specified by:
hasComponentTypes in interface IArchTypes
Parameters:
componentTypesToCheck - componentTypes to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in componentTypes 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.

hasAllComponentTypes

public boolean hasAllComponentTypes(Collection componentTypesToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains each element in the given set of componentTypes.

Specified by:
hasAllComponentTypes in interface IArchTypes
Parameters:
componentTypesToCheck - componentTypes to check for.
Returns:
true if every element in componentTypes is found in this ArchTypes, false otherwise.

getComponentType

public IComponentType getComponentType(String id)
Description copied from interface: IArchTypes
Gets the componentType from this ArchTypes with the given id.

Specified by:
getComponentType in interface IArchTypes
Parameters:
id - ID to look for.
Returns:
componentType with the given ID, or null if not found.

getComponentTypes

public Collection getComponentTypes(Collection ids)
Description copied from interface: IArchTypes
Gets the componentTypes from this ArchTypes with the given ids.

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

addConnectorType

public void addConnectorType(IConnectorType newConnectorType)
Description copied from interface: IArchTypes
Add a connectorType to this ArchTypes.

Specified by:
addConnectorType in interface IArchTypes
Parameters:
newConnectorType - connectorType to add.

addConnectorTypes

public void addConnectorTypes(Collection connectorTypes)
Description copied from interface: IArchTypes
Add a collection of connectorTypes to this ArchTypes.

Specified by:
addConnectorTypes in interface IArchTypes
Parameters:
connectorTypes - connectorTypes to add.

clearConnectorTypes

public void clearConnectorTypes()
Description copied from interface: IArchTypes
Remove all connectorTypes from this ArchTypes.

Specified by:
clearConnectorTypes in interface IArchTypes

removeConnectorType

public void removeConnectorType(IConnectorType connectorTypeToRemove)
Description copied from interface: IArchTypes
Remove the given connectorType from this ArchTypes. Matching is done by the isEquivalent(...) function.

Specified by:
removeConnectorType in interface IArchTypes
Parameters:
connectorTypeToRemove - connectorType to remove.

removeConnectorTypes

public void removeConnectorTypes(Collection connectorTypes)
Description copied from interface: IArchTypes
Remove all the given connectorTypes from this ArchTypes. Matching is done by the isEquivalent(...) function.

Specified by:
removeConnectorTypes in interface IArchTypes
Parameters:
connectorTypes - connectorType to remove.

getAllConnectorTypes

public Collection getAllConnectorTypes()
Description copied from interface: IArchTypes
Get all the connectorTypes from this ArchTypes.

Specified by:
getAllConnectorTypes in interface IArchTypes
Returns:
all connectorTypes in this ArchTypes.

hasConnectorType

public boolean hasConnectorType(IConnectorType connectorTypeToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains a given connectorType.

Specified by:
hasConnectorType in interface IArchTypes
Returns:
true if this ArchTypes contains the given connectorTypeToCheck, false otherwise.

hasConnectorTypes

public Collection hasConnectorTypes(Collection connectorTypesToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains the given set of connectorTypes.

Specified by:
hasConnectorTypes in interface IArchTypes
Parameters:
connectorTypesToCheck - connectorTypes to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in connectorTypes 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.

hasAllConnectorTypes

public boolean hasAllConnectorTypes(Collection connectorTypesToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains each element in the given set of connectorTypes.

Specified by:
hasAllConnectorTypes in interface IArchTypes
Parameters:
connectorTypesToCheck - connectorTypes to check for.
Returns:
true if every element in connectorTypes is found in this ArchTypes, false otherwise.

getConnectorType

public IConnectorType getConnectorType(String id)
Description copied from interface: IArchTypes
Gets the connectorType from this ArchTypes with the given id.

Specified by:
getConnectorType in interface IArchTypes
Parameters:
id - ID to look for.
Returns:
connectorType with the given ID, or null if not found.

getConnectorTypes

public Collection getConnectorTypes(Collection ids)
Description copied from interface: IArchTypes
Gets the connectorTypes from this ArchTypes with the given ids.

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

addInterfaceType

public void addInterfaceType(IInterfaceType newInterfaceType)
Description copied from interface: IArchTypes
Add a interfaceType to this ArchTypes.

Specified by:
addInterfaceType in interface IArchTypes
Parameters:
newInterfaceType - interfaceType to add.

addInterfaceTypes

public void addInterfaceTypes(Collection interfaceTypes)
Description copied from interface: IArchTypes
Add a collection of interfaceTypes to this ArchTypes.

Specified by:
addInterfaceTypes in interface IArchTypes
Parameters:
interfaceTypes - interfaceTypes to add.

clearInterfaceTypes

public void clearInterfaceTypes()
Description copied from interface: IArchTypes
Remove all interfaceTypes from this ArchTypes.

Specified by:
clearInterfaceTypes in interface IArchTypes

removeInterfaceType

public void removeInterfaceType(IInterfaceType interfaceTypeToRemove)
Description copied from interface: IArchTypes
Remove the given interfaceType from this ArchTypes. Matching is done by the isEquivalent(...) function.

Specified by:
removeInterfaceType in interface IArchTypes
Parameters:
interfaceTypeToRemove - interfaceType to remove.

removeInterfaceTypes

public void removeInterfaceTypes(Collection interfaceTypes)
Description copied from interface: IArchTypes
Remove all the given interfaceTypes from this ArchTypes. Matching is done by the isEquivalent(...) function.

Specified by:
removeInterfaceTypes in interface IArchTypes
Parameters:
interfaceTypes - interfaceType to remove.

getAllInterfaceTypes

public Collection getAllInterfaceTypes()
Description copied from interface: IArchTypes
Get all the interfaceTypes from this ArchTypes.

Specified by:
getAllInterfaceTypes in interface IArchTypes
Returns:
all interfaceTypes in this ArchTypes.

hasInterfaceType

public boolean hasInterfaceType(IInterfaceType interfaceTypeToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains a given interfaceType.

Specified by:
hasInterfaceType in interface IArchTypes
Returns:
true if this ArchTypes contains the given interfaceTypeToCheck, false otherwise.

hasInterfaceTypes

public Collection hasInterfaceTypes(Collection interfaceTypesToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains the given set of interfaceTypes.

Specified by:
hasInterfaceTypes in interface IArchTypes
Parameters:
interfaceTypesToCheck - interfaceTypes to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in interfaceTypes 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.

hasAllInterfaceTypes

public boolean hasAllInterfaceTypes(Collection interfaceTypesToCheck)
Description copied from interface: IArchTypes
Determine if this ArchTypes contains each element in the given set of interfaceTypes.

Specified by:
hasAllInterfaceTypes in interface IArchTypes
Parameters:
interfaceTypesToCheck - interfaceTypes to check for.
Returns:
true if every element in interfaceTypes is found in this ArchTypes, false otherwise.

getInterfaceType

public IInterfaceType getInterfaceType(String id)
Description copied from interface: IArchTypes
Gets the interfaceType from this ArchTypes with the given id.

Specified by:
getInterfaceType in interface IArchTypes
Parameters:
id - ID to look for.
Returns:
interfaceType with the given ID, or null if not found.

getInterfaceTypes

public Collection getInterfaceTypes(Collection ids)
Description copied from interface: IArchTypes
Gets the interfaceTypes from this ArchTypes with the given ids.

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

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library