|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.isr.xarch.boolguard.InRangeImpl
DOM-Based implementation of the IInRange interface.
| 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 |
public static final String XSD_TYPE_NSURI
public static final String XSD_TYPE_NAME
protected IXArch xArch
public static final String SYMBOL_ELT_NAME
public static final String VALUE_ELT_NAME
protected Element elt
| Constructor Detail |
public InRangeImpl(Element elt)
| Method Detail |
public Node getDOMNode()
DOMBased
getDOMNode in interface DOMBasedpublic void setDOMNode(Node node)
DOMBased
setDOMNode in interface DOMBasednode - DOM nodeprotected static SequenceOrder getSequenceOrder()
public void setXArch(IXArch xArch)
setXArch in interface IXArchElementpublic IXArch getXArch()
getXArch in interface IXArchElementpublic IXArchElement cloneElement(int depth)
cloneElement in interface IXArchElementpublic boolean equals(Object o)
public int hashCode()
public XArchTypeMetadata getTypeMetadata()
IXArchElementxsi:type of this element.
getTypeMetadata in interface IXArchElementxsi:type of this element.public XArchInstanceMetadata getInstanceMetadata()
IXArchElement
getInstanceMetadata in interface IXArchElementpublic void setSymbol(ISymbol value)
IInRange
setSymbol in interface IInRangevalue - new symbolpublic void clearSymbol()
IInRange
clearSymbol in interface IInRangepublic ISymbol getSymbol()
IInRange
getSymbol in interface IInRangepublic boolean hasSymbol(ISymbol value)
IInRange
hasSymbol in interface IInRangevalue - symbol to compare
true if the symbols are equivalent,
false otherwisepublic void addValue(IValue newValue)
IInRange
addValue in interface IInRangenewValue - value to add.public void addValues(Collection values)
IInRange
addValues in interface IInRangevalues - values to add.public void clearValues()
IInRange
clearValues in interface IInRangepublic void removeValue(IValue valueToRemove)
IInRangeisEquivalent(...) function.
removeValue in interface IInRangevalueToRemove - value to remove.public void removeValues(Collection values)
IInRangeisEquivalent(...) function.
removeValues in interface IInRangevalues - value to remove.public Collection getAllValues()
IInRange
getAllValues in interface IInRangepublic boolean hasValue(IValue valueToCheck)
IInRange
hasValue in interface IInRangetrue if this InRange contains the given
valueToCheck, false otherwise.public Collection hasValues(Collection valuesToCheck)
IInRange
hasValues in interface IInRangevaluesToCheck - values to check for.
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.public boolean hasAllValues(Collection valuesToCheck)
IInRange
hasAllValues in interface IInRangevaluesToCheck - values to check for.
true if every element in
values is found in this InRange,
false otherwise.public boolean isEquivalent(IInRange c)
IInRange
isEquivalent in interface IInRangec - InRange to compare to this one.
true if all the child elements of this
InRange are equivalent, false otherwise.
|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||