

Public Member Functions | |
| DictionaryTreatment (Responsibility resp) | |
| String | getDescription () |
Definition at line 9 of file DictionaryTreatment.java.
| org.andromda.cartridges.arc.DictionaryTreatment.DictionaryTreatment | ( | Responsibility | resp | ) |
Definition at line 10 of file DictionaryTreatment.java.
References org.andromda.cartridges.arc.Treatment.resp.
| String org.andromda.cartridges.arc.DictionaryTreatment.getDescription | ( | ) | [virtual] |
Implements org.andromda.cartridges.arc.Treatment.
Definition at line 13 of file DictionaryTreatment.java.
References org.andromda.cartridges.arc.Treatment.resp.
00013 { 00014 String desc=""; 00015 if(resp instanceof KeyResponsibility) { 00016 desc="A dictionary can be used to determine if a key is valid."; 00017 } 00018 else if(resp instanceof CardinalityResponsibility) { 00019 desc="One dictionary for the class '"+((CardinalityResponsibility)resp).getElementClassName()+"' can be used to count the number of instances associated with the class'"+((CardinalityResponsibility)resp).getModelElementName()+"'."; 00020 } 00021 else if(resp instanceof ConstraintResponsibility) { 00022 desc="The constraint can be handled using a dictionary in the domain layer."; 00023 } 00024 return desc; 00025 }
1.4.7