xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.versions
Class ConnectorTypeVersionGraphImpl

java.lang.Object
  extended byedu.uci.isr.xarch.versions.ConnectorTypeVersionGraphImpl
All Implemented Interfaces:
DOMBased, IConnectorTypeVersionGraph, IXArchElement

public class ConnectorTypeVersionGraphImpl
extends Object
implements IConnectorTypeVersionGraph, DOMBased

DOM-Based implementation of the IConnectorTypeVersionGraph 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 NODE_ELT_NAME
          Tag name for nodes in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.versions.IConnectorTypeVersionGraph
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
ConnectorTypeVersionGraphImpl(Element elt)
           
 
Method Summary
 void addNode(INode newNode)
          Add a node to this ConnectorTypeVersionGraph.
 void addNodes(Collection nodes)
          Add a collection of nodes to this ConnectorTypeVersionGraph.
 void clearDescription()
          Clear the description from this ConnectorTypeVersionGraph.
 void clearId()
          Removes the id attribute from this object.
 void clearNodes()
          Remove all nodes from this ConnectorTypeVersionGraph.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllNodes()
          Get all the nodes from this ConnectorTypeVersionGraph.
 IDescription getDescription()
          Get the description from this ConnectorTypeVersionGraph.
 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.
 INode getNode(String id)
          Gets the node from this ConnectorTypeVersionGraph with the given id.
 Collection getNodes(Collection ids)
          Gets the nodes from this ConnectorTypeVersionGraph with the given ids.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllNodes(Collection nodesToCheck)
          Determine if this ConnectorTypeVersionGraph contains each element in the given set of nodes.
 boolean hasDescription(IDescription value)
          Determine if this ConnectorTypeVersionGraph has the given description
 int hashCode()
           
 boolean hasId(String id)
          Determines if this object's id attribute has the given value.
 boolean hasNode(INode nodeToCheck)
          Determine if this ConnectorTypeVersionGraph contains a given node.
 Collection hasNodes(Collection nodesToCheck)
          Determine if this ConnectorTypeVersionGraph contains the given set of nodes.
 boolean isEqual(IConnectorTypeVersionGraph ConnectorTypeVersionGraphToCheck)
          Determine if another ConnectorTypeVersionGraph has the same id as this one.
 boolean isEquivalent(IConnectorTypeVersionGraph c)
          Determine if another ConnectorTypeVersionGraph is equivalent to this one, ignoring ID's.
 void removeNode(INode nodeToRemove)
          Remove the given node from this ConnectorTypeVersionGraph.
 void removeNodes(Collection nodes)
          Remove all the given nodes from this ConnectorTypeVersionGraph.
 void setDescription(IDescription value)
          Set the description for this ConnectorTypeVersionGraph.
 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

NODE_ELT_NAME

public static final String NODE_ELT_NAME
Tag name for nodes in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

ConnectorTypeVersionGraphImpl

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

clearId

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

Specified by:
clearId in interface IConnectorTypeVersionGraph

getId

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

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

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

clearDescription

public void clearDescription()
Description copied from interface: IConnectorTypeVersionGraph
Clear the description from this ConnectorTypeVersionGraph.

Specified by:
clearDescription in interface IConnectorTypeVersionGraph

getDescription

public IDescription getDescription()
Description copied from interface: IConnectorTypeVersionGraph
Get the description from this ConnectorTypeVersionGraph.

Specified by:
getDescription in interface IConnectorTypeVersionGraph
Returns:
description

hasDescription

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

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

addNode

public void addNode(INode newNode)
Description copied from interface: IConnectorTypeVersionGraph
Add a node to this ConnectorTypeVersionGraph.

Specified by:
addNode in interface IConnectorTypeVersionGraph
Parameters:
newNode - node to add.

addNodes

public void addNodes(Collection nodes)
Description copied from interface: IConnectorTypeVersionGraph
Add a collection of nodes to this ConnectorTypeVersionGraph.

Specified by:
addNodes in interface IConnectorTypeVersionGraph
Parameters:
nodes - nodes to add.

clearNodes

public void clearNodes()
Description copied from interface: IConnectorTypeVersionGraph
Remove all nodes from this ConnectorTypeVersionGraph.

Specified by:
clearNodes in interface IConnectorTypeVersionGraph

removeNode

public void removeNode(INode nodeToRemove)
Description copied from interface: IConnectorTypeVersionGraph
Remove the given node from this ConnectorTypeVersionGraph. Matching is done by the isEquivalent(...) function.

Specified by:
removeNode in interface IConnectorTypeVersionGraph
Parameters:
nodeToRemove - node to remove.

removeNodes

public void removeNodes(Collection nodes)
Description copied from interface: IConnectorTypeVersionGraph
Remove all the given nodes from this ConnectorTypeVersionGraph. Matching is done by the isEquivalent(...) function.

Specified by:
removeNodes in interface IConnectorTypeVersionGraph
Parameters:
nodes - node to remove.

getAllNodes

public Collection getAllNodes()
Description copied from interface: IConnectorTypeVersionGraph
Get all the nodes from this ConnectorTypeVersionGraph.

Specified by:
getAllNodes in interface IConnectorTypeVersionGraph
Returns:
all nodes in this ConnectorTypeVersionGraph.

hasNode

public boolean hasNode(INode nodeToCheck)
Description copied from interface: IConnectorTypeVersionGraph
Determine if this ConnectorTypeVersionGraph contains a given node.

Specified by:
hasNode in interface IConnectorTypeVersionGraph
Returns:
true if this ConnectorTypeVersionGraph contains the given nodeToCheck, false otherwise.

hasNodes

public Collection hasNodes(Collection nodesToCheck)
Description copied from interface: IConnectorTypeVersionGraph
Determine if this ConnectorTypeVersionGraph contains the given set of nodes.

Specified by:
hasNodes in interface IConnectorTypeVersionGraph
Parameters:
nodesToCheck - nodes to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in nodes 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.

hasAllNodes

public boolean hasAllNodes(Collection nodesToCheck)
Description copied from interface: IConnectorTypeVersionGraph
Determine if this ConnectorTypeVersionGraph contains each element in the given set of nodes.

Specified by:
hasAllNodes in interface IConnectorTypeVersionGraph
Parameters:
nodesToCheck - nodes to check for.
Returns:
true if every element in nodes is found in this ConnectorTypeVersionGraph, false otherwise.

getNode

public INode getNode(String id)
Description copied from interface: IConnectorTypeVersionGraph
Gets the node from this ConnectorTypeVersionGraph with the given id.

Specified by:
getNode in interface IConnectorTypeVersionGraph
Parameters:
id - ID to look for.
Returns:
node with the given ID, or null if not found.

getNodes

public Collection getNodes(Collection ids)
Description copied from interface: IConnectorTypeVersionGraph
Gets the nodes from this ConnectorTypeVersionGraph with the given ids.

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

isEqual

public boolean isEqual(IConnectorTypeVersionGraph ConnectorTypeVersionGraphToCheck)
Description copied from interface: IConnectorTypeVersionGraph
Determine if another ConnectorTypeVersionGraph has the same id as this one.

Specified by:
isEqual in interface IConnectorTypeVersionGraph
Parameters:
ConnectorTypeVersionGraphToCheck - ConnectorTypeVersionGraph to compare with this one.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library