

Public Member Functions | |
| Collection | getKey () |
| Collection | getAlternativeKey () |
| void | setKey (Collection key) |
| void | setAlternativeKey (Collection alternativeKey) |
| Object | get (String id) |
| void | set (String id, Object value) |
| String | getDescription () |
| void | show () |
| KeyResponsibility () | |
| KeyResponsibility (String modelElementName, Collection key, Collection alternativeKey) | |
Static Public Attributes | |
| static final String | KEY_ID = "Key" |
| static final String | ALTERNATIVE_KEY_ID = "AlternativeKey" |
Private Attributes | |
| Collection | key |
| Collection | alternativeKey |
Definition at line 9 of file KeyResponsibility.java.
| org.andromda.cartridges.arc.KeyResponsibility.KeyResponsibility | ( | ) |
Definition at line 74 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.Responsibility.setModelElement(), and org.andromda.cartridges.arc.Responsibility.setName().
00074 { 00075 setName("Key"); 00076 setModelElement("Class"); 00077 }
Here is the call graph for this function:

| org.andromda.cartridges.arc.KeyResponsibility.KeyResponsibility | ( | String | modelElementName, | |
| Collection | key, | |||
| Collection | alternativeKey | |||
| ) |
Definition at line 79 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.KeyResponsibility.setAlternativeKey(), and org.andromda.cartridges.arc.KeyResponsibility.setKey().
00079 { 00080 super("Key", "Class", modelElementName); 00081 setKey(key); 00082 setAlternativeKey(alternativeKey); 00083 }
Here is the call graph for this function:

| Object org.andromda.cartridges.arc.KeyResponsibility.get | ( | String | id | ) |
Reimplemented from org.andromda.cartridges.arc.Responsibility.
Definition at line 22 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.KeyResponsibility.ALTERNATIVE_KEY_ID, org.andromda.cartridges.arc.KeyResponsibility.getAlternativeKey(), org.andromda.cartridges.arc.KeyResponsibility.getKey(), and org.andromda.cartridges.arc.KeyResponsibility.KEY_ID.
00022 { 00023 if(id.equals(KEY_ID)) return getKey(); 00024 else if(id.equals(ALTERNATIVE_KEY_ID)) return getAlternativeKey(); 00025 else return super.get(id); 00026 }
Here is the call graph for this function:

| Collection org.andromda.cartridges.arc.KeyResponsibility.getAlternativeKey | ( | ) |
Definition at line 17 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.KeyResponsibility.alternativeKey.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.get(), org.andromda.cartridges.arc.KeyResponsibility.getDescription(), and org.andromda.cartridges.arc.KeyResponsibility.show().
00017 { return alternativeKey; }
Here is the caller graph for this function:

| String org.andromda.cartridges.arc.KeyResponsibility.getDescription | ( | ) | [virtual] |
Implements org.andromda.cartridges.arc.Responsibility.
Definition at line 34 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.KeyResponsibility.alternativeKey, org.andromda.cartridges.arc.KeyResponsibility.getAlternativeKey(), and org.andromda.cartridges.arc.KeyResponsibility.getKey().
00034 { 00035 String description=null; 00036 description="Key { "; 00037 Iterator key_iter=getKey().iterator(); 00038 while(key_iter.hasNext()) description+=key_iter.next()+", "; 00039 description=description.substring(0, description.length()-2)+" }"; 00040 if(!alternativeKey.isEmpty()) { 00041 description+=" Alternative Key { "; 00042 key_iter=getAlternativeKey().iterator(); 00043 while(key_iter.hasNext()) description+=key_iter.next()+", "; 00044 description=description.substring(0, description.length()-2)+" }"; 00045 } 00046 return description; 00047 }
Here is the call graph for this function:

| Collection org.andromda.cartridges.arc.KeyResponsibility.getKey | ( | ) |
Definition at line 16 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.KeyResponsibility.key.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.get(), org.andromda.cartridges.arc.KeyResponsibility.getDescription(), and org.andromda.cartridges.arc.KeyResponsibility.show().
00016 { return key; }
Here is the caller graph for this function:

| void org.andromda.cartridges.arc.KeyResponsibility.set | ( | String | id, | |
| Object | value | |||
| ) |
Reimplemented from org.andromda.cartridges.arc.Responsibility.
Definition at line 28 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.KeyResponsibility.ALTERNATIVE_KEY_ID, org.andromda.cartridges.arc.KeyResponsibility.KEY_ID, org.andromda.cartridges.arc.KeyResponsibility.setAlternativeKey(), and org.andromda.cartridges.arc.KeyResponsibility.setKey().
00028 { 00029 if(id.equals(KEY_ID)) setKey((Collection)value); 00030 else if(id.equals(ALTERNATIVE_KEY_ID)) setAlternativeKey((Collection)value); 00031 else super.set(id, value); 00032 }
Here is the call graph for this function:

| void org.andromda.cartridges.arc.KeyResponsibility.setAlternativeKey | ( | Collection | alternativeKey | ) |
Definition at line 20 of file KeyResponsibility.java.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.KeyResponsibility(), and org.andromda.cartridges.arc.KeyResponsibility.set().
00020 { this.alternativeKey=alternativeKey; }
Here is the caller graph for this function:

| void org.andromda.cartridges.arc.KeyResponsibility.setKey | ( | Collection | key | ) |
Definition at line 19 of file KeyResponsibility.java.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.KeyResponsibility(), and org.andromda.cartridges.arc.KeyResponsibility.set().
00019 { this.key=key; }
Here is the caller graph for this function:

| void org.andromda.cartridges.arc.KeyResponsibility.show | ( | ) |
Reimplemented from org.andromda.cartridges.arc.Responsibility.
Definition at line 50 of file KeyResponsibility.java.
References org.andromda.cartridges.arc.KeyResponsibility.getAlternativeKey(), and org.andromda.cartridges.arc.KeyResponsibility.getKey().
00050 { 00051 String tmp; 00052 Iterator key_iter; 00053 if(getKey()==null) System.out.println("key: null"); 00054 else if(getKey().isEmpty()) System.out.println("alternative key: empty"); 00055 else { 00056 tmp="key: "; 00057 key_iter=getKey().iterator(); 00058 while(key_iter.hasNext()) tmp+=key_iter.next()+", "; 00059 tmp=tmp.substring(0, tmp.length()-2); 00060 System.out.println(tmp); 00061 } 00062 if(getAlternativeKey()==null) System.out.println("alternative key: null"); 00063 else if(getAlternativeKey().isEmpty()) System.out.println("alternative key: empty"); 00064 else { 00065 tmp="alternative key: "; 00066 key_iter=getAlternativeKey().iterator(); 00067 while(key_iter.hasNext()) tmp+=key_iter.next()+", "; 00068 tmp=tmp.substring(0, tmp.length()-2); 00069 System.out.println(tmp); 00070 } 00071 super.show(); 00072 }
Here is the call graph for this function:

final String org.andromda.cartridges.arc.KeyResponsibility.ALTERNATIVE_KEY_ID = "AlternativeKey" [static] |
Definition at line 11 of file KeyResponsibility.java.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.get(), and org.andromda.cartridges.arc.KeyResponsibility.set().
Collection org.andromda.cartridges.arc.KeyResponsibility.alternativeKey [private] |
Definition at line 14 of file KeyResponsibility.java.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.getAlternativeKey(), and org.andromda.cartridges.arc.KeyResponsibility.getDescription().
Collection org.andromda.cartridges.arc.KeyResponsibility.key [private] |
Definition at line 13 of file KeyResponsibility.java.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.getKey().
final String org.andromda.cartridges.arc.KeyResponsibility.KEY_ID = "Key" [static] |
Definition at line 10 of file KeyResponsibility.java.
Referenced by org.andromda.cartridges.arc.KeyResponsibility.get(), and org.andromda.cartridges.arc.KeyResponsibility.set().
1.4.7