xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.boolguard
Class InRangeImpl

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

public class InRangeImpl
extends Object
implements IInRange, DOMBased

DOM-Based implementation of the IInRange interface.

Author:
Automatically generated by xArch apigen.

Field Summary
protected  Element elt
           
static String SYMBOL_ELT_NAME
          Tag name for symbols in this object.
static String VALUE_ELT_NAME
          Tag name for values 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.IInRange
TYPE_METADATA
 
Fields inherited from interface edu.uci.isr.xarch.IXArchElement
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO
 
Constructor Summary
InRangeImpl(Element elt)
           
 
Method Summary
 void addValue(IValue newValue)
          Add a value to this InRange.
 void addValues(Collection values)
          Add a collection of values to this InRange.
 void clearSymbol()
          Clear the symbol from this InRange.
 void clearValues()
          Remove all values from this InRange.
 IXArchElement cloneElement(int depth)
           
 boolean equals(Object o)
           
 Collection getAllValues()
          Get all the values from this InRange.
 Node getDOMNode()
          Gets the DOM node on which this implementation is based.
 XArchInstanceMetadata getInstanceMetadata()
          Gets metadata describing the instance of this element.
protected static SequenceOrder getSequenceOrder()
           
 ISymbol getSymbol()
          Get the symbol from this InRange.
 XArchTypeMetadata getTypeMetadata()
          Gets metadata describing the xsi:type of this element.
 IXArch getXArch()
           
 boolean hasAllValues(Collection valuesToCheck)
          Determine if this InRange contains each element in the given set of values.
 int hashCode()
           
 boolean hasSymbol(ISymbol value)
          Determine if this InRange has the given symbol
 boolean hasValue(IValue valueToCheck)
          Determine if this InRange contains a given value.
 Collection hasValues(Collection valuesToCheck)
          Determine if this InRange contains the given set of values.
 boolean isEquivalent(IInRange c)
          Determine if another InRange is equivalent to this one, ignoring ID's.
 void removeValue(IValue valueToRemove)
          Remove the given value from this InRange.
 void removeValues(Collection values)
          Remove all the given values from this InRange.
 void setDOMNode(Node node)
          Sets the DOM node on which this implementation is based.
 void setSymbol(ISymbol value)
          Set the symbol for this InRange.
 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

SYMBOL_ELT_NAME

public static final String SYMBOL_ELT_NAME
Tag name for symbols in this object.

See Also:
Constant Field Values

VALUE_ELT_NAME

public static final String VALUE_ELT_NAME
Tag name for values in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

InRangeImpl

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

setSymbol

public void setSymbol(ISymbol value)
Description copied from interface: IInRange
Set the symbol for this InRange.

Specified by:
setSymbol in interface IInRange
Parameters:
value - new symbol

clearSymbol

public void clearSymbol()
Description copied from interface: IInRange
Clear the symbol from this InRange.

Specified by:
clearSymbol in interface IInRange

getSymbol

public ISymbol getSymbol()
Description copied from interface: IInRange
Get the symbol from this InRange.

Specified by:
getSymbol in interface IInRange
Returns:
symbol

hasSymbol

public boolean hasSymbol(ISymbol value)
Description copied from interface: IInRange
Determine if this InRange has the given symbol

Specified by:
hasSymbol in interface IInRange
Parameters:
value - symbol to compare
Returns:
true if the symbols are equivalent, false otherwise

addValue

public void addValue(IValue newValue)
Description copied from interface: IInRange
Add a value to this InRange.

Specified by:
addValue in interface IInRange
Parameters:
newValue - value to add.

addValues

public void addValues(Collection values)
Description copied from interface: IInRange
Add a collection of values to this InRange.

Specified by:
addValues in interface IInRange
Parameters:
values - values to add.

clearValues

public void clearValues()
Description copied from interface: IInRange
Remove all values from this InRange.

Specified by:
clearValues in interface IInRange

removeValue

public void removeValue(IValue valueToRemove)
Description copied from interface: IInRange
Remove the given value from this InRange. Matching is done by the isEquivalent(...) function.

Specified by:
removeValue in interface IInRange
Parameters:
valueToRemove - value to remove.

removeValues

public void removeValues(Collection values)
Description copied from interface: IInRange
Remove all the given values from this InRange. Matching is done by the isEquivalent(...) function.

Specified by:
removeValues in interface IInRange
Parameters:
values - value to remove.

getAllValues

public Collection getAllValues()
Description copied from interface: IInRange
Get all the values from this InRange.

Specified by:
getAllValues in interface IInRange
Returns:
all values in this InRange.

hasValue

public boolean hasValue(IValue valueToCheck)
Description copied from interface: IInRange
Determine if this InRange contains a given value.

Specified by:
hasValue in interface IInRange
Returns:
true if this InRange contains the given valueToCheck, false otherwise.

hasValues

public Collection hasValues(Collection valuesToCheck)
Description copied from interface: IInRange
Determine if this InRange contains the given set of values.

Specified by:
hasValues in interface IInRange
Parameters:
valuesToCheck - values to check for.
Returns:
Collection of java.lang.Boolean. If the ith element in values was found, then the ith element of the collection will be set to true, otherwise it will be set to false. Matching is done with the isEquivalent(...) method.

hasAllValues

public boolean hasAllValues(Collection valuesToCheck)
Description copied from interface: IInRange
Determine if this InRange contains each element in the given set of values.

Specified by:
hasAllValues in interface IInRange
Parameters:
valuesToCheck - values to check for.
Returns:
true if every element in values is found in this InRange, false otherwise.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library