xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.pladiff
Interface IDiffPart

All Superinterfaces:
IXArchElement
All Known Implementing Classes:
DiffPartImpl

public interface IDiffPart
extends IXArchElement

Interface for accessing objects of the DiffPart xsi:type in the pladiff namespace.

Author:
Automatically generated by xArch apigen

Field Summary
static XArchTypeMetadata TYPE_METADATA
           
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
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.
 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.
 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 diffLocationToCheck)
          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.
 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 DiffPartToCheck)
          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.
 
Methods inherited from interface edu.uci.isr.xarch.IXArchElement
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch
 

Field Detail

TYPE_METADATA

public static final XArchTypeMetadata TYPE_METADATA
Method Detail

setDiffLocation

public void setDiffLocation(IDiffLocation value)
Set the diffLocation for this DiffPart.

Parameters:
value - new diffLocation

clearDiffLocation

public void clearDiffLocation()
Clear the diffLocation from this DiffPart.


getDiffLocation

public IDiffLocation getDiffLocation()
Get the diffLocation from this DiffPart.

Returns:
diffLocation

hasDiffLocation

public boolean hasDiffLocation(IDiffLocation diffLocationToCheck)
Determine if this DiffPart has the given diffLocation

Parameters:
diffLocationToCheck - diffLocation to compare
Returns:
true if the diffLocations are equivalent, false otherwise

addAdd

public void addAdd(IAdd newAdd)
Add a add to this DiffPart.

Parameters:
newAdd - add to add.

addAdds

public void addAdds(Collection adds)
Add a collection of adds to this DiffPart.

Parameters:
adds - adds to add.

clearAdds

public void clearAdds()
Remove all adds from this DiffPart.


removeAdd

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

Parameters:
addToRemove - add to remove.

removeAdds

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

Parameters:
adds - add to remove.

getAllAdds

public Collection getAllAdds()
Get all the adds from this DiffPart.

Returns:
all adds in this DiffPart.

hasAdd

public boolean hasAdd(IAdd addToCheck)
Determine if this DiffPart contains a given add.

Returns:
true if this DiffPart contains the given addToCheck, false otherwise.

hasAdds

public Collection hasAdds(Collection addsToCheck)
Determine if this DiffPart contains the given set of adds.

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)
Determine if this DiffPart contains each element in the given set of adds.

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)
Add a remove to this DiffPart.

Parameters:
newRemove - remove to add.

addRemoves

public void addRemoves(Collection removes)
Add a collection of removes to this DiffPart.

Parameters:
removes - removes to add.

clearRemoves

public void clearRemoves()
Remove all removes from this DiffPart.


removeRemove

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

Parameters:
removeToRemove - remove to remove.

removeRemoves

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

Parameters:
removes - remove to remove.

getAllRemoves

public Collection getAllRemoves()
Get all the removes from this DiffPart.

Returns:
all removes in this DiffPart.

hasRemove

public boolean hasRemove(IRemove removeToCheck)
Determine if this DiffPart contains a given remove.

Returns:
true if this DiffPart contains the given removeToCheck, false otherwise.

hasRemoves

public Collection hasRemoves(Collection removesToCheck)
Determine if this DiffPart contains the given set of removes.

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)
Determine if this DiffPart contains each element in the given set of removes.

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)
Add a diffPart to this DiffPart.

Parameters:
newDiffPart - diffPart to add.

addDiffParts

public void addDiffParts(Collection diffParts)
Add a collection of diffParts to this DiffPart.

Parameters:
diffParts - diffParts to add.

clearDiffParts

public void clearDiffParts()
Remove all diffParts from this DiffPart.


removeDiffPart

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

Parameters:
diffPartToRemove - diffPart to remove.

removeDiffParts

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

Parameters:
diffParts - diffPart to remove.

getAllDiffParts

public Collection getAllDiffParts()
Get all the diffParts from this DiffPart.

Returns:
all diffParts in this DiffPart.

hasDiffPart

public boolean hasDiffPart(IDiffPart diffPartToCheck)
Determine if this DiffPart contains a given diffPart.

Returns:
true if this DiffPart contains the given diffPartToCheck, false otherwise.

hasDiffParts

public Collection hasDiffParts(Collection diffPartsToCheck)
Determine if this DiffPart contains the given set of diffParts.

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)
Determine if this DiffPart contains each element in the given set of diffParts.

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 DiffPartToCheck)
Determine if another DiffPart is equivalent to this one, ignoring ID's.

Parameters:
DiffPartToCheck - 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