public class CheckAttributesBasedOnValueRuleDataDMW extends RuleData implements DmcNamedObjectIF
\n CheckAttributesBasedOnValueRuleData\n ruleName
dmvNoMustInExtensible\n ruleTitle If a ClassDefinition's
classType is AUXILIARY, it can't have mandatory attributes\n applyToClass
ClassDefinition\n basedOnAttribute classType\n basedOnValue
AUXILIARY\n excludeThisAttribute must\n description An
AUXILIARY class can be added to an object dynamically and\n we don't
allow mandatory attributes in such classes.\n \n If the
basedOnAttribute doesn't exist in the object being validated, the rule
does nothing.
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 |
|---|---|
|
CheckAttributesBasedOnValueRuleDataDMW() |
|
CheckAttributesBasedOnValueRuleDataDMW(CheckAttributesBasedOnValueRuleDataDMO obj) |
protected |
CheckAttributesBasedOnValueRuleDataDMW(CheckAttributesBasedOnValueRuleDataDMO obj,
ClassDefinition cd) |
|
CheckAttributesBasedOnValueRuleDataDMW(DmcTypeModifierMV mods) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBasedOnValue(Object value)
Adds another basedOnValue value.
|
void |
addBasedOnValue(String value)
Adds another basedOnValue value.
|
void |
addDescription(Object value)
Adds another description value.
|
void |
addDescription(String value)
Adds another description value.
|
DmcAttribute<?> |
addExcludeThisAttribute(AttributeDefinition value)
Adds another excludeThisAttribute value.
|
DmcAttribute<?> |
addIncludeThisAttribute(AttributeDefinition value)
Adds another includeThisAttribute value.
|
boolean |
basedOnValueContains(String value) |
CheckAttributesBasedOnValueRuleDataDMW |
cloneIt() |
void |
delBasedOnValue(Object value)
Deletes a basedOnValue value.
|
void |
delBasedOnValue(String value)
Deletes a basedOnValue value.
|
void |
delDescription(Object value)
Deletes a description value.
|
void |
delDescription(String value)
Deletes a description value.
|
void |
delExcludeThisAttribute(AttributeDefinition value)
Deletes a excludeThisAttribute value.
|
void |
delIncludeThisAttribute(AttributeDefinition value)
Deletes a includeThisAttribute 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.
|
AttributeDefinition |
getBasedOnAttribute() |
HashSet<String> |
getBasedOnValueCopy() |
boolean |
getBasedOnValueHasValue() |
boolean |
getBasedOnValueIsEmpty() |
StringIterableDMW |
getBasedOnValueIterable() |
int |
getBasedOnValueSize() |
ArrayList<String> |
getDescriptionCopy() |
boolean |
getDescriptionHasValue() |
boolean |
getDescriptionIsEmpty() |
StringIterableDMW |
getDescriptionIterable() |
int |
getDescriptionSize() |
CheckAttributesBasedOnValueRuleDataDMO |
getDMO() |
ArrayList<AttributeDefinition> |
getExcludeThisAttributeCopy() |
boolean |
getExcludeThisAttributeHasValue() |
boolean |
getExcludeThisAttributeIsEmpty() |
AttributeDefinitionIterableDMW |
getExcludeThisAttributeIterable() |
int |
getExcludeThisAttributeSize() |
ArrayList<AttributeDefinition> |
getIncludeThisAttributeCopy() |
boolean |
getIncludeThisAttributeHasValue() |
boolean |
getIncludeThisAttributeIsEmpty() |
AttributeDefinitionIterableDMW |
getIncludeThisAttributeIterable() |
int |
getIncludeThisAttributeSize() |
CheckAttributesBasedOnValueRuleDataDMW |
getModificationRecorder() |
RuleName |
getObjectName() |
DmcAttribute<?> |
getObjectNameAttribute() |
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 |
remBasedOnAttribute()
Removes the basedOnAttribute attribute value.
|
void |
remBasedOnValue()
Removes the basedOnValue attribute value.
|
void |
remDescription()
Removes the description attribute value.
|
void |
remExcludeThisAttribute()
Removes the excludeThisAttribute attribute value.
|
void |
remIncludeThisAttribute()
Removes the includeThisAttribute attribute value.
|
void |
remRuleName()
Removes the ruleName attribute value.
|
void |
remRuleTitle()
Removes the ruleTitle attribute value.
|
void |
setBasedOnAttribute(AttributeDefinition value)
Sets the basedOnAttribute to the specified value.
|
void |
setBasedOnAttribute(Object value)
Sets the basedOnAttribute 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 CheckAttributesBasedOnValueRuleDataDMW()
public CheckAttributesBasedOnValueRuleDataDMW(DmcTypeModifierMV mods)
public CheckAttributesBasedOnValueRuleDataDMW(CheckAttributesBasedOnValueRuleDataDMO obj)
protected CheckAttributesBasedOnValueRuleDataDMW(CheckAttributesBasedOnValueRuleDataDMO obj, ClassDefinition cd)
public CheckAttributesBasedOnValueRuleDataDMW getModificationRecorder()
public CheckAttributesBasedOnValueRuleDataDMW cloneIt()
public CheckAttributesBasedOnValueRuleDataDMO 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 AttributeDefinition getBasedOnAttribute()
public void setBasedOnAttribute(AttributeDefinition value)
value - A value compatible with AttributeDefinitionREFpublic void setBasedOnAttribute(Object value) throws DmcValueException
value - A value compatible with AttributeDefinitionREFDmcValueException - is the value is incorrectpublic void remBasedOnAttribute()
public int getBasedOnValueSize()
public boolean getBasedOnValueIsEmpty()
public boolean getBasedOnValueHasValue()
public StringIterableDMW getBasedOnValueIterable()
public void addBasedOnValue(Object value) throws DmcValueException
value - A value compatible with StringDmcValueException - if value is incorrectpublic void addBasedOnValue(String value)
value - A value compatible with Stringpublic boolean basedOnValueContains(String value)
value - A value compatible with Stringpublic HashSet<String> getBasedOnValueCopy()
public void delBasedOnValue(Object value) throws DmcValueException
value - The String to be deleted from set of attribute values.DmcValueException - if value is incorrectpublic void delBasedOnValue(String value)
value - The String to be deleted from set of attribute values.public void remBasedOnValue()
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 int getExcludeThisAttributeSize()
public boolean getExcludeThisAttributeIsEmpty()
public boolean getExcludeThisAttributeHasValue()
public AttributeDefinitionIterableDMW getExcludeThisAttributeIterable()
public DmcAttribute<?> addExcludeThisAttribute(AttributeDefinition value)
value - A value compatible with AttributeDefinitionpublic void delExcludeThisAttribute(AttributeDefinition value)
value - The AttributeDefinition to be deleted from set of attribute values.public ArrayList<AttributeDefinition> getExcludeThisAttributeCopy()
public void remExcludeThisAttribute()
public int getIncludeThisAttributeSize()
public boolean getIncludeThisAttributeIsEmpty()
public boolean getIncludeThisAttributeHasValue()
public AttributeDefinitionIterableDMW getIncludeThisAttributeIterable()
public DmcAttribute<?> addIncludeThisAttribute(AttributeDefinition value)
value - A value compatible with AttributeDefinitionpublic void delIncludeThisAttribute(AttributeDefinition value)
value - The AttributeDefinition to be deleted from set of attribute values.public ArrayList<AttributeDefinition> getIncludeThisAttributeCopy()
public void remIncludeThisAttribute()
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.