|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.versions.InterfaceTypeVersionGraphImpl
DOM-Based implementation of the IInterfaceTypeVersionGraph interface.
| 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.IInterfaceTypeVersionGraph |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
InterfaceTypeVersionGraphImpl(Element elt)
|
|
| Method Summary | |
void |
addNode(INode newNode)
Add a node to this InterfaceTypeVersionGraph. |
void |
addNodes(Collection nodes)
Add a collection of nodes to this InterfaceTypeVersionGraph. |
void |
clearDescription()
Clear the description from this InterfaceTypeVersionGraph. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearNodes()
Remove all nodes from this InterfaceTypeVersionGraph. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllNodes()
Get all the nodes from this InterfaceTypeVersionGraph. |
IDescription |
getDescription()
Get the description from this InterfaceTypeVersionGraph. |
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 InterfaceTypeVersionGraph with the given id. |
Collection |
getNodes(Collection ids)
Gets the nodes from this InterfaceTypeVersionGraph 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 InterfaceTypeVersionGraph contains each element in the given set of nodes. |
boolean |
hasDescription(IDescription value)
Determine if this InterfaceTypeVersionGraph 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 InterfaceTypeVersionGraph contains a given node. |
Collection |
hasNodes(Collection nodesToCheck)
Determine if this InterfaceTypeVersionGraph contains the given set of nodes. |
boolean |
isEqual(IInterfaceTypeVersionGraph InterfaceTypeVersionGraphToCheck)
Determine if another InterfaceTypeVersionGraph has the same id as this one. |
boolean |
isEquivalent(IInterfaceTypeVersionGraph c)
Determine if another InterfaceTypeVersionGraph is equivalent to this one, ignoring ID's. |
void |
removeNode(INode nodeToRemove)
Remove the given node from this InterfaceTypeVersionGraph. |
void |
removeNodes(Collection nodes)
Remove all the given nodes from this InterfaceTypeVersionGraph. |
void |
setDescription(IDescription value)
Set the description for this InterfaceTypeVersionGraph. |
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 |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String ID_ATTR_NAME
public static final String DESCRIPTION_ELT_NAME
public static final String NODE_ELT_NAME
protected Element elt
| Constructor Detail |
public InterfaceTypeVersionGraphImpl(Element elt)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic boolean equals(Object o)
public int hashCode()
public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementpublic void setId(String id)
setId in interface IInterfaceTypeVersionGraphid - attribute value.public void clearId()
clearId in interface IInterfaceTypeVersionGraphpublic String getId()
getId in interface IInterfaceTypeVersionGraphnull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IInterfaceTypeVersionGraphid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IInterfaceTypeVersionGraph
setDescription in interface IInterfaceTypeVersionGraphvalue - new descriptionpublic void clearDescription()
IInterfaceTypeVersionGraph
clearDescription in interface IInterfaceTypeVersionGraphpublic IDescription getDescription()
IInterfaceTypeVersionGraph
getDescription in interface IInterfaceTypeVersionGraphpublic boolean hasDescription(IDescription value)
IInterfaceTypeVersionGraph
hasDescription in interface IInterfaceTypeVersionGraphvalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addNode(INode newNode)
IInterfaceTypeVersionGraph
addNode in interface IInterfaceTypeVersionGraphnewNode - node to add.public void addNodes(Collection nodes)
IInterfaceTypeVersionGraph
addNodes in interface IInterfaceTypeVersionGraphnodes - nodes to add.public void clearNodes()
IInterfaceTypeVersionGraph
clearNodes in interface IInterfaceTypeVersionGraphpublic void removeNode(INode nodeToRemove)
IInterfaceTypeVersionGraphisEquivalent(...) function.
removeNode in interface IInterfaceTypeVersionGraphnodeToRemove - node to remove.public void removeNodes(Collection nodes)
IInterfaceTypeVersionGraphisEquivalent(...) function.
removeNodes in interface IInterfaceTypeVersionGraphnodes - node to remove.public Collection getAllNodes()
IInterfaceTypeVersionGraph
getAllNodes in interface IInterfaceTypeVersionGraphpublic boolean hasNode(INode nodeToCheck)
IInterfaceTypeVersionGraph
hasNode in interface IInterfaceTypeVersionGraphtrue if this InterfaceTypeVersionGraph contains the given
nodeToCheck, false otherwise.public Collection hasNodes(Collection nodesToCheck)
IInterfaceTypeVersionGraph
hasNodes in interface IInterfaceTypeVersionGraphnodesToCheck - nodes to check for.
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.public boolean hasAllNodes(Collection nodesToCheck)
IInterfaceTypeVersionGraph
hasAllNodes in interface IInterfaceTypeVersionGraphnodesToCheck - nodes to check for.
true if every element in
nodes is found in this InterfaceTypeVersionGraph,
false otherwise.public INode getNode(String id)
IInterfaceTypeVersionGraph
getNode in interface IInterfaceTypeVersionGraphid - ID to look for.
null if not found.public Collection getNodes(Collection ids)
IInterfaceTypeVersionGraph
getNodes in interface IInterfaceTypeVersionGraphids - ID to look for.
public boolean isEqual(IInterfaceTypeVersionGraph InterfaceTypeVersionGraphToCheck)
IInterfaceTypeVersionGraph
isEqual in interface IInterfaceTypeVersionGraphInterfaceTypeVersionGraphToCheck - InterfaceTypeVersionGraph to compare with this
one.public boolean isEquivalent(IInterfaceTypeVersionGraph c)
IInterfaceTypeVersionGraph
isEquivalent in interface IInterfaceTypeVersionGraphc - InterfaceTypeVersionGraph to compare to this one.
true if all the child elements of this
InterfaceTypeVersionGraph are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||