xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.pladiff
Class AddOptionalImpl

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

public class AddOptionalImpl
extends Object
implements IAddOptional, DOMBased

DOM-Based implementation of the IAddOptional interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String ELEMENT_DESCRIPTION_ELT_NAME
          Tag name for elementDescriptions in this object.
protected  Element elt
           
static String OPTIONAL_ELT_NAME
          Tag name for optionals 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.IAddOptional
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
AddOptionalImpl(Element elt)
           
 
Method Summary
 void clearElementDescription()
          Clear the elementDescription from this AddOptional.
 void clearOptional()
          Clear the optional from this AddOptional.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 IDescription getElementDescription()
          Get the elementDescription from this AddOptional.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 IOptional getOptional()
          Get the optional from this AddOptional.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasElementDescription(IDescription value)
          Determine if this AddOptional has the given elementDescription
 int hashCode()
           
 boolean hasOptional(IOptional value)
          Determine if this AddOptional has the given optional
 boolean isEquivalent(IAddOptional c)
          Determine if another AddOptional is equivalent to this one, ignoring ID's.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setElementDescription(IDescription value)
          Set the elementDescription for this AddOptional.
 void setOptional(IOptional value)
          Set the optional for this AddOptional.
 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

ELEMENT_DESCRIPTION_ELT_NAME

public static final String ELEMENT_DESCRIPTION_ELT_NAME
Tag name for elementDescriptions in this object.

See Also:
Constant Field Values

OPTIONAL_ELT_NAME

public static final String OPTIONAL_ELT_NAME
Tag name for optionals in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

AddOptionalImpl

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

setElementDescription

public void setElementDescription(IDescription value)
Description copied from interface: IAddOptional
Set the elementDescription for this AddOptional.

Specified by:
setElementDescription in interface IAddOptional
Parameters:
value - new elementDescription

clearElementDescription

public void clearElementDescription()
Description copied from interface: IAddOptional
Clear the elementDescription from this AddOptional.

Specified by:
clearElementDescription in interface IAddOptional

getElementDescription

public IDescription getElementDescription()
Description copied from interface: IAddOptional
Get the elementDescription from this AddOptional.

Specified by:
getElementDescription in interface IAddOptional
Returns:
elementDescription

hasElementDescription

public boolean hasElementDescription(IDescription value)
Description copied from interface: IAddOptional
Determine if this AddOptional has the given elementDescription

Specified by:
hasElementDescription in interface IAddOptional
Parameters:
value - elementDescription to compare
Returns:
true if the elementDescriptions are equivalent, false otherwise

setOptional

public void setOptional(IOptional value)
Description copied from interface: IAddOptional
Set the optional for this AddOptional.

Specified by:
setOptional in interface IAddOptional
Parameters:
value - new optional

clearOptional

public void clearOptional()
Description copied from interface: IAddOptional
Clear the optional from this AddOptional.

Specified by:
clearOptional in interface IAddOptional

getOptional

public IOptional getOptional()
Description copied from interface: IAddOptional
Get the optional from this AddOptional.

Specified by:
getOptional in interface IAddOptional
Returns:
optional

hasOptional

public boolean hasOptional(IOptional value)
Description copied from interface: IAddOptional
Determine if this AddOptional has the given optional

Specified by:
hasOptional in interface IAddOptional
Parameters:
value - optional to compare
Returns:
true if the optionals are equivalent, false otherwise

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library