xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.versions
Class ComponentTypeVersionGraphImpl

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

public class ComponentTypeVersionGraphImpl
extends Object
implements IComponentTypeVersionGraph, DOMBased

DOM-Based implementation of the IComponentTypeVersionGraph 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.IComponentTypeVersionGraph
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
ComponentTypeVersionGraphImpl(Element elt)
           
 
Method Summary
 void addNode(INode newNode)
          Add a node to this ComponentTypeVersionGraph.
 void addNodes(Collection nodes)
          Add a collection of nodes to this ComponentTypeVersionGraph.
 void clearDescription()
          Clear the description from this ComponentTypeVersionGraph.
 void clearId()
          Removes the id attribute from this object.
 void clearNodes()
          Remove all nodes from this ComponentTypeVersionGraph.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllNodes()
          Get all the nodes from this ComponentTypeVersionGraph.
 IDescription getDescription()
          Get the description from this ComponentTypeVersionGraph.
 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 ComponentTypeVersionGraph with the given id.
 Collection getNodes(Collection ids)
          Gets the nodes from this ComponentTypeVersionGraph 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 ComponentTypeVersionGraph contains each element in the given set of nodes.
 boolean hasDescription(IDescription value)
          Determine if this ComponentTypeVersionGraph 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 ComponentTypeVersionGraph contains a given node.
 Collection hasNodes(Collection nodesToCheck)
          Determine if this ComponentTypeVersionGraph contains the given set of nodes.
 boolean isEqual(IComponentTypeVersionGraph ComponentTypeVersionGraphToCheck)
          Determine if another ComponentTypeVersionGraph has the same id as this one.
 boolean isEquivalent(IComponentTypeVersionGraph c)
          Determine if another ComponentTypeVersionGraph is equivalent to this one, ignoring ID's.
 void removeNode(INode nodeToRemove)
          Remove the given node from this ComponentTypeVersionGraph.
 void removeNodes(Collection nodes)
          Remove all the given nodes from this ComponentTypeVersionGraph.
 void setDescription(IDescription value)
          Set the description for this ComponentTypeVersionGraph.
 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

ComponentTypeVersionGraphImpl

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

clearId

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

Specified by:
clearId in interface IComponentTypeVersionGraph

getId

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

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

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

clearDescription

public void clearDescription()
Description copied from interface: IComponentTypeVersionGraph
Clear the description from this ComponentTypeVersionGraph.

Specified by:
clearDescription in interface IComponentTypeVersionGraph

getDescription

public IDescription getDescription()
Description copied from interface: IComponentTypeVersionGraph
Get the description from this ComponentTypeVersionGraph.

Specified by:
getDescription in interface IComponentTypeVersionGraph
Returns:
description

hasDescription

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

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

addNode

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

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

addNodes

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

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

clearNodes

public void clearNodes()
Description copied from interface: IComponentTypeVersionGraph
Remove all nodes from this ComponentTypeVersionGraph.

Specified by:
clearNodes in interface IComponentTypeVersionGraph

removeNode

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

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

removeNodes

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

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

getAllNodes

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

Specified by:
getAllNodes in interface IComponentTypeVersionGraph
Returns:
all nodes in this ComponentTypeVersionGraph.

hasNode

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

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

hasNodes

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

Specified by:
hasNodes in interface IComponentTypeVersionGraph
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: IComponentTypeVersionGraph
Determine if this ComponentTypeVersionGraph contains each element in the given set of nodes.

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

getNode

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

Specified by:
getNode in interface IComponentTypeVersionGraph
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: IComponentTypeVersionGraph
Gets the nodes from this ComponentTypeVersionGraph with the given ids.

Specified by:
getNodes in interface IComponentTypeVersionGraph
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(IComponentTypeVersionGraph ComponentTypeVersionGraphToCheck)
Description copied from interface: IComponentTypeVersionGraph
Determine if another ComponentTypeVersionGraph has the same id as this one.

Specified by:
isEqual in interface IComponentTypeVersionGraph
Parameters:
ComponentTypeVersionGraphToCheck - ComponentTypeVersionGraph to compare with this one.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library