|
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.messages.MessageCausalitySpecificationImpl
DOM-Based implementation of the IMessageCausalitySpecification interface.
| Field Summary | |
protected Element |
elt
|
static String |
RULE_ELT_NAME
Tag name for rules in this object. |
protected IXArch |
xArch
|
static String |
XSD_TYPE_NAME
|
static String |
XSD_TYPE_NSURI
|
| Fields inherited from interface edu.uci.isr.xarch.messages.IMessageCausalitySpecification |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
MessageCausalitySpecificationImpl(Element elt)
|
|
| Method Summary | |
void |
addRule(IXMLLink newRule)
Add a rule to this MessageCausalitySpecification. |
void |
addRules(Collection rules)
Add a collection of rules to this MessageCausalitySpecification. |
void |
clearRules()
Remove all rules from this MessageCausalitySpecification. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllRules()
Get all the rules from this MessageCausalitySpecification. |
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()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllRules(Collection rulesToCheck)
Determine if this MessageCausalitySpecification contains each element in the given set of rules. |
int |
hashCode()
|
boolean |
hasRule(IXMLLink ruleToCheck)
Determine if this MessageCausalitySpecification contains a given rule. |
Collection |
hasRules(Collection rulesToCheck)
Determine if this MessageCausalitySpecification contains the given set of rules. |
boolean |
isEquivalent(IMessageCausalitySpecification c)
Determine if another MessageCausalitySpecification is equivalent to this one, ignoring ID's. |
void |
removeRule(IXMLLink ruleToRemove)
Remove the given rule from this MessageCausalitySpecification. |
void |
removeRules(Collection rules)
Remove all the given rules from this MessageCausalitySpecification. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
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 RULE_ELT_NAME
protected Element elt
| Constructor Detail |
public MessageCausalitySpecificationImpl(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 addRule(IXMLLink newRule)
IMessageCausalitySpecification
addRule in interface IMessageCausalitySpecificationnewRule - rule to add.public void addRules(Collection rules)
IMessageCausalitySpecification
addRules in interface IMessageCausalitySpecificationrules - rules to add.public void clearRules()
IMessageCausalitySpecification
clearRules in interface IMessageCausalitySpecificationpublic void removeRule(IXMLLink ruleToRemove)
IMessageCausalitySpecificationisEquivalent(...) function.
removeRule in interface IMessageCausalitySpecificationruleToRemove - rule to remove.public void removeRules(Collection rules)
IMessageCausalitySpecificationisEquivalent(...) function.
removeRules in interface IMessageCausalitySpecificationrules - rule to remove.public Collection getAllRules()
IMessageCausalitySpecification
getAllRules in interface IMessageCausalitySpecificationpublic boolean hasRule(IXMLLink ruleToCheck)
IMessageCausalitySpecification
hasRule in interface IMessageCausalitySpecificationtrue if this MessageCausalitySpecification contains the given
ruleToCheck, false otherwise.public Collection hasRules(Collection rulesToCheck)
IMessageCausalitySpecification
hasRules in interface IMessageCausalitySpecificationrulesToCheck - rules to check for.
java.lang.Boolean. If the ith
element in rules 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 hasAllRules(Collection rulesToCheck)
IMessageCausalitySpecification
hasAllRules in interface IMessageCausalitySpecificationrulesToCheck - rules to check for.
true if every element in
rules is found in this MessageCausalitySpecification,
false otherwise.public boolean isEquivalent(IMessageCausalitySpecification c)
IMessageCausalitySpecification
isEquivalent in interface IMessageCausalitySpecificationc - MessageCausalitySpecification to compare to this one.
true if all the child elements of this
MessageCausalitySpecification 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 | |||||||||