org.argouml.uml.cognitive.critics
Class ChildGenUML
java.lang.Object
org.argouml.uml.cognitive.critics.ChildGenUML
public class ChildGenUML
- extends java.lang.Object
This class gives critics access to parts of the UML model of the
design. It defines a gen() function that returns the "children"
of any given part of the UML model. Basically, it goes from
Project, to Models, to ModelElements. Argo's critic Agency uses
this to apply critics where appropriate.
TODO: This thinks it knows all the composition associations of the
the UML metamodel, but it is a) incomplete and b) not updated for
UML 1.4. This should be done using information from the metamodel
rather than hardwired code. - tfm - 20070205
- See Also:
Agency,
Designer
|
Method Summary |
java.util.Enumeration |
gen(java.lang.Object o)
Deprecated. for 0.25.4 by tfmorris. Only for use with legacy GEF
interfaces. Use gen2(Object) for new applications. |
java.util.Iterator |
gen2(java.lang.Object o)
Return an Iterator of the children of the given Object |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChildGenUML
public ChildGenUML()
gen
@Deprecated
public java.util.Enumeration gen(java.lang.Object o)
- Deprecated. for 0.25.4 by tfmorris. Only for use with legacy GEF
interfaces. Use
gen2(Object) for new applications.
- Reply a java.util.Enumeration of the children of the given Object
- Parameters:
o - the object to return the children of
- Returns:
- an enumeration of the children of the given Object
- See Also:
org.tigris.gef.util.ChildGenerator#gen(java.lang.Object)
gen2
public java.util.Iterator gen2(java.lang.Object o)
- Return an Iterator of the children of the given Object
- Parameters:
o - object to return the children of
- Returns:
- an iterator over the children of the given object
- See Also:
org.tigris.gef.util.ChildGenerator#gen(java.lang.Object)