public class RelatedNumbersRuleDataDMW extends RuleData implements DmcNamedObjectIF
\n RelatedNumbersRuleData\n ruleName dmvHeightGirth\n ruleTitle Your height must exceed your girth.\n applyToClass Person\n lhs height\n rhs girth\n numericRelation GT\n description If your girth exceeds your height, you're in trouble!\n\n The rule will only test the relationship if both attributes exist; if not,\n that's okay - the rule will pass.\n
\n It's a good rule of thumb to indicate the relationship you expect in the\n title of the rule since this is what will be returned in the case that \n the relationship check fails.\n
\n NOTE: this rule works by implicitly converting the values of the attributes\n to type Double in order to be able to compare apples to apples. However,\n if you are dealing with large numeric values you may run into issues.
Generated from the dmv schema at version 0.1
This code was auto-generated by the dmggenerator utility and shouldn't be alterred manually! Generated from: org.dmd.dmg.generators.BaseDMWGenerator.dumpWrapper(BaseDMWGenerator.java:488)
core| Modifier | Constructor and Description |
|---|---|
|
RelatedNumbersRuleDataDMW() |
|
RelatedNumbersRuleDataDMW(DmcTypeModifierMV mods) |
|
RelatedNumbersRuleDataDMW(RelatedNumbersRuleDataDMO obj) |
protected |
RelatedNumbersRuleDataDMW(RelatedNumbersRuleDataDMO obj,
ClassDefinition cd) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDescription(Object value)
Adds another description value.
|
void |
addDescription(String value)
Adds another description value.
|
RelatedNumbersRuleDataDMW |
cloneIt() |
void |
delDescription(Object value)
Deletes a description value.
|
void |
delDescription(String value)
Deletes a description value.
|
boolean |
descriptionContains(String value) |
boolean |
equals(Object obj)
This method should check the type of the obj param and compare the name
of this object with the one passed as argument.
|
ArrayList<String> |
getDescriptionCopy() |
boolean |
getDescriptionHasValue() |
boolean |
getDescriptionIsEmpty() |
StringIterableDMW |
getDescriptionIterable() |
int |
getDescriptionSize() |
RelatedNumbersRuleDataDMO |
getDMO() |
AttributeDefinition |
getLhs() |
RelatedNumbersRuleDataDMW |
getModificationRecorder() |
NumericRelationEnum |
getNumericRelation() |
RuleName |
getObjectName() |
DmcAttribute<?> |
getObjectNameAttribute() |
AttributeDefinition |
getRhs() |
RuleName |
getRuleName()
The ruleName attribute is used to store a single camelCase format name for
a rule.\n The name starts with a single letter and can be followed by a
mix of letters and numbers.
|
String |
getRuleTitle()
The title of a rule.
|
int |
hashCode() |
void |
remDescription()
Removes the description attribute value.
|
void |
remLhs()
Removes the lhs attribute value.
|
void |
remNumericRelation()
Removes the numericRelation attribute value.
|
void |
remRhs()
Removes the rhs attribute value.
|
void |
remRuleName()
Removes the ruleName attribute value.
|
void |
remRuleTitle()
Removes the ruleTitle attribute value.
|
void |
setLhs(AttributeDefinition value)
Sets the lhs to the specified value.
|
void |
setLhs(Object value)
Sets the lhs to the specified value.
|
void |
setNumericRelation(NumericRelationEnum value)
Sets numericRelation to the specified value.
|
void |
setNumericRelation(Object value)
Sets numericRelation to the specified value.
|
void |
setRhs(AttributeDefinition value)
Sets the rhs to the specified value.
|
void |
setRhs(Object value)
Sets the rhs to the specified value.
|
void |
setRuleName(Object value)
Sets ruleName to the specified value.
|
void |
setRuleName(RuleName value)
Sets ruleName to the specified value.
|
void |
setRuleTitle(Object value)
Sets ruleTitle to the specified value.
|
void |
setRuleTitle(String value)
Sets ruleTitle to the specified value.
|
addMsgParam, getApplyToClass, getDefinedIn, getDescription, getDescriptionWithNewlines, getFile, getImmediateHalt, getLineNumber, getMsgKey, getMsgParam, getMsgParamSize, setApplyToClass, setDefinedIn, setDmcObject, setFile, setImmediateHalt, setLineNumber, setMsgKeyaddAux, applyModifier, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getDmcObject, getObjectClass, getReferringObjects, getReferringObjectsViaAttribute, hasAux, isReferenced, referenceCount, removeAux, resolveReferences, resolveReferences, serializeIt, toJSON, toOIF, toOIF, toPersistentOIF, toString, youAreDeletedgetDeleted, getModifier, setDeleted, setModifierpublic RelatedNumbersRuleDataDMW()
public RelatedNumbersRuleDataDMW(DmcTypeModifierMV mods)
public RelatedNumbersRuleDataDMW(RelatedNumbersRuleDataDMO obj)
protected RelatedNumbersRuleDataDMW(RelatedNumbersRuleDataDMO obj, ClassDefinition cd)
public RelatedNumbersRuleDataDMW getModificationRecorder()
public RelatedNumbersRuleDataDMW cloneIt()
public RelatedNumbersRuleDataDMO getDMO()
getDMO in class RuleDataDMWpublic RuleName getObjectName()
getObjectName in interface DmcNamedObjectIFgetObjectName in class RuleDataDMWpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFgetObjectNameAttribute in class RuleDataDMWpublic boolean equals(Object obj)
DmcNamedObjectIFequals in interface DmcNamedObjectIFequals in class DmwWrapperobj - The comparison object.public int getDescriptionSize()
getDescriptionSize in class RuleDataDMWpublic boolean getDescriptionIsEmpty()
public boolean getDescriptionHasValue()
public StringIterableDMW getDescriptionIterable()
public void addDescription(Object value) throws DmcValueException
addDescription in class RuleDataDMWvalue - A value compatible with StringDmcValueException - if value is incorrectpublic void addDescription(String value)
value - A value compatible with Stringpublic boolean descriptionContains(String value)
value - A value compatible with Stringpublic ArrayList<String> getDescriptionCopy()
public void delDescription(Object value) throws DmcValueException
value - The String to be deleted from set of attribute values.DmcValueException - if value is incorrectpublic void delDescription(String value)
value - The String to be deleted from set of attribute values.public void remDescription()
public AttributeDefinition getLhs()
public void setLhs(AttributeDefinition value)
value - A value compatible with AttributeDefinitionREFpublic void setLhs(Object value) throws DmcValueException
value - A value compatible with AttributeDefinitionREFDmcValueException - is the value is incorrectpublic void remLhs()
public NumericRelationEnum getNumericRelation()
public void setNumericRelation(Object value) throws DmcValueException
value - A value compatible with DmcTypeNumericRelationEnumDmcValueExceptionpublic void setNumericRelation(NumericRelationEnum value)
value - NumericRelationEnumpublic void remNumericRelation()
public AttributeDefinition getRhs()
public void setRhs(AttributeDefinition value)
value - A value compatible with AttributeDefinitionREFpublic void setRhs(Object value) throws DmcValueException
value - A value compatible with AttributeDefinitionREFDmcValueException - is the value is incorrectpublic void remRhs()
public RuleName getRuleName()
RuleDataDMWgetRuleName in class RuleDataDMWpublic void setRuleName(Object value) throws DmcValueException
setRuleName in class RuleDataDMWvalue - A value compatible with DmcTypeRuleNameDmcValueException - if the value is incorrectpublic void setRuleName(RuleName value)
value - RuleNamepublic void remRuleName()
public String getRuleTitle()
RuleDataDMWgetRuleTitle in class RuleDataDMWpublic void setRuleTitle(Object value) throws DmcValueException
setRuleTitle in class RuleDataDMWvalue - A value compatible with DmcTypeStringDmcValueException - if the value is incorrectpublic void setRuleTitle(String value)
value - Stringpublic void remRuleTitle()
Copyright © 2023. All rights reserved.