xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.boolguard
Class BooleanExpImpl

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

public class BooleanExpImpl
extends Object
implements IBooleanExp, DOMBased

DOM-Based implementation of the IBooleanExp interface.

Author:
Automatically generated by xArch apigen.

Field Summary
static String AND_ELT_NAME
          Tag name for ands in this object.
static String BOOL_ELT_NAME
          Tag name for bools in this object.
protected  Element elt
           
static String EQUALS_ELT_NAME
          Tag name for equalss in this object.
static String GREATER_THAN_ELT_NAME
          Tag name for greaterThans in this object.
static String GREATER_THAN_OR_EQUALS_ELT_NAME
          Tag name for greaterThanOrEqualss in this object.
static String IN_RANGE_ELT_NAME
          Tag name for inRanges in this object.
static String IN_SET_ELT_NAME
          Tag name for inSets in this object.
static String LESS_THAN_ELT_NAME
          Tag name for lessThans in this object.
static String LESS_THAN_OR_EQUALS_ELT_NAME
          Tag name for lessThanOrEqualss in this object.
static String NOT_ELT_NAME
          Tag name for nots in this object.
static String NOT_EQUALS_ELT_NAME
          Tag name for notEqualss in this object.
static String OR_ELT_NAME
          Tag name for ors in this object.
static String PAREN_EXP_ELT_NAME
          Tag name for parenExps in this object.
protected  IXArch xArch
           
static String XSD_TYPE_NAME
           
static String XSD_TYPE_NSURI
           
 
Fields inherited from interface edu.uci.isr.xarch.boolguard.IBooleanExp
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
BooleanExpImpl(Element elt)
           
 
Method Summary
 void clearAnd()
          Clear the and from this BooleanExp.
 void clearBool()
          Clear the bool from this BooleanExp.
 void clearEquals()
          Clear the equals from this BooleanExp.
 void clearGreaterThan()
          Clear the greaterThan from this BooleanExp.
 void clearGreaterThanOrEquals()
          Clear the greaterThanOrEquals from this BooleanExp.
 void clearInRange()
          Clear the inRange from this BooleanExp.
 void clearInSet()
          Clear the inSet from this BooleanExp.
 void clearLessThan()
          Clear the lessThan from this BooleanExp.
 void clearLessThanOrEquals()
          Clear the lessThanOrEquals from this BooleanExp.
 void clearNot()
          Clear the not from this BooleanExp.
 void clearNotEquals()
          Clear the notEquals from this BooleanExp.
 void clearOr()
          Clear the or from this BooleanExp.
 void clearParenExp()
          Clear the parenExp from this BooleanExp.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 IAnd getAnd()
          Get the and from this BooleanExp.
 IBool getBool()
          Get the bool from this BooleanExp.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 IEquals getEquals()
          Get the equals from this BooleanExp.
 IGreaterThan getGreaterThan()
          Get the greaterThan from this BooleanExp.
 IGreaterThanOrEquals getGreaterThanOrEquals()
          Get the greaterThanOrEquals from this BooleanExp.
 IInRange getInRange()
          Get the inRange from this BooleanExp.
 IInSet getInSet()
          Get the inSet from this BooleanExp.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
 ILessThan getLessThan()
          Get the lessThan from this BooleanExp.
 ILessThanOrEquals getLessThanOrEquals()
          Get the lessThanOrEquals from this BooleanExp.
 INot getNot()
          Get the not from this BooleanExp.
 INotEquals getNotEquals()
          Get the notEquals from this BooleanExp.
 IOr getOr()
          Get the or from this BooleanExp.
 IParen getParenExp()
          Get the parenExp from this BooleanExp.
protected static SequenceOrder getSequenceOrder()
           
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAnd(IAnd value)
          Determine if this BooleanExp has the given and
 boolean hasBool(IBool value)
          Determine if this BooleanExp has the given bool
 boolean hasEquals(IEquals value)
          Determine if this BooleanExp has the given equals
 boolean hasGreaterThan(IGreaterThan value)
          Determine if this BooleanExp has the given greaterThan
 boolean hasGreaterThanOrEquals(IGreaterThanOrEquals value)
          Determine if this BooleanExp has the given greaterThanOrEquals
 int hashCode()
           
 boolean hasInRange(IInRange value)
          Determine if this BooleanExp has the given inRange
 boolean hasInSet(IInSet value)
          Determine if this BooleanExp has the given inSet
 boolean hasLessThan(ILessThan value)
          Determine if this BooleanExp has the given lessThan
 boolean hasLessThanOrEquals(ILessThanOrEquals value)
          Determine if this BooleanExp has the given lessThanOrEquals
 boolean hasNot(INot value)
          Determine if this BooleanExp has the given not
 boolean hasNotEquals(INotEquals value)
          Determine if this BooleanExp has the given notEquals
 boolean hasOr(IOr value)
          Determine if this BooleanExp has the given or
 boolean hasParenExp(IParen value)
          Determine if this BooleanExp has the given parenExp
 boolean isEquivalent(IBooleanExp c)
          Determine if another BooleanExp is equivalent to this one, ignoring ID's.
 void setAnd(IAnd value)
          Set the and for this BooleanExp.
 void setBool(IBool value)
          Set the bool for this BooleanExp.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setEquals(IEquals value)
          Set the equals for this BooleanExp.
 void setGreaterThan(IGreaterThan value)
          Set the greaterThan for this BooleanExp.
 void setGreaterThanOrEquals(IGreaterThanOrEquals value)
          Set the greaterThanOrEquals for this BooleanExp.
 void setInRange(IInRange value)
          Set the inRange for this BooleanExp.
 void setInSet(IInSet value)
          Set the inSet for this BooleanExp.
 void setLessThan(ILessThan value)
          Set the lessThan for this BooleanExp.
 void setLessThanOrEquals(ILessThanOrEquals value)
          Set the lessThanOrEquals for this BooleanExp.
 void setNot(INot value)
          Set the not for this BooleanExp.
 void setNotEquals(INotEquals value)
          Set the notEquals for this BooleanExp.
 void setOr(IOr value)
          Set the or for this BooleanExp.
 void setParenExp(IParen value)
          Set the parenExp for this BooleanExp.
 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

AND_ELT_NAME

public static final String AND_ELT_NAME
Tag name for ands in this object.

See Also:
Constant Field Values

OR_ELT_NAME

public static final String OR_ELT_NAME
Tag name for ors in this object.

See Also:
Constant Field Values

NOT_ELT_NAME

public static final String NOT_ELT_NAME
Tag name for nots in this object.

See Also:
Constant Field Values

GREATER_THAN_ELT_NAME

public static final String GREATER_THAN_ELT_NAME
Tag name for greaterThans in this object.

See Also:
Constant Field Values

GREATER_THAN_OR_EQUALS_ELT_NAME

public static final String GREATER_THAN_OR_EQUALS_ELT_NAME
Tag name for greaterThanOrEqualss in this object.

See Also:
Constant Field Values

LESS_THAN_ELT_NAME

public static final String LESS_THAN_ELT_NAME
Tag name for lessThans in this object.

See Also:
Constant Field Values

LESS_THAN_OR_EQUALS_ELT_NAME

public static final String LESS_THAN_OR_EQUALS_ELT_NAME
Tag name for lessThanOrEqualss in this object.

See Also:
Constant Field Values

EQUALS_ELT_NAME

public static final String EQUALS_ELT_NAME
Tag name for equalss in this object.

See Also:
Constant Field Values

NOT_EQUALS_ELT_NAME

public static final String NOT_EQUALS_ELT_NAME
Tag name for notEqualss in this object.

See Also:
Constant Field Values

IN_SET_ELT_NAME

public static final String IN_SET_ELT_NAME
Tag name for inSets in this object.

See Also:
Constant Field Values

IN_RANGE_ELT_NAME

public static final String IN_RANGE_ELT_NAME
Tag name for inRanges in this object.

See Also:
Constant Field Values

BOOL_ELT_NAME

public static final String BOOL_ELT_NAME
Tag name for bools in this object.

See Also:
Constant Field Values

PAREN_EXP_ELT_NAME

public static final String PAREN_EXP_ELT_NAME
Tag name for parenExps in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

BooleanExpImpl

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

setAnd

public void setAnd(IAnd value)
Description copied from interface: IBooleanExp
Set the and for this BooleanExp.

Specified by:
setAnd in interface IBooleanExp
Parameters:
value - new and

clearAnd

public void clearAnd()
Description copied from interface: IBooleanExp
Clear the and from this BooleanExp.

Specified by:
clearAnd in interface IBooleanExp

getAnd

public IAnd getAnd()
Description copied from interface: IBooleanExp
Get the and from this BooleanExp.

Specified by:
getAnd in interface IBooleanExp
Returns:
and

hasAnd

public boolean hasAnd(IAnd value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given and

Specified by:
hasAnd in interface IBooleanExp
Parameters:
value - and to compare
Returns:
true if the ands are equivalent, false otherwise

setOr

public void setOr(IOr value)
Description copied from interface: IBooleanExp
Set the or for this BooleanExp.

Specified by:
setOr in interface IBooleanExp
Parameters:
value - new or

clearOr

public void clearOr()
Description copied from interface: IBooleanExp
Clear the or from this BooleanExp.

Specified by:
clearOr in interface IBooleanExp

getOr

public IOr getOr()
Description copied from interface: IBooleanExp
Get the or from this BooleanExp.

Specified by:
getOr in interface IBooleanExp
Returns:
or

hasOr

public boolean hasOr(IOr value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given or

Specified by:
hasOr in interface IBooleanExp
Parameters:
value - or to compare
Returns:
true if the ors are equivalent, false otherwise

setNot

public void setNot(INot value)
Description copied from interface: IBooleanExp
Set the not for this BooleanExp.

Specified by:
setNot in interface IBooleanExp
Parameters:
value - new not

clearNot

public void clearNot()
Description copied from interface: IBooleanExp
Clear the not from this BooleanExp.

Specified by:
clearNot in interface IBooleanExp

getNot

public INot getNot()
Description copied from interface: IBooleanExp
Get the not from this BooleanExp.

Specified by:
getNot in interface IBooleanExp
Returns:
not

hasNot

public boolean hasNot(INot value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given not

Specified by:
hasNot in interface IBooleanExp
Parameters:
value - not to compare
Returns:
true if the nots are equivalent, false otherwise

setGreaterThan

public void setGreaterThan(IGreaterThan value)
Description copied from interface: IBooleanExp
Set the greaterThan for this BooleanExp.

Specified by:
setGreaterThan in interface IBooleanExp
Parameters:
value - new greaterThan

clearGreaterThan

public void clearGreaterThan()
Description copied from interface: IBooleanExp
Clear the greaterThan from this BooleanExp.

Specified by:
clearGreaterThan in interface IBooleanExp

getGreaterThan

public IGreaterThan getGreaterThan()
Description copied from interface: IBooleanExp
Get the greaterThan from this BooleanExp.

Specified by:
getGreaterThan in interface IBooleanExp
Returns:
greaterThan

hasGreaterThan

public boolean hasGreaterThan(IGreaterThan value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given greaterThan

Specified by:
hasGreaterThan in interface IBooleanExp
Parameters:
value - greaterThan to compare
Returns:
true if the greaterThans are equivalent, false otherwise

setGreaterThanOrEquals

public void setGreaterThanOrEquals(IGreaterThanOrEquals value)
Description copied from interface: IBooleanExp
Set the greaterThanOrEquals for this BooleanExp.

Specified by:
setGreaterThanOrEquals in interface IBooleanExp
Parameters:
value - new greaterThanOrEquals

clearGreaterThanOrEquals

public void clearGreaterThanOrEquals()
Description copied from interface: IBooleanExp
Clear the greaterThanOrEquals from this BooleanExp.

Specified by:
clearGreaterThanOrEquals in interface IBooleanExp

getGreaterThanOrEquals

public IGreaterThanOrEquals getGreaterThanOrEquals()
Description copied from interface: IBooleanExp
Get the greaterThanOrEquals from this BooleanExp.

Specified by:
getGreaterThanOrEquals in interface IBooleanExp
Returns:
greaterThanOrEquals

hasGreaterThanOrEquals

public boolean hasGreaterThanOrEquals(IGreaterThanOrEquals value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given greaterThanOrEquals

Specified by:
hasGreaterThanOrEquals in interface IBooleanExp
Parameters:
value - greaterThanOrEquals to compare
Returns:
true if the greaterThanOrEqualss are equivalent, false otherwise

setLessThan

public void setLessThan(ILessThan value)
Description copied from interface: IBooleanExp
Set the lessThan for this BooleanExp.

Specified by:
setLessThan in interface IBooleanExp
Parameters:
value - new lessThan

clearLessThan

public void clearLessThan()
Description copied from interface: IBooleanExp
Clear the lessThan from this BooleanExp.

Specified by:
clearLessThan in interface IBooleanExp

getLessThan

public ILessThan getLessThan()
Description copied from interface: IBooleanExp
Get the lessThan from this BooleanExp.

Specified by:
getLessThan in interface IBooleanExp
Returns:
lessThan

hasLessThan

public boolean hasLessThan(ILessThan value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given lessThan

Specified by:
hasLessThan in interface IBooleanExp
Parameters:
value - lessThan to compare
Returns:
true if the lessThans are equivalent, false otherwise

setLessThanOrEquals

public void setLessThanOrEquals(ILessThanOrEquals value)
Description copied from interface: IBooleanExp
Set the lessThanOrEquals for this BooleanExp.

Specified by:
setLessThanOrEquals in interface IBooleanExp
Parameters:
value - new lessThanOrEquals

clearLessThanOrEquals

public void clearLessThanOrEquals()
Description copied from interface: IBooleanExp
Clear the lessThanOrEquals from this BooleanExp.

Specified by:
clearLessThanOrEquals in interface IBooleanExp

getLessThanOrEquals

public ILessThanOrEquals getLessThanOrEquals()
Description copied from interface: IBooleanExp
Get the lessThanOrEquals from this BooleanExp.

Specified by:
getLessThanOrEquals in interface IBooleanExp
Returns:
lessThanOrEquals

hasLessThanOrEquals

public boolean hasLessThanOrEquals(ILessThanOrEquals value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given lessThanOrEquals

Specified by:
hasLessThanOrEquals in interface IBooleanExp
Parameters:
value - lessThanOrEquals to compare
Returns:
true if the lessThanOrEqualss are equivalent, false otherwise

setEquals

public void setEquals(IEquals value)
Description copied from interface: IBooleanExp
Set the equals for this BooleanExp.

Specified by:
setEquals in interface IBooleanExp
Parameters:
value - new equals

clearEquals

public void clearEquals()
Description copied from interface: IBooleanExp
Clear the equals from this BooleanExp.

Specified by:
clearEquals in interface IBooleanExp

getEquals

public IEquals getEquals()
Description copied from interface: IBooleanExp
Get the equals from this BooleanExp.

Specified by:
getEquals in interface IBooleanExp
Returns:
equals

hasEquals

public boolean hasEquals(IEquals value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given equals

Specified by:
hasEquals in interface IBooleanExp
Parameters:
value - equals to compare
Returns:
true if the equalss are equivalent, false otherwise

setNotEquals

public void setNotEquals(INotEquals value)
Description copied from interface: IBooleanExp
Set the notEquals for this BooleanExp.

Specified by:
setNotEquals in interface IBooleanExp
Parameters:
value - new notEquals

clearNotEquals

public void clearNotEquals()
Description copied from interface: IBooleanExp
Clear the notEquals from this BooleanExp.

Specified by:
clearNotEquals in interface IBooleanExp

getNotEquals

public INotEquals getNotEquals()
Description copied from interface: IBooleanExp
Get the notEquals from this BooleanExp.

Specified by:
getNotEquals in interface IBooleanExp
Returns:
notEquals

hasNotEquals

public boolean hasNotEquals(INotEquals value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given notEquals

Specified by:
hasNotEquals in interface IBooleanExp
Parameters:
value - notEquals to compare
Returns:
true if the notEqualss are equivalent, false otherwise

setInSet

public void setInSet(IInSet value)
Description copied from interface: IBooleanExp
Set the inSet for this BooleanExp.

Specified by:
setInSet in interface IBooleanExp
Parameters:
value - new inSet

clearInSet

public void clearInSet()
Description copied from interface: IBooleanExp
Clear the inSet from this BooleanExp.

Specified by:
clearInSet in interface IBooleanExp

getInSet

public IInSet getInSet()
Description copied from interface: IBooleanExp
Get the inSet from this BooleanExp.

Specified by:
getInSet in interface IBooleanExp
Returns:
inSet

hasInSet

public boolean hasInSet(IInSet value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given inSet

Specified by:
hasInSet in interface IBooleanExp
Parameters:
value - inSet to compare
Returns:
true if the inSets are equivalent, false otherwise

setInRange

public void setInRange(IInRange value)
Description copied from interface: IBooleanExp
Set the inRange for this BooleanExp.

Specified by:
setInRange in interface IBooleanExp
Parameters:
value - new inRange

clearInRange

public void clearInRange()
Description copied from interface: IBooleanExp
Clear the inRange from this BooleanExp.

Specified by:
clearInRange in interface IBooleanExp

getInRange

public IInRange getInRange()
Description copied from interface: IBooleanExp
Get the inRange from this BooleanExp.

Specified by:
getInRange in interface IBooleanExp
Returns:
inRange

hasInRange

public boolean hasInRange(IInRange value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given inRange

Specified by:
hasInRange in interface IBooleanExp
Parameters:
value - inRange to compare
Returns:
true if the inRanges are equivalent, false otherwise

setBool

public void setBool(IBool value)
Description copied from interface: IBooleanExp
Set the bool for this BooleanExp.

Specified by:
setBool in interface IBooleanExp
Parameters:
value - new bool

clearBool

public void clearBool()
Description copied from interface: IBooleanExp
Clear the bool from this BooleanExp.

Specified by:
clearBool in interface IBooleanExp

getBool

public IBool getBool()
Description copied from interface: IBooleanExp
Get the bool from this BooleanExp.

Specified by:
getBool in interface IBooleanExp
Returns:
bool

hasBool

public boolean hasBool(IBool value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given bool

Specified by:
hasBool in interface IBooleanExp
Parameters:
value - bool to compare
Returns:
true if the bools are equivalent, false otherwise

setParenExp

public void setParenExp(IParen value)
Description copied from interface: IBooleanExp
Set the parenExp for this BooleanExp.

Specified by:
setParenExp in interface IBooleanExp
Parameters:
value - new parenExp

clearParenExp

public void clearParenExp()
Description copied from interface: IBooleanExp
Clear the parenExp from this BooleanExp.

Specified by:
clearParenExp in interface IBooleanExp

getParenExp

public IParen getParenExp()
Description copied from interface: IBooleanExp
Get the parenExp from this BooleanExp.

Specified by:
getParenExp in interface IBooleanExp
Returns:
parenExp

hasParenExp

public boolean hasParenExp(IParen value)
Description copied from interface: IBooleanExp
Determine if this BooleanExp has the given parenExp

Specified by:
hasParenExp in interface IBooleanExp
Parameters:
value - parenExp to compare
Returns:
true if the parenExps are equivalent, false otherwise

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library