|
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.InSetImpl
DOM-Based implementation of the IInSet 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.IInSet |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
InSetImpl(Element elt)
|
|
| Method Summary | |
void |
addValue(IValue newValue)
Add a value to this InSet. |
void |
addValues(Collection values)
Add a collection of values to this InSet. |
void |
clearSymbol()
Clear the symbol from this InSet. |
void |
clearValues()
Remove all values from this InSet. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllValues()
Get all the values from this InSet. |
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 InSet. |
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllValues(Collection valuesToCheck)
Determine if this InSet contains each element in the given set of values. |
int |
hashCode()
|
boolean |
hasSymbol(ISymbol value)
Determine if this InSet has the given symbol |
boolean |
hasValue(IValue valueToCheck)
Determine if this InSet contains a given value. |
Collection |
hasValues(Collection valuesToCheck)
Determine if this InSet contains the given set of values. |
boolean |
isEquivalent(IInSet c)
Determine if another InSet is equivalent to this one, ignoring ID's. |
void |
removeValue(IValue valueToRemove)
Remove the given value from this InSet. |
void |
removeValues(Collection values)
Remove all the given values from this InSet. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
void |
setSymbol(ISymbol value)
Set the symbol for this InSet. |
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 InSetImpl(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)
IInSet
setSymbol in interface IInSetvalue - new symbolpublic void clearSymbol()
IInSet
clearSymbol in interface IInSetpublic ISymbol getSymbol()
IInSet
getSymbol in interface IInSetpublic boolean hasSymbol(ISymbol value)
IInSet
hasSymbol in interface IInSetvalue - symbol to compare
true if the symbols are equivalent,
false otherwisepublic void addValue(IValue newValue)
IInSet
addValue in interface IInSetnewValue - value to add.public void addValues(Collection values)
IInSet
addValues in interface IInSetvalues - values to add.public void clearValues()
IInSet
clearValues in interface IInSetpublic void removeValue(IValue valueToRemove)
IInSetisEquivalent(...) function.
removeValue in interface IInSetvalueToRemove - value to remove.public void removeValues(Collection values)
IInSetisEquivalent(...) function.
removeValues in interface IInSetvalues - value to remove.public Collection getAllValues()
IInSet
getAllValues in interface IInSetpublic boolean hasValue(IValue valueToCheck)
IInSet
hasValue in interface IInSettrue if this InSet contains the given
valueToCheck, false otherwise.public Collection hasValues(Collection valuesToCheck)
IInSet
hasValues in interface IInSetvaluesToCheck - 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)
IInSet
hasAllValues in interface IInSetvaluesToCheck - values to check for.
true if every element in
values is found in this InSet,
false otherwise.public boolean isEquivalent(IInSet c)
IInSet
isEquivalent in interface IInSetc - InSet to compare to this one.
true if all the child elements of this
InSet 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 | |||||||||