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, wait
getFullName
areEqualInModel, areEqualInModel, areEqualInModel, areEqualInModel
public 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 Rule
public Map<String,Consequence> getConsequences()
getConsequences
in interface Rule
public <T> T getAttribute(Rule.Attribute<T> attribute)
getAttribute
in interface Rule
public Map<String,Object> getMetaData()
getMetaData
in interface Rule
public Object getMetaData(String name)
getMetaData
in interface Rule
public String getName()
getName
in interface NamedModelItem
public String getPackage()
getPackage
in interface NamedModelItem
public boolean isEqualTo(ModelComponent o)
isEqualTo
in interface ModelComponent
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.