|
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.NodeImpl
DOM-Based implementation of the INode interface.
| Field Summary | |
protected Element |
elt
|
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
IMMUTABLE_ATTR_NAME
Tag name for immutables in this object. |
static String |
PARENT_ELT_NAME
Tag name for parents in this object. |
static String |
VERSION_I_D_ELT_NAME
Tag name for versionIDs 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.INode |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
NodeImpl(Element elt)
|
|
| Method Summary | |
void |
addParent(IXMLLink newParent)
Add a parent to this Node. |
void |
addParents(Collection parents)
Add a collection of parents to this Node. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearImmutable()
Removes the immutable attribute from this object. |
void |
clearParents()
Remove all parents from this Node. |
void |
clearVersionID()
Clear the versionID from this Node. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllParents()
Get all the parents from this Node. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
String |
getId()
Gets the value of the id attribute on this object. |
String |
getImmutable()
Gets the value of the immutable attribute on this object. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IVersionID |
getVersionID()
Get the versionID from this Node. |
IXArch |
getXArch()
|
boolean |
hasAllParents(Collection parentsToCheck)
Determine if this Node contains each element in the given set of parents. |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasImmutable(String immutable)
Determines if this object's immutable attribute has the given value. |
boolean |
hasParent(IXMLLink parentToCheck)
Determine if this Node contains a given parent. |
Collection |
hasParents(Collection parentsToCheck)
Determine if this Node contains the given set of parents. |
boolean |
hasVersionID(IVersionID value)
Determine if this Node has the given versionID |
boolean |
isEqual(INode NodeToCheck)
Determine if another Node has the same id as this one. |
boolean |
isEquivalent(INode c)
Determine if another Node is equivalent to this one, ignoring ID's. |
void |
removeParent(IXMLLink parentToRemove)
Remove the given parent from this Node. |
void |
removeParents(Collection parents)
Remove all the given parents from this Node. |
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 |
setImmutable(String immutable)
Set the immutable attribute on this object. |
void |
setVersionID(IVersionID value)
Set the versionID for this Node. |
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 IMMUTABLE_ATTR_NAME
public static final String VERSION_I_D_ELT_NAME
public static final String PARENT_ELT_NAME
protected Element elt
| Constructor Detail |
public NodeImpl(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 INodeid - attribute value.public void clearId()
clearId in interface INodepublic String getId()
getId in interface INodenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface INodeid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setImmutable(String immutable)
setImmutable in interface INodeimmutable - attribute value.public void clearImmutable()
clearImmutable in interface INodepublic String getImmutable()
getImmutable in interface INodenull if that
attribute is not set.public boolean hasImmutable(String immutable)
hasImmutable in interface INodeimmutable - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setVersionID(IVersionID value)
INode
setVersionID in interface INodevalue - new versionIDpublic void clearVersionID()
INode
clearVersionID in interface INodepublic IVersionID getVersionID()
INode
getVersionID in interface INodepublic boolean hasVersionID(IVersionID value)
INode
hasVersionID in interface INodevalue - versionID to compare
true if the versionIDs are equivalent,
false otherwisepublic void addParent(IXMLLink newParent)
INode
addParent in interface INodenewParent - parent to add.public void addParents(Collection parents)
INode
addParents in interface INodeparents - parents to add.public void clearParents()
INode
clearParents in interface INodepublic void removeParent(IXMLLink parentToRemove)
INodeisEquivalent(...) function.
removeParent in interface INodeparentToRemove - parent to remove.public void removeParents(Collection parents)
INodeisEquivalent(...) function.
removeParents in interface INodeparents - parent to remove.public Collection getAllParents()
INode
getAllParents in interface INodepublic boolean hasParent(IXMLLink parentToCheck)
INode
hasParent in interface INodetrue if this Node contains the given
parentToCheck, false otherwise.public Collection hasParents(Collection parentsToCheck)
INode
hasParents in interface INodeparentsToCheck - parents to check for.
java.lang.Boolean. If the ith
element in parents 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 hasAllParents(Collection parentsToCheck)
INode
hasAllParents in interface INodeparentsToCheck - parents to check for.
true if every element in
parents is found in this Node,
false otherwise.public boolean isEqual(INode NodeToCheck)
INode
isEqual in interface INodeNodeToCheck - Node to compare with this
one.public boolean isEquivalent(INode c)
INode
isEquivalent in interface INodec - Node to compare to this one.
true if all the child elements of this
Node 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 | |||||||||