xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.boolguard
Class BoolImpl

java.lang.Object
  extended byedu.uci.isr.xarch.boolguard.BoolImpl
All Implemented Interfaces:
DOMBased, IBool, IXArchElement

public class BoolImpl
extends Object
implements IBool, DOMBased

DOM-Based implementation of the IBool 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.boolguard.IBool
ENUM_FALSE, ENUM_TRUE, TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
BoolImpl(Element elt)
           
 
Method Summary
 void clearValue()
          Remove the value for this Bool.
 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 Bool.
 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 Bool has the given value.
 boolean isEquivalent(IBool BoolToCheck)
          Determine if another Bool 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 Bool.
 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

BoolImpl

public BoolImpl(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: IBool
Set the value for this Bool.

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

clearValue

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

Specified by:
clearValue in interface IBool

getValue

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

Specified by:
getValue in interface IBool
Returns:
value

hasValue

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

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

isEquivalent

public boolean isEquivalent(IBool BoolToCheck)
Description copied from interface: IBool
Determine if another Bool is equivalent to this one.

Specified by:
isEquivalent in interface IBool
Parameters:
BoolToCheck - Bool 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