public class RuleDefinitionDMW extends DmsDefinition implements DmcDefinitionIF
\n RuleDefinitions will result in the generation of ClassDefinitions that define the \n DMOs that will carry the parameters associated with the rule and the expectation\n that you will define an implementation class for the rule that derives from\n an abstract BaseImpl (base implementation) of the rule that provides common\n rule infrastructure and appropriate abstract methods that must be filled in.\n
\n RuleDefinitions and ClassDefinitions share the same dmdID space and the IDs must\n be unique. This is because each RuleDefinition results in the creation of a \n ClassDefinition for the DMO part of the rule that carries the rule parameters.
metanamecore| Modifier | Constructor and Description |
|---|---|
protected |
RuleDefinitionDMW() |
protected |
RuleDefinitionDMW(ClassDefinition cd) |
protected |
RuleDefinitionDMW(DmcObject obj) |
protected |
RuleDefinitionDMW(DmcObject obj,
ClassDefinition cd) |
protected |
RuleDefinitionDMW(String mn) |
| Modifier and Type | Method and Description |
|---|---|
DmcAttribute<?> |
addMay(AttributeDefinition value)
Adds another may value.
|
DmcAttribute<?> |
addMust(AttributeDefinition value)
Adds another must value.
|
DmcAttribute<?> |
addRuleCategory(RuleCategory value)
Adds another ruleCategory value.
|
Dependency |
getDependency()
A reference to a single Dependency.
|
Integer |
getDmdID()
The dmdID attribute is used to store a unique Dark Matter Definition ID
for attributes.\n This is used as part of the serialization mechanisms
built into Dark Matter Objects.
|
RuleDefinitionDMO |
getDMO() |
Boolean |
getIsExtensible()
Indicates whether or not the ClassDefinition associated with a
RuleDefinition has classType EXTENSIBLE\n or not.
|
AttributeDefinitionIterableDMW |
getMay()
Indicates the set of attributes that an instance of a class MAY\n have.
|
int |
getMaySize() |
AttributeDefinitionIterableDMW |
getMust()
Indicates the set of attributes that an instance of a class MUST have.
|
int |
getMustSize() |
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() |
RuleCategoryIterableDMW |
getRuleCategory()
The category of a rule.
|
int |
getRuleCategorySize() |
void |
setDependency(Dependency value)
Sets dependency to the specified value.
|
void |
setDmcObject(DmcObject obj)
Sets the core object.
|
void |
setDmdID(Object value)
Sets dmdID to the specified value.
|
void |
setIsExtensible(Object value)
Sets isExtensible to the specified value.
|
void |
setName(Object value)
Sets name 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 RuleDefinitionDMW()
protected RuleDefinitionDMW(DmcObject obj)
protected RuleDefinitionDMW(DmcObject obj, ClassDefinition cd)
protected RuleDefinitionDMW(ClassDefinition cd)
protected RuleDefinitionDMW(String mn) throws DmcValueException
DmcValueExceptionpublic void setDmcObject(DmcObject obj)
DmcContainersetDmcObject in interface DmcContainerIFsetDmcObject in class DmsDefinitionobj - The core object.public RuleDefinitionDMO 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 RuleCategoryIterableDMW getRuleCategory()
public DmcAttribute<?> addRuleCategory(RuleCategory value) throws DmcValueException
value - A value compatible with RuleCategoryDmcValueException - if the value is incorrectpublic int getRuleCategorySize()
public Integer getDmdID()
public void setDmdID(Object value) throws DmcValueException
value - A value compatible with DmcTypeIntegerSVDmcValueException - if the value is incorrectpublic AttributeDefinitionIterableDMW getMust()
public DmcAttribute<?> addMust(AttributeDefinition value) throws DmcValueException
value - A value compatible with AttributeDefinitionDmcValueException - if the value is incorrectpublic int getMustSize()
public AttributeDefinitionIterableDMW getMay()
public DmcAttribute<?> addMay(AttributeDefinition value) throws DmcValueException
value - A value compatible with AttributeDefinitionDmcValueException - if the value is incorrectpublic int getMaySize()
public Boolean getIsExtensible()
public void setIsExtensible(Object value) throws DmcValueException
value - A value compatible with DmcTypeBooleanSVDmcValueException - if the value is incorrectpublic Dependency getDependency()
public void setDependency(Dependency value) throws DmcValueException
value - A value compatible with DependencyDmcValueException - 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.