public class RuleImpl extends Object implements Rule, ModelComponent
Rule.Attribute<T>| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONSEQUENCE_NAME |
| Constructor and Description |
|---|
RuleImpl(String pkg,
String name,
String unit,
CompositePatterns view,
Map<Rule.Attribute,Object> attributes,
Map<String,Object> metaAttributes) |
RuleImpl(String pkg,
String name,
String unit,
View view,
Consequence consequence,
Map<Rule.Attribute,Object> attributes,
Map<String,Object> metaAttributes) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getAttribute(Rule.Attribute<T> attribute) |
Map<String,Consequence> |
getConsequences() |
Consequence |
getDefaultConsequence() |
Map<String,Object> |
getMetaData() |
Object |
getMetaData(String name) |
String |
getName() |
String |
getPackage() |
String |
getUnit() |
View |
getView() |
boolean |
isEqualTo(ModelComponent o) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullNameareEqualInModel, areEqualInModel, areEqualInModel, areEqualInModelpublic static final String DEFAULT_CONSEQUENCE_NAME
public RuleImpl(String pkg, String name, String unit, View view, Consequence consequence, Map<Rule.Attribute,Object> attributes, Map<String,Object> metaAttributes)
public RuleImpl(String pkg, String name, String unit, CompositePatterns view, Map<Rule.Attribute,Object> attributes, Map<String,Object> metaAttributes)
public Consequence getDefaultConsequence()
getDefaultConsequence in interface Rulepublic Map<String,Consequence> getConsequences()
getConsequences in interface Rulepublic <T> T getAttribute(Rule.Attribute<T> attribute)
getAttribute in interface Rulepublic Map<String,Object> getMetaData()
getMetaData in interface Rulepublic Object getMetaData(String name)
getMetaData in interface Rulepublic String getName()
getName in interface NamedModelItempublic String getPackage()
getPackage in interface NamedModelItempublic boolean isEqualTo(ModelComponent o)
isEqualTo in interface ModelComponentCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.