xArch/xADL 2.0 Data Binding Library

edu.uci.isr.xarch.messages
Class MessageCausalitySpecificationImpl

java.lang.Object
  extended byedu.uci.isr.xarch.messages.MessageCausalitySpecificationImpl
All Implemented Interfaces:
DOMBased, IMessageCausalitySpecification, IXArchElement

public class MessageCausalitySpecificationImpl
extends Object
implements IMessageCausalitySpecification, DOMBased

DOM-Based implementation of the IMessageCausalitySpecification interface.

Author:
Automatically generated by xArch apigen.

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

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

RULE_ELT_NAME

public static final String RULE_ELT_NAME
Tag name for rules in this object.

See Also:
Constant Field Values

elt

protected Element elt
Constructor Detail

MessageCausalitySpecificationImpl

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

addRule

public void addRule(IXMLLink newRule)
Description copied from interface: IMessageCausalitySpecification
Add a rule to this MessageCausalitySpecification.

Specified by:
addRule in interface IMessageCausalitySpecification
Parameters:
newRule - rule to add.

addRules

public void addRules(Collection rules)
Description copied from interface: IMessageCausalitySpecification
Add a collection of rules to this MessageCausalitySpecification.

Specified by:
addRules in interface IMessageCausalitySpecification
Parameters:
rules - rules to add.

clearRules

public void clearRules()
Description copied from interface: IMessageCausalitySpecification
Remove all rules from this MessageCausalitySpecification.

Specified by:
clearRules in interface IMessageCausalitySpecification

removeRule

public void removeRule(IXMLLink ruleToRemove)
Description copied from interface: IMessageCausalitySpecification
Remove the given rule from this MessageCausalitySpecification. Matching is done by the isEquivalent(...) function.

Specified by:
removeRule in interface IMessageCausalitySpecification
Parameters:
ruleToRemove - rule to remove.

removeRules

public void removeRules(Collection rules)
Description copied from interface: IMessageCausalitySpecification
Remove all the given rules from this MessageCausalitySpecification. Matching is done by the isEquivalent(...) function.

Specified by:
removeRules in interface IMessageCausalitySpecification
Parameters:
rules - rule to remove.

getAllRules

public Collection getAllRules()
Description copied from interface: IMessageCausalitySpecification
Get all the rules from this MessageCausalitySpecification.

Specified by:
getAllRules in interface IMessageCausalitySpecification
Returns:
all rules in this MessageCausalitySpecification.

hasRule

public boolean hasRule(IXMLLink ruleToCheck)
Description copied from interface: IMessageCausalitySpecification
Determine if this MessageCausalitySpecification contains a given rule.

Specified by:
hasRule in interface IMessageCausalitySpecification
Returns:
true if this MessageCausalitySpecification contains the given ruleToCheck, false otherwise.

hasRules

public Collection hasRules(Collection rulesToCheck)
Description copied from interface: IMessageCausalitySpecification
Determine if this MessageCausalitySpecification contains the given set of rules.

Specified by:
hasRules in interface IMessageCausalitySpecification
Parameters:
rulesToCheck - rules to check for.
Returns:
Collection of 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.

hasAllRules

public boolean hasAllRules(Collection rulesToCheck)
Description copied from interface: IMessageCausalitySpecification
Determine if this MessageCausalitySpecification contains each element in the given set of rules.

Specified by:
hasAllRules in interface IMessageCausalitySpecification
Parameters:
rulesToCheck - rules to check for.
Returns:
true if every element in rules is found in this MessageCausalitySpecification, false otherwise.

isEquivalent

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

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

xArch/xADL 2.0 Data Binding Library