xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.diff
Class DiffPartImpl

java.lang.Object
  extended byedu.uci.isr.xarch.diff.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.
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.diff.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 clearAdd()
          Clear the add from this DiffPart.
 void clearRemove()
          Clear the remove from this DiffPart.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 IAdd getAdd()
          Get the add 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.
 IRemove getRemove()
          Get the remove from this DiffPart.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAdd(IAdd value)
          Determine if this DiffPart has the given add
 int hashCode()
           
 boolean hasRemove(IRemove value)
          Determine if this DiffPart has the given remove
 boolean isEquivalent(IDiffPart c)
          Determine if another DiffPart is equivalent to this one, ignoring ID's.
 void setAdd(IAdd value)
          Set the add for this DiffPart.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setRemove(IRemove value)
          Set the remove for this DiffPart.
 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

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

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.

setAdd

public void setAdd(IAdd value)
Description copied from interface: IDiffPart
Set the add for this DiffPart.

Specified by:
setAdd in interface IDiffPart
Parameters:
value - new add

clearAdd

public void clearAdd()
Description copied from interface: IDiffPart
Clear the add from this DiffPart.

Specified by:
clearAdd in interface IDiffPart

getAdd

public IAdd getAdd()
Description copied from interface: IDiffPart
Get the add from this DiffPart.

Specified by:
getAdd in interface IDiffPart
Returns:
add

hasAdd

public boolean hasAdd(IAdd value)
Description copied from interface: IDiffPart
Determine if this DiffPart has the given add

Specified by:
hasAdd in interface IDiffPart
Parameters:
value - add to compare
Returns:
true if the adds are equivalent, false otherwise

setRemove

public void setRemove(IRemove value)
Description copied from interface: IDiffPart
Set the remove for this DiffPart.

Specified by:
setRemove in interface IDiffPart
Parameters:
value - new remove

clearRemove

public void clearRemove()
Description copied from interface: IDiffPart
Clear the remove from this DiffPart.

Specified by:
clearRemove in interface IDiffPart

getRemove

public IRemove getRemove()
Description copied from interface: IDiffPart
Get the remove from this DiffPart.

Specified by:
getRemove in interface IDiffPart
Returns:
remove

hasRemove

public boolean hasRemove(IRemove value)
Description copied from interface: IDiffPart
Determine if this DiffPart has the given remove

Specified by:
hasRemove in interface IDiffPart
Parameters:
value - remove to compare
Returns:
true if the removes are equivalent, 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