public class ReferencedAttributeTypeRuleDataDMW extends RuleData implements DmcNamedObjectIF
\n ReferencedAttributeTypeRuleData\n ruleName dmvNRRApplyToAttribute\n ruleTitle The applyToAttribute attribute in a NumericRangeRuleData instance must refer to an Integer, Long, Float or Double attribute\n applyToAttribute applyToAttribute\n applyToClass NumericRangeRuleData\n allowedType Integer\n allowedType Long\n allowedType Float\n allowedType Double\n\n In this case, we're restricting the applyToAttribute to be a numeric type, either Integer, Long Float or Double.\n
\n You can also restrict the valueType of an attribute reference, for instance:\n
\n
ReferencedAttributeTypeRuleData\n ruleName dmvLhs\n ruleTitle
The lhs attribute must be a single valued Integer, Long, Float or
Double\n applyToAttribute lhs\n applyToClass
RelatedNumbersRuleData\n allowedType Integer\n allowedType
Long\n allowedType Float\n allowedType Double\n
allowedValueType SINGLE\n \n Here, we're indicating that the lhs
(left hand side) attribute must be single valued.
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 |
|---|---|
|
ReferencedAttributeTypeRuleDataDMW() |
|
ReferencedAttributeTypeRuleDataDMW(DmcTypeModifierMV mods) |
|
ReferencedAttributeTypeRuleDataDMW(ReferencedAttributeTypeRuleDataDMO obj) |
protected |
ReferencedAttributeTypeRuleDataDMW(ReferencedAttributeTypeRuleDataDMO obj,
ClassDefinition cd) |
| Modifier and Type | Method and Description |
|---|---|
DmcAttribute<?> |
addAllowedType(TypeDefinition value)
Adds another allowedType value.
|
void |
addDescription(Object value)
Adds another description value.
|
void |
addDescription(String value)
Adds another description value.
|
ReferencedAttributeTypeRuleDataDMW |
cloneIt() |
void |
delAllowedType(TypeDefinition value)
Deletes a allowedType value.
|
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<TypeDefinition> |
getAllowedTypeCopy() |
boolean |
getAllowedTypeHasValue() |
boolean |
getAllowedTypeIsEmpty() |
TypeDefinitionIterableDMW |
getAllowedTypeIterable() |
int |
getAllowedTypeSize() |
ValueTypeEnum |
getAllowedValueType() |
AttributeDefinition |
getApplyToAttribute() |
ArrayList<String> |
getDescriptionCopy() |
boolean |
getDescriptionHasValue() |
boolean |
getDescriptionIsEmpty() |
StringIterableDMW |
getDescriptionIterable() |
int |
getDescriptionSize() |
ReferencedAttributeTypeRuleDataDMO |
getDMO() |
ReferencedAttributeTypeRuleDataDMW |
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 |
remAllowedType()
Removes the allowedType attribute value.
|
void |
remAllowedValueType()
Removes the allowedValueType attribute value.
|
void |
remApplyToAttribute()
Removes the applyToAttribute attribute value.
|
void |
remDescription()
Removes the description attribute value.
|
void |
remRuleName()
Removes the ruleName attribute value.
|
void |
remRuleTitle()
Removes the ruleTitle attribute value.
|
void |
setAllowedValueType(Object value)
Sets allowedValueType to the specified value.
|
void |
setAllowedValueType(ValueTypeEnum value)
Sets allowedValueType to the specified value.
|
void |
setApplyToAttribute(AttributeDefinition value)
Sets the applyToAttribute to the specified value.
|
void |
setApplyToAttribute(Object value)
Sets the applyToAttribute 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 ReferencedAttributeTypeRuleDataDMW()
public ReferencedAttributeTypeRuleDataDMW(DmcTypeModifierMV mods)
public ReferencedAttributeTypeRuleDataDMW(ReferencedAttributeTypeRuleDataDMO obj)
protected ReferencedAttributeTypeRuleDataDMW(ReferencedAttributeTypeRuleDataDMO obj, ClassDefinition cd)
public ReferencedAttributeTypeRuleDataDMW getModificationRecorder()
public ReferencedAttributeTypeRuleDataDMW cloneIt()
public ReferencedAttributeTypeRuleDataDMO 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 getAllowedTypeSize()
public boolean getAllowedTypeIsEmpty()
public boolean getAllowedTypeHasValue()
public TypeDefinitionIterableDMW getAllowedTypeIterable()
public DmcAttribute<?> addAllowedType(TypeDefinition value)
value - A value compatible with TypeDefinitionpublic void delAllowedType(TypeDefinition value)
value - The TypeDefinition to be deleted from set of attribute values.public ArrayList<TypeDefinition> getAllowedTypeCopy()
public void remAllowedType()
public ValueTypeEnum getAllowedValueType()
public void setAllowedValueType(Object value) throws DmcValueException
value - A value compatible with DmcTypeValueTypeEnumDmcValueExceptionpublic void setAllowedValueType(ValueTypeEnum value)
value - ValueTypeEnumpublic void remAllowedValueType()
public AttributeDefinition getApplyToAttribute()
public void setApplyToAttribute(AttributeDefinition value)
value - A value compatible with AttributeDefinitionREFpublic void setApplyToAttribute(Object value) throws DmcValueException
value - A value compatible with AttributeDefinitionREFDmcValueException - is the value is incorrectpublic void remApplyToAttribute()
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 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.