|
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.pladiff.DiffPartImpl
DOM-Based implementation of the IDiffPart interface.
| Field Summary | |
static String |
ADD_ELT_NAME
Tag name for adds in this object. |
static String |
DIFF_LOCATION_ELT_NAME
Tag name for diffLocations in this object. |
static String |
DIFF_PART_ELT_NAME
Tag name for diffParts in this object. |
protected Element |
elt
|
static String |
REMOVE_ELT_NAME
Tag name for removes in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.pladiff.IDiffPart |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
DiffPartImpl(Element elt)
|
|
| Method Summary | |
void |
addAdd(IAdd newAdd)
Add a add to this DiffPart. |
void |
addAdds(Collection adds)
Add a collection of adds to this DiffPart. |
void |
addDiffPart(IDiffPart newDiffPart)
Add a diffPart to this DiffPart. |
void |
addDiffParts(Collection diffParts)
Add a collection of diffParts to this DiffPart. |
void |
addRemove(IRemove newRemove)
Add a remove to this DiffPart. |
void |
addRemoves(Collection removes)
Add a collection of removes to this DiffPart. |
void |
clearAdds()
Remove all adds from this DiffPart. |
void |
clearDiffLocation()
Clear the diffLocation from this DiffPart. |
void |
clearDiffParts()
Remove all diffParts from this DiffPart. |
void |
clearRemoves()
Remove all removes from this DiffPart. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllAdds()
Get all the adds from this DiffPart. |
Collection |
getAllDiffParts()
Get all the diffParts from this DiffPart. |
Collection |
getAllRemoves()
Get all the removes from this DiffPart. |
IDiffLocation |
getDiffLocation()
Get the diffLocation from this DiffPart. |
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 |
hasAdd(IAdd addToCheck)
Determine if this DiffPart contains a given add. |
Collection |
hasAdds(Collection addsToCheck)
Determine if this DiffPart contains the given set of adds. |
boolean |
hasAllAdds(Collection addsToCheck)
Determine if this DiffPart contains each element in the given set of adds. |
boolean |
hasAllDiffParts(Collection diffPartsToCheck)
Determine if this DiffPart contains each element in the given set of diffParts. |
boolean |
hasAllRemoves(Collection removesToCheck)
Determine if this DiffPart contains each element in the given set of removes. |
boolean |
hasDiffLocation(IDiffLocation value)
Determine if this DiffPart has the given diffLocation |
boolean |
hasDiffPart(IDiffPart diffPartToCheck)
Determine if this DiffPart contains a given diffPart. |
Collection |
hasDiffParts(Collection diffPartsToCheck)
Determine if this DiffPart contains the given set of diffParts. |
int |
hashCode()
|
boolean |
hasRemove(IRemove removeToCheck)
Determine if this DiffPart contains a given remove. |
Collection |
hasRemoves(Collection removesToCheck)
Determine if this DiffPart contains the given set of removes. |
boolean |
isEquivalent(IDiffPart c)
Determine if another DiffPart is equivalent to this one, ignoring ID's. |
void |
removeAdd(IAdd addToRemove)
Remove the given add from this DiffPart. |
void |
removeAdds(Collection adds)
Remove all the given adds from this DiffPart. |
void |
removeDiffPart(IDiffPart diffPartToRemove)
Remove the given diffPart from this DiffPart. |
void |
removeDiffParts(Collection diffParts)
Remove all the given diffParts from this DiffPart. |
void |
removeRemove(IRemove removeToRemove)
Remove the given remove from this DiffPart. |
void |
removeRemoves(Collection removes)
Remove all the given removes from this DiffPart. |
void |
setDiffLocation(IDiffLocation value)
Set the diffLocation for this DiffPart. |
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_LOCATION_ELT_NAME
public static final String ADD_ELT_NAME
public static final String REMOVE_ELT_NAME
public static final String DIFF_PART_ELT_NAME
protected Element elt
| Constructor Detail |
public DiffPartImpl(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 setDiffLocation(IDiffLocation value)
IDiffPart
setDiffLocation in interface IDiffPartvalue - new diffLocationpublic void clearDiffLocation()
IDiffPart
clearDiffLocation in interface IDiffPartpublic IDiffLocation getDiffLocation()
IDiffPart
getDiffLocation in interface IDiffPartpublic boolean hasDiffLocation(IDiffLocation value)
IDiffPart
hasDiffLocation in interface IDiffPartvalue - diffLocation to compare
true if the diffLocations are equivalent,
false otherwisepublic void addAdd(IAdd newAdd)
IDiffPart
addAdd in interface IDiffPartnewAdd - add to add.public void addAdds(Collection adds)
IDiffPart
addAdds in interface IDiffPartadds - adds to add.public void clearAdds()
IDiffPart
clearAdds in interface IDiffPartpublic void removeAdd(IAdd addToRemove)
IDiffPartisEquivalent(...) function.
removeAdd in interface IDiffPartaddToRemove - add to remove.public void removeAdds(Collection adds)
IDiffPartisEquivalent(...) function.
removeAdds in interface IDiffPartadds - add to remove.public Collection getAllAdds()
IDiffPart
getAllAdds in interface IDiffPartpublic boolean hasAdd(IAdd addToCheck)
IDiffPart
hasAdd in interface IDiffParttrue if this DiffPart contains the given
addToCheck, false otherwise.public Collection hasAdds(Collection addsToCheck)
IDiffPart
hasAdds in interface IDiffPartaddsToCheck - adds to check for.
java.lang.Boolean. If the ith
element in adds 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 hasAllAdds(Collection addsToCheck)
IDiffPart
hasAllAdds in interface IDiffPartaddsToCheck - adds to check for.
true if every element in
adds is found in this DiffPart,
false otherwise.public void addRemove(IRemove newRemove)
IDiffPart
addRemove in interface IDiffPartnewRemove - remove to add.public void addRemoves(Collection removes)
IDiffPart
addRemoves in interface IDiffPartremoves - removes to add.public void clearRemoves()
IDiffPart
clearRemoves in interface IDiffPartpublic void removeRemove(IRemove removeToRemove)
IDiffPartisEquivalent(...) function.
removeRemove in interface IDiffPartremoveToRemove - remove to remove.public void removeRemoves(Collection removes)
IDiffPartisEquivalent(...) function.
removeRemoves in interface IDiffPartremoves - remove to remove.public Collection getAllRemoves()
IDiffPart
getAllRemoves in interface IDiffPartpublic boolean hasRemove(IRemove removeToCheck)
IDiffPart
hasRemove in interface IDiffParttrue if this DiffPart contains the given
removeToCheck, false otherwise.public Collection hasRemoves(Collection removesToCheck)
IDiffPart
hasRemoves in interface IDiffPartremovesToCheck - removes to check for.
java.lang.Boolean. If the ith
element in removes 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 hasAllRemoves(Collection removesToCheck)
IDiffPart
hasAllRemoves in interface IDiffPartremovesToCheck - removes to check for.
true if every element in
removes is found in this DiffPart,
false otherwise.public void addDiffPart(IDiffPart newDiffPart)
IDiffPart
addDiffPart in interface IDiffPartnewDiffPart - diffPart to add.public void addDiffParts(Collection diffParts)
IDiffPart
addDiffParts in interface IDiffPartdiffParts - diffParts to add.public void clearDiffParts()
IDiffPart
clearDiffParts in interface IDiffPartpublic void removeDiffPart(IDiffPart diffPartToRemove)
IDiffPartisEquivalent(...) function.
removeDiffPart in interface IDiffPartdiffPartToRemove - diffPart to remove.public void removeDiffParts(Collection diffParts)
IDiffPartisEquivalent(...) function.
removeDiffParts in interface IDiffPartdiffParts - diffPart to remove.public Collection getAllDiffParts()
IDiffPart
getAllDiffParts in interface IDiffPartpublic boolean hasDiffPart(IDiffPart diffPartToCheck)
IDiffPart
hasDiffPart in interface IDiffParttrue if this DiffPart contains the given
diffPartToCheck, false otherwise.public Collection hasDiffParts(Collection diffPartsToCheck)
IDiffPart
hasDiffParts in interface IDiffPartdiffPartsToCheck - 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)
IDiffPart
hasAllDiffParts in interface IDiffPartdiffPartsToCheck - diffParts to check for.
true if every element in
diffParts is found in this DiffPart,
false otherwise.public boolean isEquivalent(IDiffPart c)
IDiffPart
isEquivalent in interface IDiffPartc - DiffPart to compare to this one.
true if all the child elements of this
DiffPart 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 | |||||||||