xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.messages
Class CountImpl

java.lang.Object
  extended byedu.uci.isr.xarch.messages.CountImpl
All Implemented Interfaces:
DOMBased, ICount, IXArchElement

public class CountImpl
extends Object
implements ICount, DOMBased

DOM-Based implementation of the ICount interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.messages.ICount
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
CountImpl(Element elt)
           
 
Method Summary
 void clearValue()
          Remove the value for this Count.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 String getValue()
          Get the value for this Count.
 IXArch getXArch()
          Gets the xArch element that is the document element of the document that is this object's context.
 int hashCode()
           
 boolean hasValue(String value)
          Determine if this Count has the given value.
 boolean isEquivalent(ICount CountToCheck)
          Determine if another Count is equivalent to this one.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setValue(String value)
          Set the value for this Count.
 void setXArch(IXArch xArch)
          Set the xArch element that is the document element of the document that is this object's context.
 
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

elt

protected Element elt
Constructor Detail

CountImpl

public CountImpl(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

equals

public boolean equals(Object o)

hashCode

public int hashCode()

setXArch

public void setXArch(IXArch xArch)
Set the xArch element that is the document element of the document that is this object's context.

Specified by:
setXArch in interface IXArchElement
Parameters:
xArch - XArch document element for this element.

getXArch

public IXArch getXArch()
Gets the xArch element that is the document element of the document that is this object's context.

Specified by:
getXArch in interface IXArchElement
Returns:
XArch document element for this element.

cloneElement

public IXArchElement cloneElement(int depth)
Specified by:
cloneElement in interface IXArchElement

setValue

public void setValue(String value)
Description copied from interface: ICount
Set the value for this Count.

Specified by:
setValue in interface ICount
Parameters:
value - Value to set.

clearValue

public void clearValue()
Description copied from interface: ICount
Remove the value for this Count.

Specified by:
clearValue in interface ICount

getValue

public String getValue()
Description copied from interface: ICount
Get the value for this Count.

Specified by:
getValue in interface ICount
Returns:
value

hasValue

public boolean hasValue(String value)
Description copied from interface: ICount
Determine if this Count has the given value. Matching is done by string equality.

Specified by:
hasValue in interface ICount
Returns:
true if they match, false otherwise.

isEquivalent

public boolean isEquivalent(ICount CountToCheck)
Description copied from interface: ICount
Determine if another Count is equivalent to this one.

Specified by:
isEquivalent in interface ICount
Parameters:
CountToCheck - Count to compare against this one.
Returns:
true if their values are equivalent, false otherwise.

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.

xArch/xADL 2.0 Data Binding Library