public class RuleCategoryDMW extends DmsDefinition implements DmcDefinitionIF
\n RuleCategories fall into two broad types, ATTRIBUTE and CLASS level, as specified via the ruleType\n attribute. When a RuleDefinition belongs to an ATTRIBUTE level category, its instances will have\n a mandatory applyToAttribute attribute. Both ATTRIBUTE and CLASS level RuleDefinitions have an optional\n applyToClass attribute by default.\n
\n Specifying a RuleCategory will cause the generation of several artifacts including:\n
\n For CLASS level rules, you must specify the classInfoFromParam attribute to indicate how to \n get the DmcClassInfo from whatever object you are passing to the rule. For ATTRIBUTE level rules,\n you must specify both attributeInfoFromParam and classInfoFromParam.
metanamecore| Modifier | Constructor and Description |
|---|---|
protected |
RuleCategoryDMW() |
protected |
RuleCategoryDMW(ClassDefinition cd) |
protected |
RuleCategoryDMW(DmcObject obj) |
protected |
RuleCategoryDMW(DmcObject obj,
ClassDefinition cd) |
protected |
RuleCategoryDMW(String mn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRuleImport(Object value)
Adds another ruleImport value.
|
void |
addRuleParam(Object value)
Adds another ruleParam value.
|
String |
getAttributeInfoFromParam()
Indicates how the DmcAttributeInfo should be extracted from one of the
ruleParam values\n associated with a RuleCategory.
|
String |
getClassInfoFromParam()
Indicates how the DmcClassInfo should be extracted from one of the
ruleParam values\n associated with a RuleCategory.
|
RuleCategoryDMO |
getDMO() |
DefinitionName |
getName()
The name attribute is used to store a single string token that represents
a unique name\n for an object with the set of definitions of which it is a
part.
|
DefinitionName |
getObjectName() |
DmcAttribute<?> |
getObjectNameAttribute() |
OperationalContextEnum |
getOpContext()
Indicates the operational context for some component e.g.
|
Integer |
getRuleCategoryID()
The numeric ID of a rule category.
|
Iterator<String> |
getRuleImport()
An import required for generation of the rule collection associated with\n
a RuleCategory.
|
int |
getRuleImportSize() |
Iterator<RuleParam> |
getRuleParam()
A parameter to be supplied to a rule when it is executed.
|
int |
getRuleParamSize() |
RuleTypeEnum |
getRuleType()
The type of a rule.
|
void |
setAttributeInfoFromParam(Object value)
Sets attributeInfoFromParam to the specified value.
|
void |
setClassInfoFromParam(Object value)
Sets classInfoFromParam to the specified value.
|
void |
setDmcObject(DmcObject obj)
Sets the core object.
|
void |
setName(Object value)
Sets name to the specified value.
|
void |
setOpContext(Object value)
Sets opContext to the specified value.
|
void |
setRuleCategoryID(Object value)
Sets ruleCategoryID to the specified value.
|
void |
setRuleType(Object value)
Sets ruleType to the specified value.
|
getDmcObjectaddRelatedToConcept, getRelatedToConcept, getRelatedToConceptSizeequals, getFullDotName, getNameOfModuleWhereThisCameFromaddComment, addDescription, addExample, addNvp, addOptimize, addQuestion, addSkip, addTags, getComment, getCommentSize, getDefinedIn, getDescription, getDescriptionSize, getDescriptionWithNewlines, getDmoFromModule, getDotName, getExample, getExampleSize, getFile, getHint, getLineNumber, getNvp, getNvpSize, getObsolete, getOptimize, getOptimizeSize, getQuestion, getQuestionSize, getRelationship, getSearchable, getSkip, getSkipSize, getSortName, getTags, getTagsSize, getVersion, getWhy, setDefinedIn, setDmoFromModule, setDotName, setFile, setHint, setLineNumber, setObsolete, setRelationship, setSearchable, setSortName, setVersion, setWhyaddAux, applyModifier, equals, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getObjectClass, getReferringObjects, getReferringObjectsViaAttribute, hasAux, isReferenced, referenceCount, removeAux, resolveReferences, resolveReferences, serializeIt, toJSON, toOIF, toOIF, toPersistentOIF, toString, youAreDeletedgetDeleted, getModifier, setDeleted, setModifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDefinedIn, getDotName, toOIFequalsprotected RuleCategoryDMW()
protected RuleCategoryDMW(DmcObject obj)
protected RuleCategoryDMW(DmcObject obj, ClassDefinition cd)
protected RuleCategoryDMW(ClassDefinition cd)
protected RuleCategoryDMW(String mn) throws DmcValueException
DmcValueExceptionpublic void setDmcObject(DmcObject obj)
DmcContainersetDmcObject in interface DmcContainerIFsetDmcObject in class DmsDefinitionobj - The core object.public RuleCategoryDMO getDMO()
getDMO in class DmsDefinitionDMWpublic DefinitionName getName()
getName in interface DmcDefinitionIFgetName in class DmsDefinitionDMWpublic void setName(Object value) throws DmcValueException
setName in class DmsDefinitionDMWvalue - A value compatible with DmcTypeDefinitionNameSVDmcValueException - if the value is incorrectpublic OperationalContextEnum getOpContext()
public void setOpContext(Object value) throws DmcValueException
value - A value compatible with DmcTypeOperationalContextEnumSVDmcValueException - if the value is incorrectpublic Integer getRuleCategoryID()
public void setRuleCategoryID(Object value) throws DmcValueException
value - A value compatible with DmcTypeIntegerSVDmcValueException - if the value is incorrectpublic RuleTypeEnum getRuleType()
public void setRuleType(Object value) throws DmcValueException
value - A value compatible with DmcTypeRuleTypeEnumSVDmcValueException - if the value is incorrectpublic Iterator<RuleParam> getRuleParam()
public void addRuleParam(Object value) throws DmcValueException
value - A value compatible with DmcTypeRuleParamMVDmcValueException - if the value is incorrectpublic int getRuleParamSize()
public String getClassInfoFromParam()
public void setClassInfoFromParam(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic Iterator<String> getRuleImport()
public void addRuleImport(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringMVDmcValueException - if the value is incorrectpublic int getRuleImportSize()
public String getAttributeInfoFromParam()
public void setAttributeInfoFromParam(Object value) throws DmcValueException
value - A value compatible with DmcTypeStringSVDmcValueException - if the value is incorrectpublic DefinitionName getObjectName()
getObjectName in interface DmcNamedObjectIFgetObjectName in class DmsDefinitionpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFgetObjectNameAttribute in class DmsDefinitionDMWCopyright © 2023. All rights reserved.