|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.model.uml.foundation.core.CoreHelper
Helper class for UML Foundation::Core Package. Current implementation is a placeholder.
Field Summary | |
---|---|
protected static Category |
cat
|
Method Summary | |
---|---|
MDependency |
buildSupportDependency(MModelElement from,
MModelElement to)
Builds a dependency with stereotype support |
java.util.Collection |
getAllAttributes(MClassifier clazz)
Returns all attributes of some classifier clazz and of its parents |
java.util.Collection |
getAllBehavioralFeatures()
Returns all behavioralfeatures found in the projectbrowser model |
java.util.Collection |
getAllBehavioralFeatures(MModelElement element)
Returns all behavioralfeatures found in this element and its children |
java.util.Collection |
getAllClasses()
Returns all classes found in the projectbrowser model |
java.util.Collection |
getAllClasses(MNamespace ns)
Returns all classes found in this namespace and in its children |
java.util.Collection |
getAllClassifiers()
Returns all classifiers found in the projectbrowser model |
java.util.Collection |
getAllClassifiers(MNamespace ns)
Returns all classifiers found in this namespace and in its children |
java.util.Collection |
getAllComponents()
Returns all components found in the projectbrowser model |
java.util.Collection |
getAllComponents(MNamespace ns)
Returns all components found in this namespace and in its children |
java.util.Collection |
getAllContents(MClassifier clazz)
Returns the contents (owned elements) of this classifier and all its parents as specified in section 2.5.3.8 of the UML 1.3 spec |
java.util.Collection |
getAllDataTypes()
Returns all datatypes found in the projectbrowser model |
java.util.Collection |
getAllDataTypes(MNamespace ns)
Returns all components found in this namespace and in its children |
java.util.Collection |
getAllInterfaces()
Returns all interfaces found in the projectbrowser model |
java.util.Collection |
getAllInterfaces(MNamespace ns)
Returns all interfaces found in this namespace and in its children |
java.util.Collection |
getAllNodes()
Returns all nodes found in the projectbrowser model |
java.util.Collection |
getAllNodes(MNamespace ns)
Returns all components found in this namespace and in its children |
java.util.Collection |
getAllPossibleNamespaces(MModelElement m)
Returns all possible namespaces that may be selected by some given modelelement m. |
java.util.Collection |
getAllRealizedInterfaces(java.lang.Object o)
Returns all interfaces that are realized by the given class or by its superclasses. |
java.util.Collection |
getAllSupertypes(MClassifier cls)
This method returns all Classifiers of which this class is a direct or indirect subtype. |
java.util.Collection |
getAssociatedClassifiers(MClassifier classifier)
Gets all classifiers that are associated to the given classifier (have an association relationship with the classifier). |
java.util.Collection |
getAssociateEnds(MClassifier classifier)
This method returns all opposite AssociationEnds of a given Classifier |
java.util.Collection |
getAssociateEndsInh(MClassifier classifier)
This method returns all opposite AssociationEnds of a given Classifier, including inherited |
MAssociationEnd |
getAssociationEnd(MClassifier type,
MAssociation assoc)
Returns the associationend between some classifier type and some associaton assoc. |
java.util.Collection |
getAssociations(MClassifier from,
MClassifier to)
Gets the associations between the classifiers from and to. |
java.util.Collection |
getAssociations(java.lang.Object oclassifier)
Returns all associations for some classifier |
java.util.Collection |
getAttributes(MClassifier classifier)
This method returns all attributes of a given Classifier. |
java.util.Collection |
getAttributesInh(MClassifier classifier)
This method returns all attributes of a given Classifier, including inherited |
java.util.Collection |
getBaseClasses(java.lang.Object o)
Returns the base classes (that are the classes that do not have any generalizations) for some given namespace. |
java.util.Collection |
getChildren(java.lang.Object o)
Returns all children from some given generalizableelement on all levels (the complete tree excluding the generalizable element itself). |
java.util.Collection |
getDependencies(java.lang.Object supplierObj,
java.lang.Object clientObj)
Returns the dependencies between some supplier modelelement and some client modelelement. |
MModelElement |
getDestination(MRelationship relation)
Returns the destination of a relation. |
java.util.Collection |
getExtendedClassifiers(MGeneralizableElement clazz)
Returns all classes some generalizable element clazz extends. |
java.util.Collection |
getExtendingClassifiers(MClassifier clazz)
Returns all classifiers that extend some classifier clazz. |
java.util.Collection |
getExtendingElements(MGeneralizableElement clazz)
Returns all elements that extend some class clazz. |
java.lang.String |
getFeatureName(java.lang.Object o)
This method returns the name of a feature. |
MNamespace |
getFirstSharedNamespace(MNamespace ns1,
MNamespace ns2)
Gets the first namespace two namespaces share. |
java.util.Collection |
getFlows(MModelElement source,
MModelElement target)
Returns all flows from some source modelelement to a target modelelement. |
MGeneralization |
getGeneralization(MGeneralizableElement child,
MGeneralizableElement parent)
Gets the generalization between two generalizable elements. |
static CoreHelper |
getHelper()
Singleton instance access method. |
java.util.Collection |
getOperations(java.lang.Object classifier)
This method returns all operations of a given Classifier |
java.util.Collection |
getOperationsInh(MClassifier classifier)
This method returns all operations of a given Classifier, including inherited |
java.util.Collection |
getRealizedInterfaces(MClassifier clazz)
Return all interfaces the given class realizes. |
java.util.Collection |
getRelationships(MModelElement source,
MModelElement dest)
Returns all relationships between the source and dest modelelement and vica versa. |
MParameter |
getReturnParameter(MOperation operation)
this method finds all paramters of the given operation which have the MParamterDirectionType RETURN. |
java.util.Collection |
getReturnParameters(MOperation operation)
Returns all return parameters for an operation. |
MModelElement |
getSource(MRelationship relation)
Returns the source of a relation. |
MOperation |
getSpecification(java.lang.Object object)
Returns the operation that some method realized. |
java.util.Collection |
getSpecifications(MClassifier cls)
Returns all Interfaces of which this class is a realization. |
java.util.Collection |
getSubtypes(MClassifier cls)
This method returns all Classifiers of which this class is a direct supertype. |
java.util.Collection |
getSupertypes(java.lang.Object ogeneralizableelement)
This method returns all Classifiers of which this class is a direct subtype. |
boolean |
isMethod(java.lang.Object o)
This method returns if the object is a method. |
boolean |
isOperation(java.lang.Object o)
This method returns if the object is an operation. |
boolean |
isValidNamespace(java.lang.Object mObj,
java.lang.Object nsObj)
Returns true if some modelelement may be owned by the given namespace |
void |
removeFeature(java.lang.Object cls,
java.lang.Object feature)
This method removes a feature from a classifier. |
void |
setReturnParameter(MOperation operation,
MParameter newReturnParameter)
Build a returnparameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Category cat
Method Detail |
public static CoreHelper getHelper()
public java.util.Collection getAllSupertypes(MClassifier cls)
cls
- the class you want to have the parents for
MGeneralizableElement
public java.util.Collection getSupertypes(java.lang.Object ogeneralizableelement)
MGeneralizableElement
public java.util.Collection getAssociateEnds(MClassifier classifier)
classifier
- the classifier you want to have the opposite
association ends for
public java.util.Collection getAssociateEndsInh(MClassifier classifier)
classifier
- the classifier you want to have the opposite
association ends for
public void removeFeature(java.lang.Object cls, java.lang.Object feature)
feature
- public java.lang.String getFeatureName(java.lang.Object o)
public boolean isMethod(java.lang.Object o)
public boolean isOperation(java.lang.Object o)
public java.util.Collection getOperations(java.lang.Object classifier)
classifier
- the classifier you want to have the operations for
public java.util.Collection getAttributes(MClassifier classifier)
classifier
- the classifier you want to have the attributes for
public java.util.Collection getAttributesInh(MClassifier classifier)
classifier
- the classifier you want to have the attributes for
public java.util.Collection getOperationsInh(MClassifier classifier)
classifier
- the classifier you want to have the operations for
public MParameter getReturnParameter(MOperation operation)
operation
- the operation you want to find the return parameter for
public java.util.Collection getReturnParameters(MOperation operation)
operation
-
public MOperation getSpecification(java.lang.Object object)
object
- the method you want the realized operation of.
public java.util.Collection getSpecifications(MClassifier cls)
cls
- the class you want to have the interfaces for
public java.util.Collection getSubtypes(MClassifier cls)
cls
- the class you want to have the children for
MGeneralizableElement
public void setReturnParameter(MOperation operation, MParameter newReturnParameter)
operation
- newReturnParameter
- public MDependency buildSupportDependency(MModelElement from, MModelElement to)
public java.util.Collection getAllBehavioralFeatures(MModelElement element)
public java.util.Collection getAllBehavioralFeatures()
public java.util.Collection getAllInterfaces()
public java.util.Collection getAllInterfaces(MNamespace ns)
public java.util.Collection getAllClasses()
public java.util.Collection getAllClasses(MNamespace ns)
public java.util.Collection getRealizedInterfaces(MClassifier clazz)
clazz
-
public java.util.Collection getExtendedClassifiers(MGeneralizableElement clazz)
clazz
-
public MGeneralization getGeneralization(MGeneralizableElement child, MGeneralizableElement parent)
child
- parent
-
public java.util.Collection getFlows(MModelElement source, MModelElement target)
source
- target
-
public java.util.Collection getExtendingElements(MGeneralizableElement clazz)
clazz
-
public java.util.Collection getExtendingClassifiers(MClassifier clazz)
clazz
-
public java.util.Collection getAllComponents()
public java.util.Collection getAllComponents(MNamespace ns)
public java.util.Collection getAllDataTypes()
public java.util.Collection getAllDataTypes(MNamespace ns)
public java.util.Collection getAllNodes()
public java.util.Collection getAllNodes(MNamespace ns)
public java.util.Collection getAssociatedClassifiers(MClassifier classifier)
classifier
-
public java.util.Collection getAssociations(MClassifier from, MClassifier to)
from
- to
-
public java.util.Collection getAllClassifiers()
public java.util.Collection getAllClassifiers(MNamespace ns)
public java.util.Collection getAssociations(java.lang.Object oclassifier)
public MAssociationEnd getAssociationEnd(MClassifier type, MAssociation assoc)
type
- assoc
-
public java.util.Collection getAllContents(MClassifier clazz)
clazz
-
public java.util.Collection getAllAttributes(MClassifier clazz)
clazz
-
public MModelElement getSource(MRelationship relation)
relation
-
public MModelElement getDestination(MRelationship relation)
relation
-
public java.util.Collection getDependencies(java.lang.Object supplierObj, java.lang.Object clientObj)
public java.util.Collection getRelationships(MModelElement source, MModelElement dest)
source
- dest
-
public boolean isValidNamespace(java.lang.Object mObj, java.lang.Object nsObj)
public MNamespace getFirstSharedNamespace(MNamespace ns1, MNamespace ns2)
ns1
- ns2
-
public java.util.Collection getAllPossibleNamespaces(MModelElement m)
m
-
public java.util.Collection getBaseClasses(java.lang.Object o)
o
-
public java.util.Collection getChildren(java.lang.Object o)
o
-
java.lang.IllegalStateException
- if there is a circular reference.public java.util.Collection getAllRealizedInterfaces(java.lang.Object o)
o
-
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2003 (20040229) | ArgoUML Project Home | ArgoUML Cookbook |