public class CheckAttributesBasedOnValueRuleDataDMO extends RuleDataDMO implements DmcNamedObjectIF, Serializable
\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 dmogenerator utility and shouldn't be alterred manually! Generated from: org.dmd.dms.util.DmoFormatter.dumpDMO(DmoFormatter.java:134)
| Modifier and Type | Field and Description |
|---|---|
static String |
constructionClassName |
__objectClass, attributes| Modifier | Constructor and Description |
|---|---|
|
CheckAttributesBasedOnValueRuleDataDMO() |
|
CheckAttributesBasedOnValueRuleDataDMO(DmcTypeModifierMV mods) |
protected |
CheckAttributesBasedOnValueRuleDataDMO(String oc) |
| Modifier and Type | Method and Description |
|---|---|
DmcAttribute<?> |
addBasedOnValue(Object value)
Adds another basedOnValue value.
|
DmcAttribute<?> |
addBasedOnValue(String value)
Adds another basedOnValue to the specified value.
|
DmcAttribute<?> |
addDescription(Object value)
Adds another description value.
|
DmcAttribute<?> |
addDescription(String value)
Adds another description to the specified value.
|
DmcAttribute<?> |
addExcludeThisAttribute(AttributeDefinitionDMO value)
Adds another excludeThisAttribute to the specified value.
|
DmcAttribute<?> |
addExcludeThisAttribute(Object value)
Adds another excludeThisAttribute value.
|
DmcAttribute<?> |
addIncludeThisAttribute(AttributeDefinitionDMO value)
Adds another includeThisAttribute to the specified value.
|
DmcAttribute<?> |
addIncludeThisAttribute(Object value)
Adds another includeThisAttribute value.
|
boolean |
basedOnValueContains(String value) |
DmcAttribute<?> |
delBasedOnValue(Object value)
Deletes a basedOnValue value.
|
DmcAttribute<?> |
delBasedOnValue(String value)
Deletes a basedOnValue from the specified value.
|
DmcAttribute<?> |
delDescription(Object value)
Deletes a description value.
|
DmcAttribute<?> |
delDescription(String value)
Deletes a description from the specified value.
|
DmcAttribute<?> |
delExcludeThisAttribute(Object value)
Deletes a excludeThisAttribute value.
|
DmcAttribute<?> |
delIncludeThisAttribute(Object value)
Deletes a includeThisAttribute value.
|
boolean |
descriptionContains(String value) |
boolean |
equals(Object obj)
This method performs an attribute by attribute comparison of this
object with the specified object and returns true if they are equal.
|
AttributeDefinitionREF |
getBasedOnAttribute() |
AttributeDefinitionREF |
getBasedOnAttributeREF() |
Iterator<String> |
getBasedOnValue() |
int |
getBasedOnValueSize() |
Iterator<String> |
getDescription()
The description attribute is used to provide descriptive\n documentation
for schema related definitions.
|
int |
getDescriptionSize() |
Iterator<AttributeDefinitionREF> |
getExcludeThisAttribute() |
Iterator<AttributeDefinitionREF> |
getExcludeThisAttributeREFs() |
int |
getExcludeThisAttributeSize() |
Iterator<AttributeDefinitionREF> |
getIncludeThisAttribute() |
Iterator<AttributeDefinitionREF> |
getIncludeThisAttributeREFs() |
int |
getIncludeThisAttributeSize() |
CheckAttributesBasedOnValueRuleDataDMO |
getModificationRecorder() |
CheckAttributesBasedOnValueRuleDataDMO |
getNew()
Auto-generated derived classes override this to return an empty instance
of themselves.
|
String |
getNthBasedOnValue(int i) |
String |
getNthDescription(int i) |
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.
|
CheckAttributesBasedOnValueRuleDataDMO |
getSlice(DmcSliceInfo info)
Auto-generated derived classes override this to return an instance of themselves
with just the specified slice of attributes.
|
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(AttributeDefinitionDMO value)
Sets basedOnAttribute to the specified value.
|
void |
setBasedOnAttribute(Object value)
Sets 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, getDescriptionWithNewlines, getFile, getIdToAttrInfo, getImmediateHalt, getLineNumber, getMsgKey, getMsgParam, getStringToAttrInfo, setApplyToClass, setDefinedIn, setFile, setImmediateHalt, setLineNumber, setMsgKeyadd, add, addAux, addAux, addBackref, allowsAttribute, applyModifier, clearReferenceInfo, cloneIt, del, del, delFromEmptyAttribute, deserializeIt, get, get, get, getAdditionalAttributes, getAttributeInfo, getAttributeInfo, getAttributeIterator, getAttributeNames, getAttributes, getAttributeValidators, getBackref, getBackRefs, getConstructionClass, getConstructionClassInfo, getConstructionClassName, getContainer, getDataType, getFullClassName, getLastValue, getModifier, getObjectClass, getObjectValidators, getReferringObjects, getReferringObjectsViaAttribute, getStagingObject, hasAux, hasValue, isModrec, isReferenced, isStaging, modrec, nth, nthNullFromEmptyAttribute, numberOfAttributes, populateSlice, referenceCount, rem, rem, removeAux, removeBackref, resolveReferences, resolveReferences, resolveReferences, resolveReferencesExceptClass, resolveReferencesExceptClass, serializeIt, set, set, setContainer, setLastValue, setModifier, shallowCopy, staging, supportsBackrefTracking, toCompactJSON, toCompactJSON, toJSON, toJSON, toJSON, toOIF, toOIF, toOIFNoPadding, toPersistentOIF, toPersistentOIF, toString, youAreDeletedpublic static final String constructionClassName
public CheckAttributesBasedOnValueRuleDataDMO()
protected CheckAttributesBasedOnValueRuleDataDMO(String oc)
public CheckAttributesBasedOnValueRuleDataDMO(DmcTypeModifierMV mods)
public CheckAttributesBasedOnValueRuleDataDMO getNew()
DmcObjectgetNew in class RuleDataDMOpublic CheckAttributesBasedOnValueRuleDataDMO getSlice(DmcSliceInfo info)
DmcObjectgetSlice in class RuleDataDMOinfo - the slice infopublic CheckAttributesBasedOnValueRuleDataDMO getModificationRecorder()
public RuleName getObjectName()
getObjectName in interface DmcNamedObjectIFgetObjectName in class RuleDataDMOpublic DmcAttribute<?> getObjectNameAttribute()
getObjectNameAttribute in interface DmcNamedObjectIFgetObjectNameAttribute in class RuleDataDMOpublic boolean equals(Object obj)
DmcObjectequals in interface DmcNamedObjectIFequals in class DmcObjectobj - The comparison object.public Iterator<String> getDescription()
RuleDataDMOgetDescription in class RuleDataDMOpublic String getNthDescription(int i)
i - the indexpublic DmcAttribute<?> addDescription(String value)
value - Stringpublic boolean descriptionContains(String value)
value - Stringpublic DmcAttribute<?> addDescription(Object value) throws DmcValueException
addDescription in class RuleDataDMOvalue - A value compatible with StringDmcValueException - if value is not correctpublic int getDescriptionSize()
public DmcAttribute<?> delDescription(Object value) throws DmcValueException
value - The String to be deleted from set of attribute values.DmcValueException - if the value is incorrectpublic DmcAttribute<?> delDescription(String value)
value - Stringpublic void remDescription()
public Iterator<AttributeDefinitionREF> getExcludeThisAttribute()
public Iterator<AttributeDefinitionREF> getExcludeThisAttributeREFs()
public DmcAttribute<?> addExcludeThisAttribute(AttributeDefinitionDMO value)
value - AttributeDefinitionpublic DmcAttribute<?> addExcludeThisAttribute(Object value) throws DmcValueException
value - A value compatible with AttributeDefinitionDmcValueException - if value is not correctpublic int getExcludeThisAttributeSize()
public DmcAttribute<?> delExcludeThisAttribute(Object value)
value - The AttributeDefinition to be deleted from set of attribute values.public void remExcludeThisAttribute()
public Iterator<AttributeDefinitionREF> getIncludeThisAttribute()
public Iterator<AttributeDefinitionREF> getIncludeThisAttributeREFs()
public DmcAttribute<?> addIncludeThisAttribute(AttributeDefinitionDMO value)
value - AttributeDefinitionpublic DmcAttribute<?> addIncludeThisAttribute(Object value) throws DmcValueException
value - A value compatible with AttributeDefinitionDmcValueException - if value is not correctpublic int getIncludeThisAttributeSize()
public DmcAttribute<?> delIncludeThisAttribute(Object value)
value - The AttributeDefinition to be deleted from set of attribute values.public void remIncludeThisAttribute()
public RuleName getRuleName()
RuleDataDMOgetRuleName in class RuleDataDMOpublic void setRuleName(RuleName value)
value - RuleNamepublic void setRuleName(Object value) throws DmcValueException
setRuleName in class RuleDataDMOvalue - A value compatible with DmcTypeRuleNameSVDmcValueException - if value is not correctpublic void remRuleName()
public String getRuleTitle()
RuleDataDMOgetRuleTitle in class RuleDataDMOpublic void setRuleTitle(String value)
value - Stringpublic void setRuleTitle(Object value) throws DmcValueException
setRuleTitle in class RuleDataDMOvalue - A value compatible with DmcTypeStringSVDmcValueException - if value is not correctpublic void remRuleTitle()
public AttributeDefinitionREF getBasedOnAttribute()
public AttributeDefinitionREF getBasedOnAttributeREF()
public void setBasedOnAttribute(AttributeDefinitionDMO value)
value - AttributeDefinitionDMOpublic void setBasedOnAttribute(Object value) throws DmcValueException
value - A value compatible with DmcTypeAttributeDefinitionREFSVDmcValueException - if value is not correctpublic void remBasedOnAttribute()
public String getNthBasedOnValue(int i)
i - the indexpublic DmcAttribute<?> addBasedOnValue(String value)
value - Stringpublic boolean basedOnValueContains(String value)
value - Stringpublic DmcAttribute<?> addBasedOnValue(Object value) throws DmcValueException
value - A value compatible with StringDmcValueException - if value is not correctpublic int getBasedOnValueSize()
public DmcAttribute<?> delBasedOnValue(Object value) throws DmcValueException
value - The String to be deleted from set of attribute values.DmcValueException - if the value is incorrectpublic DmcAttribute<?> delBasedOnValue(String value)
value - Stringpublic void remBasedOnValue()
Copyright © 2023. All rights reserved.