public class AttributeRule extends AbstractRule implements AttributeRuleIF
aoSession, engine
Constructor and Description |
---|
AttributeRule(RuleEngine engine,
AoSession aoSession)
Create an abstract rule.
|
AttributeRule(RuleEngine engine,
AoSession aoSession,
java.util.Collection<AbstractRule> collection)
Create an abstract rule and initialize the child list with the given collection elements.
|
Modifier and Type | Method and Description |
---|---|
int |
executePreMethods()
Execute pre methods.
|
protected static java.lang.String |
getApplElemDescription(java.lang.String name,
java.lang.String basename,
java.lang.String id) |
protected ApplicationElement |
getApplicationElement() |
Attribute |
getAttribute()
Get the attribute description
|
java.lang.String |
getAttributeName()
Get the name of the attribute.
|
protected InstanceElement |
getInstanceElement() |
protected static java.lang.String |
getInstElemDescription(java.lang.String name,
java.lang.String path,
java.lang.String id) |
java.lang.String |
getType()
Get the type of the element.
|
NameValueUnit |
getValue()
Get the named value from rule.
|
void |
setAttribute(Attribute attribute)
Set the attribute description
|
void |
setValue(NameValueUnit nvu)
Get the named value from rule.
|
add, executePostMethods, get, getEngine, getId, getMessenger, getPointTo, getSession, getTransformer, isPedantic, remove, set, setId, setMethods, setMethods, setPedantic, setPointTo, size, toString
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
public AttributeRule(RuleEngine engine, AoSession aoSession)
public AttributeRule(RuleEngine engine, AoSession aoSession, java.util.Collection<AbstractRule> collection)
collection
- the initial child list.public void setAttribute(Attribute attribute)
public Attribute getAttribute()
getAttribute
in interface AttributeRuleIF
public int executePreMethods()
executePreMethods
in class AbstractRule
AbstractRule.executePostMethods()
public void setValue(NameValueUnit nvu)
setValue
in class AbstractRule
nvu
- The name value of the rule.public NameValueUnit getValue()
getValue
in class AbstractRule
public java.lang.String getAttributeName()
protected InstanceElement getInstanceElement()
protected ApplicationElement getApplicationElement()
public java.lang.String getType()
getType
in interface TypedRuleIF
protected static java.lang.String getApplElemDescription(java.lang.String name, java.lang.String basename, java.lang.String id)
protected static java.lang.String getInstElemDescription(java.lang.String name, java.lang.String path, java.lang.String id)