|
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.ProductionRuleImpl
DOM-Based implementation of the IProductionRule interface.
| Field Summary | |
static String |
CAUSE_TIME_ELT_NAME
Tag name for causeTimes in this object. |
static String |
DESCRIPTION_ELT_NAME
Tag name for descriptions in this object. |
protected Element |
elt
|
static String |
ID_ATTR_NAME
Tag name for ids in this object. |
static String |
RECEIVE_MESSAGE_ELT_NAME
Tag name for receiveMessages in this object. |
static String |
SEND_MESSAGE_ELT_NAME
Tag name for sendMessages 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.IProductionRule |
TYPE_METADATA |
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Constructor Summary | |
ProductionRuleImpl(Element elt)
|
|
| Method Summary | |
void |
addReceiveMessage(IGenericMessage newReceiveMessage)
Add a receiveMessage to this ProductionRule. |
void |
addReceiveMessages(Collection receiveMessages)
Add a collection of receiveMessages to this ProductionRule. |
void |
addSendMessage(IGenericMessage newSendMessage)
Add a sendMessage to this ProductionRule. |
void |
addSendMessages(Collection sendMessages)
Add a collection of sendMessages to this ProductionRule. |
void |
clearCauseTime()
Clear the causeTime from this ProductionRule. |
void |
clearDescription()
Clear the description from this ProductionRule. |
void |
clearId()
Removes the id attribute from this object. |
void |
clearReceiveMessages()
Remove all receiveMessages from this ProductionRule. |
void |
clearSendMessages()
Remove all sendMessages from this ProductionRule. |
IXArchElement |
cloneElement(int depth)
|
boolean |
equals(Object o)
|
Collection |
getAllReceiveMessages()
Get all the receiveMessages from this ProductionRule. |
Collection |
getAllSendMessages()
Get all the sendMessages from this ProductionRule. |
ICauseTime |
getCauseTime()
Get the causeTime from this ProductionRule. |
IDescription |
getDescription()
Get the description from this ProductionRule. |
Node |
getDOMNode()
Gets the DOM node on which this implementation is based. |
String |
getId()
Gets the value of the id attribute on this object. |
XArchInstanceMetadata |
getInstanceMetadata()
Gets metadata describing the instance of this element. |
IGenericMessage |
getReceiveMessage(String id)
Gets the receiveMessage from this ProductionRule with the given id. |
Collection |
getReceiveMessages(Collection ids)
Gets the receiveMessages from this ProductionRule with the given ids. |
IGenericMessage |
getSendMessage(String id)
Gets the sendMessage from this ProductionRule with the given id. |
Collection |
getSendMessages(Collection ids)
Gets the sendMessages from this ProductionRule with the given ids. |
protected static SequenceOrder |
getSequenceOrder()
|
XArchTypeMetadata |
getTypeMetadata()
Gets metadata describing the xsi:type of this element. |
IXArch |
getXArch()
|
boolean |
hasAllReceiveMessages(Collection receiveMessagesToCheck)
Determine if this ProductionRule contains each element in the given set of receiveMessages. |
boolean |
hasAllSendMessages(Collection sendMessagesToCheck)
Determine if this ProductionRule contains each element in the given set of sendMessages. |
boolean |
hasCauseTime(ICauseTime value)
Determine if this ProductionRule has the given causeTime |
boolean |
hasDescription(IDescription value)
Determine if this ProductionRule has the given description |
int |
hashCode()
|
boolean |
hasId(String id)
Determines if this object's id attribute has the given value. |
boolean |
hasReceiveMessage(IGenericMessage receiveMessageToCheck)
Determine if this ProductionRule contains a given receiveMessage. |
Collection |
hasReceiveMessages(Collection receiveMessagesToCheck)
Determine if this ProductionRule contains the given set of receiveMessages. |
boolean |
hasSendMessage(IGenericMessage sendMessageToCheck)
Determine if this ProductionRule contains a given sendMessage. |
Collection |
hasSendMessages(Collection sendMessagesToCheck)
Determine if this ProductionRule contains the given set of sendMessages. |
boolean |
isEqual(IProductionRule ProductionRuleToCheck)
Determine if another ProductionRule has the same id as this one. |
boolean |
isEquivalent(IProductionRule c)
Determine if another ProductionRule is equivalent to this one, ignoring ID's. |
void |
removeReceiveMessage(IGenericMessage receiveMessageToRemove)
Remove the given receiveMessage from this ProductionRule. |
void |
removeReceiveMessages(Collection receiveMessages)
Remove all the given receiveMessages from this ProductionRule. |
void |
removeSendMessage(IGenericMessage sendMessageToRemove)
Remove the given sendMessage from this ProductionRule. |
void |
removeSendMessages(Collection sendMessages)
Remove all the given sendMessages from this ProductionRule. |
void |
setCauseTime(ICauseTime value)
Set the causeTime for this ProductionRule. |
void |
setDescription(IDescription value)
Set the description for this ProductionRule. |
void |
setDOMNode(Node node)
Sets the DOM node on which this implementation is based. |
void |
setId(String id)
Set the id attribute on this object. |
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 ID_ATTR_NAME
public static final String DESCRIPTION_ELT_NAME
public static final String RECEIVE_MESSAGE_ELT_NAME
public static final String SEND_MESSAGE_ELT_NAME
public static final String CAUSE_TIME_ELT_NAME
protected Element elt
| Constructor Detail |
public ProductionRuleImpl(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 setId(String id)
setId in interface IProductionRuleid - attribute value.public void clearId()
clearId in interface IProductionRulepublic String getId()
getId in interface IProductionRulenull if that
attribute is not set.public boolean hasId(String id)
hasId in interface IProductionRuleid - value to test.
true if the values match, false otherwise.
Matching is done by string-matching.public void setDescription(IDescription value)
IProductionRule
setDescription in interface IProductionRulevalue - new descriptionpublic void clearDescription()
IProductionRule
clearDescription in interface IProductionRulepublic IDescription getDescription()
IProductionRule
getDescription in interface IProductionRulepublic boolean hasDescription(IDescription value)
IProductionRule
hasDescription in interface IProductionRulevalue - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addReceiveMessage(IGenericMessage newReceiveMessage)
IProductionRule
addReceiveMessage in interface IProductionRulenewReceiveMessage - receiveMessage to add.public void addReceiveMessages(Collection receiveMessages)
IProductionRule
addReceiveMessages in interface IProductionRulereceiveMessages - receiveMessages to add.public void clearReceiveMessages()
IProductionRule
clearReceiveMessages in interface IProductionRulepublic void removeReceiveMessage(IGenericMessage receiveMessageToRemove)
IProductionRuleisEquivalent(...) function.
removeReceiveMessage in interface IProductionRulereceiveMessageToRemove - receiveMessage to remove.public void removeReceiveMessages(Collection receiveMessages)
IProductionRuleisEquivalent(...) function.
removeReceiveMessages in interface IProductionRulereceiveMessages - receiveMessage to remove.public Collection getAllReceiveMessages()
IProductionRule
getAllReceiveMessages in interface IProductionRulepublic boolean hasReceiveMessage(IGenericMessage receiveMessageToCheck)
IProductionRule
hasReceiveMessage in interface IProductionRuletrue if this ProductionRule contains the given
receiveMessageToCheck, false otherwise.public Collection hasReceiveMessages(Collection receiveMessagesToCheck)
IProductionRule
hasReceiveMessages in interface IProductionRulereceiveMessagesToCheck - receiveMessages to check for.
java.lang.Boolean. If the ith
element in receiveMessages 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 hasAllReceiveMessages(Collection receiveMessagesToCheck)
IProductionRule
hasAllReceiveMessages in interface IProductionRulereceiveMessagesToCheck - receiveMessages to check for.
true if every element in
receiveMessages is found in this ProductionRule,
false otherwise.public IGenericMessage getReceiveMessage(String id)
IProductionRule
getReceiveMessage in interface IProductionRuleid - ID to look for.
null if not found.public Collection getReceiveMessages(Collection ids)
IProductionRule
getReceiveMessages in interface IProductionRuleids - ID to look for.
public void addSendMessage(IGenericMessage newSendMessage)
IProductionRule
addSendMessage in interface IProductionRulenewSendMessage - sendMessage to add.public void addSendMessages(Collection sendMessages)
IProductionRule
addSendMessages in interface IProductionRulesendMessages - sendMessages to add.public void clearSendMessages()
IProductionRule
clearSendMessages in interface IProductionRulepublic void removeSendMessage(IGenericMessage sendMessageToRemove)
IProductionRuleisEquivalent(...) function.
removeSendMessage in interface IProductionRulesendMessageToRemove - sendMessage to remove.public void removeSendMessages(Collection sendMessages)
IProductionRuleisEquivalent(...) function.
removeSendMessages in interface IProductionRulesendMessages - sendMessage to remove.public Collection getAllSendMessages()
IProductionRule
getAllSendMessages in interface IProductionRulepublic boolean hasSendMessage(IGenericMessage sendMessageToCheck)
IProductionRule
hasSendMessage in interface IProductionRuletrue if this ProductionRule contains the given
sendMessageToCheck, false otherwise.public Collection hasSendMessages(Collection sendMessagesToCheck)
IProductionRule
hasSendMessages in interface IProductionRulesendMessagesToCheck - sendMessages to check for.
java.lang.Boolean. If the ith
element in sendMessages 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 hasAllSendMessages(Collection sendMessagesToCheck)
IProductionRule
hasAllSendMessages in interface IProductionRulesendMessagesToCheck - sendMessages to check for.
true if every element in
sendMessages is found in this ProductionRule,
false otherwise.public IGenericMessage getSendMessage(String id)
IProductionRule
getSendMessage in interface IProductionRuleid - ID to look for.
null if not found.public Collection getSendMessages(Collection ids)
IProductionRule
getSendMessages in interface IProductionRuleids - ID to look for.
public void setCauseTime(ICauseTime value)
IProductionRule
setCauseTime in interface IProductionRulevalue - new causeTimepublic void clearCauseTime()
IProductionRule
clearCauseTime in interface IProductionRulepublic ICauseTime getCauseTime()
IProductionRule
getCauseTime in interface IProductionRulepublic boolean hasCauseTime(ICauseTime value)
IProductionRule
hasCauseTime in interface IProductionRulevalue - causeTime to compare
true if the causeTimes are equivalent,
false otherwisepublic boolean isEqual(IProductionRule ProductionRuleToCheck)
IProductionRule
isEqual in interface IProductionRuleProductionRuleToCheck - ProductionRule to compare with this
one.public boolean isEquivalent(IProductionRule c)
IProductionRule
isEquivalent in interface IProductionRulec - ProductionRule to compare to this one.
true if all the child elements of this
ProductionRule 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 | |||||||||