xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.pladiff
Class DiffPartImpl

java.lang.Object
  extended byedu.uci.isr.xarch.pladiff.DiffPartImpl
All Implemented Interfaces:
DOMBased, IDiffPart, IXArchElement

public class DiffPartImpl
extends Object
implements IDiffPart, DOMBased

DOM-Based implementation of the IDiffPart interface.

Author:
Automatically generated by xArch apigen.

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

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

DIFF_LOCATION_ELT_NAME

public static final String DIFF_LOCATION_ELT_NAME
Tag name for diffLocations in this object.

See Also:
Constant Field Values

ADD_ELT_NAME

public static final String ADD_ELT_NAME
Tag name for adds in this object.

See Also:
Constant Field Values

REMOVE_ELT_NAME

public static final String REMOVE_ELT_NAME
Tag name for removes in this object.

See Also:
Constant Field Values

DIFF_PART_ELT_NAME

public static final String DIFF_PART_ELT_NAME
Tag name for diffParts in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

DiffPartImpl

public DiffPartImpl(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.

setDiffLocation

public void setDiffLocation(IDiffLocation value)
Description copied from interface: IDiffPart
Set the diffLocation for this DiffPart.

Specified by:
setDiffLocation in interface IDiffPart
Parameters:
value - new diffLocation

clearDiffLocation

public void clearDiffLocation()
Description copied from interface: IDiffPart
Clear the diffLocation from this DiffPart.

Specified by:
clearDiffLocation in interface IDiffPart

getDiffLocation

public IDiffLocation getDiffLocation()
Description copied from interface: IDiffPart
Get the diffLocation from this DiffPart.

Specified by:
getDiffLocation in interface IDiffPart
Returns:
diffLocation

hasDiffLocation

public boolean hasDiffLocation(IDiffLocation value)
Description copied from interface: IDiffPart
Determine if this DiffPart has the given diffLocation

Specified by:
hasDiffLocation in interface IDiffPart
Parameters:
value - diffLocation to compare
Returns:
true if the diffLocations are equivalent, false otherwise

addAdd

public void addAdd(IAdd newAdd)
Description copied from interface: IDiffPart
Add a add to this DiffPart.

Specified by:
addAdd in interface IDiffPart
Parameters:
newAdd - add to add.

addAdds

public void addAdds(Collection adds)
Description copied from interface: IDiffPart
Add a collection of adds to this DiffPart.

Specified by:
addAdds in interface IDiffPart
Parameters:
adds - adds to add.

clearAdds

public void clearAdds()
Description copied from interface: IDiffPart
Remove all adds from this DiffPart.

Specified by:
clearAdds in interface IDiffPart

removeAdd

public void removeAdd(IAdd addToRemove)
Description copied from interface: IDiffPart
Remove the given add from this DiffPart. Matching is done by the isEquivalent(...) function.

Specified by:
removeAdd in interface IDiffPart
Parameters:
addToRemove - add to remove.

removeAdds

public void removeAdds(Collection adds)
Description copied from interface: IDiffPart
Remove all the given adds from this DiffPart. Matching is done by the isEquivalent(...) function.

Specified by:
removeAdds in interface IDiffPart
Parameters:
adds - add to remove.

getAllAdds

public Collection getAllAdds()
Description copied from interface: IDiffPart
Get all the adds from this DiffPart.

Specified by:
getAllAdds in interface IDiffPart
Returns:
all adds in this DiffPart.

hasAdd

public boolean hasAdd(IAdd addToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains a given add.

Specified by:
hasAdd in interface IDiffPart
Returns:
true if this DiffPart contains the given addToCheck, false otherwise.

hasAdds

public Collection hasAdds(Collection addsToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains the given set of adds.

Specified by:
hasAdds in interface IDiffPart
Parameters:
addsToCheck - adds to check for.
Returns:
Collection of 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.

hasAllAdds

public boolean hasAllAdds(Collection addsToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains each element in the given set of adds.

Specified by:
hasAllAdds in interface IDiffPart
Parameters:
addsToCheck - adds to check for.
Returns:
true if every element in adds is found in this DiffPart, false otherwise.

addRemove

public void addRemove(IRemove newRemove)
Description copied from interface: IDiffPart
Add a remove to this DiffPart.

Specified by:
addRemove in interface IDiffPart
Parameters:
newRemove - remove to add.

addRemoves

public void addRemoves(Collection removes)
Description copied from interface: IDiffPart
Add a collection of removes to this DiffPart.

Specified by:
addRemoves in interface IDiffPart
Parameters:
removes - removes to add.

clearRemoves

public void clearRemoves()
Description copied from interface: IDiffPart
Remove all removes from this DiffPart.

Specified by:
clearRemoves in interface IDiffPart

removeRemove

public void removeRemove(IRemove removeToRemove)
Description copied from interface: IDiffPart
Remove the given remove from this DiffPart. Matching is done by the isEquivalent(...) function.

Specified by:
removeRemove in interface IDiffPart
Parameters:
removeToRemove - remove to remove.

removeRemoves

public void removeRemoves(Collection removes)
Description copied from interface: IDiffPart
Remove all the given removes from this DiffPart. Matching is done by the isEquivalent(...) function.

Specified by:
removeRemoves in interface IDiffPart
Parameters:
removes - remove to remove.

getAllRemoves

public Collection getAllRemoves()
Description copied from interface: IDiffPart
Get all the removes from this DiffPart.

Specified by:
getAllRemoves in interface IDiffPart
Returns:
all removes in this DiffPart.

hasRemove

public boolean hasRemove(IRemove removeToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains a given remove.

Specified by:
hasRemove in interface IDiffPart
Returns:
true if this DiffPart contains the given removeToCheck, false otherwise.

hasRemoves

public Collection hasRemoves(Collection removesToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains the given set of removes.

Specified by:
hasRemoves in interface IDiffPart
Parameters:
removesToCheck - removes to check for.
Returns:
Collection of 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.

hasAllRemoves

public boolean hasAllRemoves(Collection removesToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains each element in the given set of removes.

Specified by:
hasAllRemoves in interface IDiffPart
Parameters:
removesToCheck - removes to check for.
Returns:
true if every element in removes is found in this DiffPart, false otherwise.

addDiffPart

public void addDiffPart(IDiffPart newDiffPart)
Description copied from interface: IDiffPart
Add a diffPart to this DiffPart.

Specified by:
addDiffPart in interface IDiffPart
Parameters:
newDiffPart - diffPart to add.

addDiffParts

public void addDiffParts(Collection diffParts)
Description copied from interface: IDiffPart
Add a collection of diffParts to this DiffPart.

Specified by:
addDiffParts in interface IDiffPart
Parameters:
diffParts - diffParts to add.

clearDiffParts

public void clearDiffParts()
Description copied from interface: IDiffPart
Remove all diffParts from this DiffPart.

Specified by:
clearDiffParts in interface IDiffPart

removeDiffPart

public void removeDiffPart(IDiffPart diffPartToRemove)
Description copied from interface: IDiffPart
Remove the given diffPart from this DiffPart. Matching is done by the isEquivalent(...) function.

Specified by:
removeDiffPart in interface IDiffPart
Parameters:
diffPartToRemove - diffPart to remove.

removeDiffParts

public void removeDiffParts(Collection diffParts)
Description copied from interface: IDiffPart
Remove all the given diffParts from this DiffPart. Matching is done by the isEquivalent(...) function.

Specified by:
removeDiffParts in interface IDiffPart
Parameters:
diffParts - diffPart to remove.

getAllDiffParts

public Collection getAllDiffParts()
Description copied from interface: IDiffPart
Get all the diffParts from this DiffPart.

Specified by:
getAllDiffParts in interface IDiffPart
Returns:
all diffParts in this DiffPart.

hasDiffPart

public boolean hasDiffPart(IDiffPart diffPartToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains a given diffPart.

Specified by:
hasDiffPart in interface IDiffPart
Returns:
true if this DiffPart contains the given diffPartToCheck, false otherwise.

hasDiffParts

public Collection hasDiffParts(Collection diffPartsToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains the given set of diffParts.

Specified by:
hasDiffParts in interface IDiffPart
Parameters:
diffPartsToCheck - diffParts to check for.
Returns:
Collection of 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.

hasAllDiffParts

public boolean hasAllDiffParts(Collection diffPartsToCheck)
Description copied from interface: IDiffPart
Determine if this DiffPart contains each element in the given set of diffParts.

Specified by:
hasAllDiffParts in interface IDiffPart
Parameters:
diffPartsToCheck - diffParts to check for.
Returns:
true if every element in diffParts is found in this DiffPart, false otherwise.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library