|
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.hints.HintsImpl
DOM-Based implementation of the IHints interface.
| Field Summary | |
protected Element |
elt
|
static String |
HINTED_THING_ELT_NAME
Tag name for hintedThings in this object. |
static String |
PROPERTY_HINT_ELT_NAME
Tag name for propertyHints in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.hints.IHints |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
HintsImpl(Element elt)
|
|
| Method Summary | |
void |
addPropertyHint(IPropertyHint newPropertyHint)
Add a propertyHint to this Hints. |
void |
addPropertyHints(Collection propertyHints)
Add a collection of propertyHints to this Hints. |
void |
clearHintedThing()
Clear the hintedThing from this Hints. |
void |
clearPropertyHints()
Remove all propertyHints from this Hints. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllPropertyHints()
Get all the propertyHints from this Hints. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
IXMLLink |
getHintedThing()
Get the hintedThing from this Hints. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllPropertyHints(Collection propertyHintsToCheck)
Determine if this Hints contains each element in the given set of propertyHints. |
int |
hashCode()
|
boolean |
hasHintedThing(IXMLLink value)
Determine if this Hints has the given hintedThing |
boolean |
hasPropertyHint(IPropertyHint propertyHintToCheck)
Determine if this Hints contains a given propertyHint. |
Collection |
hasPropertyHints(Collection propertyHintsToCheck)
Determine if this Hints contains the given set of propertyHints. |
boolean |
isEquivalent(IHints c)
Determine if another Hints is equivalent to this one, ignoring ID's. |
void |
removePropertyHint(IPropertyHint propertyHintToRemove)
Remove the given propertyHint from this Hints. |
void |
removePropertyHints(Collection propertyHints)
Remove all the given propertyHints from this Hints. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
void |
setHintedThing(IXMLLink value)
Set the hintedThing for this Hints. |
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 HINTED_THING_ELT_NAME
public static final String PROPERTY_HINT_ELT_NAME
protected Element elt
| Constructor Detail |
public HintsImpl(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 setHintedThing(IXMLLink value)
IHints
setHintedThing in interface IHintsvalue - new hintedThingpublic void clearHintedThing()
IHints
clearHintedThing in interface IHintspublic IXMLLink getHintedThing()
IHints
getHintedThing in interface IHintspublic boolean hasHintedThing(IXMLLink value)
IHints
hasHintedThing in interface IHintsvalue - hintedThing to compare
true if the hintedThings are equivalent,
false otherwisepublic void addPropertyHint(IPropertyHint newPropertyHint)
IHints
addPropertyHint in interface IHintsnewPropertyHint - propertyHint to add.public void addPropertyHints(Collection propertyHints)
IHints
addPropertyHints in interface IHintspropertyHints - propertyHints to add.public void clearPropertyHints()
IHints
clearPropertyHints in interface IHintspublic void removePropertyHint(IPropertyHint propertyHintToRemove)
IHintsisEquivalent(...) function.
removePropertyHint in interface IHintspropertyHintToRemove - propertyHint to remove.public void removePropertyHints(Collection propertyHints)
IHintsisEquivalent(...) function.
removePropertyHints in interface IHintspropertyHints - propertyHint to remove.public Collection getAllPropertyHints()
IHints
getAllPropertyHints in interface IHintspublic boolean hasPropertyHint(IPropertyHint propertyHintToCheck)
IHints
hasPropertyHint in interface IHintstrue if this Hints contains the given
propertyHintToCheck, false otherwise.public Collection hasPropertyHints(Collection propertyHintsToCheck)
IHints
hasPropertyHints in interface IHintspropertyHintsToCheck - propertyHints to check for.
java.lang.Boolean. If the ith
element in propertyHints 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 hasAllPropertyHints(Collection propertyHintsToCheck)
IHints
hasAllPropertyHints in interface IHintspropertyHintsToCheck - propertyHints to check for.
true if every element in
propertyHints is found in this Hints,
false otherwise.public boolean isEquivalent(IHints c)
IHints
isEquivalent in interface IHintsc - Hints to compare to this one.
true if all the child elements of this
Hints 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 | |||||||||