|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.cognitive.ResolvedCritic
This class is responsible for identifying one critic that has been resolved by the user in one specific context.
Field Summary | |
private String |
critic
The name of the critic. |
private static Logger |
LOG
The logger. |
private List |
offenders
The IDs of the objects that define the context of the critic. |
Constructor Summary | |
ResolvedCritic(Critic c,
org.tigris.gef.util.VectorSet offs)
Same as ResolvedCritic(c, offs, true) . |
|
ResolvedCritic(Critic c,
org.tigris.gef.util.VectorSet offs,
boolean canCreate)
Creates a new ResolvedCritic from the given information. |
|
ResolvedCritic(String cr,
Vector offs)
Creates a new ResolvedCritic using the name of the Critic and the Vector of objects that triggered the Critic given as parameters. |
Method Summary | |
boolean |
equals(Object obj)
equals returns true if and only if obj also is a ResolvedCritic, has the same critic name, and has all related objects that this object has. |
String |
getCritic()
Gets the content of critic. |
protected String |
getCriticString(Critic c)
Obtains a String that identifies the type of Critic. |
List |
getOffenderList()
Gets the list of related objects, offenders. |
int |
hashCode()
|
protected void |
importOffenders(org.tigris.gef.util.VectorSet set,
boolean canCreate)
Imports the set of related objects in set to this object. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final Logger LOG
private String critic
private List offenders
Constructor Detail |
public ResolvedCritic(String cr, Vector offs)
cr
- The name of the Critic that has been resolvedoffs
- The Vector of related objects.public ResolvedCritic(Critic c, org.tigris.gef.util.VectorSet offs) throws UnresolvableException
ResolvedCritic(c, offs, true)
.
c
- The Critic that has been resolved.offs
- The set of objects that triggered the Critic.
UnresolvableException
- If some of the objects does
not have a ItemUID and does not accept a new
one.public ResolvedCritic(Critic c, org.tigris.gef.util.VectorSet offs, boolean canCreate) throws UnresolvableException
c
- The Critic that has been resolved.offs
- The set of objects that triggered the Critic.canCreate
- If it should try to assign new
ItemUIDs to objects that doesn't have.
UnresolvableException
- If some of the objects does
not have a ItemUID and does not accept a new
one.Method Detail |
public int hashCode()
This is a rather bad hash solution but with the {@link #equals(Object)}
defined as below, it is not possible to do better.
public boolean equals(Object obj)
Formally that is inconsistent with equals as specified in java.lang.Object
,
but it was probably practical somehow.
The param obj is the Object to compare to. Returns true if equal according to the description, false otherwise.
Object.equals(java.lang.Object)
protected String getCriticString(Critic c) throws UnresolvableException
c
- A Critic.
UnresolvableException
- Not implemented.protected void importOffenders(org.tigris.gef.util.VectorSet set, boolean canCreate) throws UnresolvableException
set
- The set of related objects to import.canCreate
- If ItemUIDs are allowed to be created.
UnresolvableException
- if not all objects can be
imported.public String getCritic()
public List getOffenderList()
public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20050222) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |