|
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.diff.DiffImpl
DOM-Based implementation of the IDiff interface.
| Field Summary | |
static String |
DIFF_PART_ELT_NAME
Tag name for diffParts in this object. |
protected Element |
elt
|
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.diff.IDiff |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
DiffImpl(Element elt)
|
|
| Method Summary | |
void |
addDiffPart(IDiffPart newDiffPart)
Add a diffPart to this Diff. |
void |
addDiffParts(Collection diffParts)
Add a collection of diffParts to this Diff. |
void |
clearDiffParts()
Remove all diffParts from this Diff. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllDiffParts()
Get all the diffParts from this Diff. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
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. |
IXArch |
getXArch()
|
boolean |
hasAllDiffParts(Collection diffPartsToCheck)
Determine if this Diff contains each element in the given set of diffParts. |
boolean |
hasDiffPart(IDiffPart diffPartToCheck)
Determine if this Diff contains a given diffPart. |
Collection |
hasDiffParts(Collection diffPartsToCheck)
Determine if this Diff contains the given set of diffParts. |
int |
hashCode()
|
boolean |
isEquivalent(IDiff c)
Determine if another Diff is equivalent to this one, ignoring ID's. |
void |
removeDiffPart(IDiffPart diffPartToRemove)
Remove the given diffPart from this Diff. |
void |
removeDiffParts(Collection diffParts)
Remove all the given diffParts from this Diff. |
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 |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String DIFF_PART_ELT_NAME
protected Element elt
| Constructor Detail |
public DiffImpl(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 addDiffPart(IDiffPart newDiffPart)
IDiff
addDiffPart in interface IDiffnewDiffPart - diffPart to add.public void addDiffParts(Collection diffParts)
IDiff
addDiffParts in interface IDiffdiffParts - diffParts to add.public void clearDiffParts()
IDiff
clearDiffParts in interface IDiffpublic void removeDiffPart(IDiffPart diffPartToRemove)
IDiffisEquivalent(...) function.
removeDiffPart in interface IDiffdiffPartToRemove - diffPart to remove.public void removeDiffParts(Collection diffParts)
IDiffisEquivalent(...) function.
removeDiffParts in interface IDiffdiffParts - diffPart to remove.public Collection getAllDiffParts()
IDiff
getAllDiffParts in interface IDiffpublic boolean hasDiffPart(IDiffPart diffPartToCheck)
IDiff
hasDiffPart in interface IDifftrue if this Diff contains the given
diffPartToCheck, false otherwise.public Collection hasDiffParts(Collection diffPartsToCheck)
IDiff
hasDiffParts in interface IDiffdiffPartsToCheck - diffParts to check for.
java.lang.Boolean. If the ith
element in diffParts 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 hasAllDiffParts(Collection diffPartsToCheck)
IDiff
hasAllDiffParts in interface IDiffdiffPartsToCheck - diffParts to check for.
true if every element in
diffParts is found in this Diff,
false otherwise.public boolean isEquivalent(IDiff c)
IDiff
isEquivalent in interface IDiffc - Diff to compare to this one.
true if all the child elements of this
Diff 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 | |||||||||