|
xArch/xADL 2.0 Data Binding Library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface for accessing objects of the
RuleSpecification xsi:type in the
messages namespace.
| Field Summary | |
static XArchTypeMetadata |
TYPE_METADATA
|
| Fields inherited from interface edu.uci.isr.xarch.IXArchElement |
DEPTH_INFINITY, DEPTH_ONE, DEPTH_ZERO |
| Method Summary | |
void |
addRule(IProductionRule newRule)
Add a rule to this RuleSpecification. |
void |
addRules(Collection rules)
Add a collection of rules to this RuleSpecification. |
void |
clearDescription()
Clear the description from this RuleSpecification. |
void |
clearId()
Remove the id attribute from this RuleSpecification. |
void |
clearRules()
Remove all rules from this RuleSpecification. |
Collection |
getAllRules()
Get all the rules from this RuleSpecification. |
IDescription |
getDescription()
Get the description from this RuleSpecification. |
String |
getId()
Get the id attribute from this RuleSpecification. |
IProductionRule |
getRule(String id)
Gets the rule from this RuleSpecification with the given id. |
Collection |
getRules(Collection ids)
Gets the rules from this RuleSpecification with the given ids. |
boolean |
hasAllRules(Collection rulesToCheck)
Determine if this RuleSpecification contains each element in the given set of rules. |
boolean |
hasDescription(IDescription descriptionToCheck)
Determine if this RuleSpecification has the given description |
boolean |
hasId(String id)
Determine if the id attribute on this RuleSpecification has the given value. |
boolean |
hasRule(IProductionRule ruleToCheck)
Determine if this RuleSpecification contains a given rule. |
Collection |
hasRules(Collection rulesToCheck)
Determine if this RuleSpecification contains the given set of rules. |
boolean |
isEqual(IRuleSpecification RuleSpecificationToCheck)
Determine if another RuleSpecification has the same id as this one. |
boolean |
isEquivalent(IRuleSpecification RuleSpecificationToCheck)
Determine if another RuleSpecification is equivalent to this one, ignoring ID's. |
void |
removeRule(IProductionRule ruleToRemove)
Remove the given rule from this RuleSpecification. |
void |
removeRules(Collection rules)
Remove all the given rules from this RuleSpecification. |
void |
setDescription(IDescription value)
Set the description for this RuleSpecification. |
void |
setId(String id)
Set the id attribute on this RuleSpecification. |
| Methods inherited from interface edu.uci.isr.xarch.IXArchElement |
cloneElement, getInstanceMetadata, getTypeMetadata, getXArch, setXArch |
| Field Detail |
public static final XArchTypeMetadata TYPE_METADATA
| Method Detail |
public void setId(String id)
id - id
FixedValueException - if the attribute has a fixed value
and the value passed is not the fixed value.public void clearId()
public String getId()
public boolean hasId(String id)
id - Attribute value to compare
true if they match; false
otherwise.public void setDescription(IDescription value)
value - new descriptionpublic void clearDescription()
public IDescription getDescription()
public boolean hasDescription(IDescription descriptionToCheck)
descriptionToCheck - description to compare
true if the descriptions are equivalent,
false otherwisepublic void addRule(IProductionRule newRule)
newRule - rule to add.public void addRules(Collection rules)
rules - rules to add.public void clearRules()
public void removeRule(IProductionRule ruleToRemove)
isEquivalent(...) function.
ruleToRemove - rule to remove.public void removeRules(Collection rules)
isEquivalent(...) function.
rules - rule to remove.public Collection getAllRules()
public boolean hasRule(IProductionRule ruleToCheck)
true if this RuleSpecification contains the given
ruleToCheck, false otherwise.public Collection hasRules(Collection rulesToCheck)
rulesToCheck - 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)
rulesToCheck - rules to check for.
true if every element in
rules is found in this RuleSpecification,
false otherwise.public IProductionRule getRule(String id)
id - ID to look for.
null if not found.public Collection getRules(Collection ids)
ids - ID to look for.
public boolean isEqual(IRuleSpecification RuleSpecificationToCheck)
RuleSpecificationToCheck - RuleSpecification to compare with this
one.public boolean isEquivalent(IRuleSpecification RuleSpecificationToCheck)
RuleSpecificationToCheck - RuleSpecification to compare to this one.
true if all the child elements of this
RuleSpecification 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 | |||||||||