|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.uml.foundation.core.CoreHelper
Helper class for UML Foundation::Core Package. Current implementation is a placeholder.
Field Summary | |
protected static org.apache.log4j.Category |
cat
|
Method Summary | |
ru.novosoft.uml.foundation.core.MDependency |
buildSupportDependency(ru.novosoft.uml.foundation.core.MModelElement from,
ru.novosoft.uml.foundation.core.MModelElement to)
Builds a dependency with stereotype support |
java.util.Collection |
getAllAttributes(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MClassifier clazz)
Returns all behavioralfeatures found in this classifier and its children |
java.util.Collection |
getAllBehavioralFeatures(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all components found in this namespace and in its children |
java.util.Collection |
getAllContents(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MNamespace ns)
Returns all components found in this namespace and in its children |
java.util.Collection |
getAllPossibleNamespaces(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MClassifier cls)
This method returns all Classifiers of which this class is a direct or indirect subtype. |
java.util.Collection |
getAssociatedClassifiers(ru.novosoft.uml.foundation.core.MClassifier classifier)
Gets all classifiers that are associated to the given classifier (have an association relationship with the classifier). |
java.util.Collection |
getAssociateEnds(ru.novosoft.uml.foundation.core.MClassifier classifier)
This method returns all opposite AssociationEnds of a given Classifier |
java.util.Collection |
getAssociateEndsInh(ru.novosoft.uml.foundation.core.MClassifier classifier)
This method returns all opposite AssociationEnds of a given Classifier, including inherited |
ru.novosoft.uml.foundation.core.MAssociationEnd |
getAssociationEnd(ru.novosoft.uml.foundation.core.MClassifier type,
ru.novosoft.uml.foundation.core.MAssociation assoc)
Returns the associationend between some classifier type and some associaton assoc. |
java.util.Collection |
getAssociations(ru.novosoft.uml.foundation.core.MClassifier from,
ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MClassifier classifier)
This method returns all attributes of a given Classifier. |
java.util.Collection |
getAttributesInh(ru.novosoft.uml.foundation.core.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. |
ru.novosoft.uml.foundation.core.MModelElement |
getDestination(ru.novosoft.uml.foundation.core.MRelationship relation)
Returns the destination of a relation. |
java.util.Collection |
getExtendedClassifiers(ru.novosoft.uml.foundation.core.MGeneralizableElement clazz)
Returns all classes some generalizable element clazz extends. |
java.util.Collection |
getExtendingClassifiers(ru.novosoft.uml.foundation.core.MClassifier clazz)
Returns all classifiers that extend some classifier clazz. |
java.util.Collection |
getExtendingElements(ru.novosoft.uml.foundation.core.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. |
ru.novosoft.uml.foundation.core.MNamespace |
getFirstSharedNamespace(ru.novosoft.uml.foundation.core.MNamespace ns1,
ru.novosoft.uml.foundation.core.MNamespace ns2)
Gets the first namespace two namespaces share. |
java.util.Collection |
getFlows(ru.novosoft.uml.foundation.core.MModelElement source,
ru.novosoft.uml.foundation.core.MModelElement target)
Returns all flows from some source modelelement to a target modelelement. |
ru.novosoft.uml.foundation.core.MGeneralization |
getGeneralization(ru.novosoft.uml.foundation.core.MGeneralizableElement child,
ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MClassifier classifier)
This method returns all operations of a given Classifier, including inherited |
java.util.Collection |
getRealizedInterfaces(ru.novosoft.uml.foundation.core.MClassifier clazz)
Return all interfaces the given class realizes. |
java.util.Collection |
getRelationships(ru.novosoft.uml.foundation.core.MModelElement source,
ru.novosoft.uml.foundation.core.MModelElement dest)
Returns all relationships between the source and dest modelelement and vica versa. |
ru.novosoft.uml.foundation.core.MParameter |
getReturnParameter(ru.novosoft.uml.foundation.core.MOperation operation)
this method finds all paramters of the given operation which have the MParamterDirectionType RETURN. |
java.util.Collection |
getReturnParameters(ru.novosoft.uml.foundation.core.MOperation operation)
Returns all return parameters for an operation. |
ru.novosoft.uml.foundation.core.MModelElement |
getSource(ru.novosoft.uml.foundation.core.MRelationship relation)
Returns the source of a relation. |
ru.novosoft.uml.foundation.core.MOperation |
getSpecification(java.lang.Object object)
Returns the operation that some method realized. |
java.util.Collection |
getSpecifications(ru.novosoft.uml.foundation.core.MClassifier cls)
Returns all Interfaces of which this class is a realization. |
java.util.Collection |
getSubtypes(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MOperation operation,
ru.novosoft.uml.foundation.core.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 org.apache.log4j.Category cat
Method Detail |
public static CoreHelper getHelper()
public java.util.Collection getAllSupertypes(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MClassifier classifier)
classifier
- the classifier you want to have the opposite
association ends for
public java.util.Collection getAssociateEndsInh(ru.novosoft.uml.foundation.core.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(ru.novosoft.uml.foundation.core.MClassifier classifier)
classifier
- the classifier you want to have the attributes for
public java.util.Collection getAttributesInh(ru.novosoft.uml.foundation.core.MClassifier classifier)
classifier
- the classifier you want to have the attributes for
public java.util.Collection getOperationsInh(ru.novosoft.uml.foundation.core.MClassifier classifier)
classifier
- the classifier you want to have the operations for
public ru.novosoft.uml.foundation.core.MParameter getReturnParameter(ru.novosoft.uml.foundation.core.MOperation operation)
operation
- the operation you want to find the return parameter for
public java.util.Collection getReturnParameters(ru.novosoft.uml.foundation.core.MOperation operation)
operation
-
public ru.novosoft.uml.foundation.core.MOperation getSpecification(java.lang.Object object)
object
- the method you want the realized operation of.
public java.util.Collection getSpecifications(ru.novosoft.uml.foundation.core.MClassifier cls)
cls
- the class you want to have the interfaces for
public java.util.Collection getSubtypes(ru.novosoft.uml.foundation.core.MClassifier cls)
cls
- the class you want to have the children for
MGeneralizableElement
public void setReturnParameter(ru.novosoft.uml.foundation.core.MOperation operation, ru.novosoft.uml.foundation.core.MParameter newReturnParameter)
operation
- newReturnParameter
- public ru.novosoft.uml.foundation.core.MDependency buildSupportDependency(ru.novosoft.uml.foundation.core.MModelElement from, ru.novosoft.uml.foundation.core.MModelElement to)
public java.util.Collection getAllBehavioralFeatures(ru.novosoft.uml.foundation.core.MModelElement element)
public java.util.Collection getAllBehavioralFeatures(ru.novosoft.uml.foundation.core.MClassifier clazz)
public java.util.Collection getAllBehavioralFeatures()
public java.util.Collection getAllInterfaces()
public java.util.Collection getAllInterfaces(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAllClasses()
public java.util.Collection getAllClasses(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getRealizedInterfaces(ru.novosoft.uml.foundation.core.MClassifier clazz)
clazz
-
public java.util.Collection getExtendedClassifiers(ru.novosoft.uml.foundation.core.MGeneralizableElement clazz)
clazz
-
public ru.novosoft.uml.foundation.core.MGeneralization getGeneralization(ru.novosoft.uml.foundation.core.MGeneralizableElement child, ru.novosoft.uml.foundation.core.MGeneralizableElement parent)
child
- parent
-
public java.util.Collection getFlows(ru.novosoft.uml.foundation.core.MModelElement source, ru.novosoft.uml.foundation.core.MModelElement target)
source
- target
-
public java.util.Collection getExtendingElements(ru.novosoft.uml.foundation.core.MGeneralizableElement clazz)
clazz
-
public java.util.Collection getExtendingClassifiers(ru.novosoft.uml.foundation.core.MClassifier clazz)
clazz
-
public java.util.Collection getAllComponents()
public java.util.Collection getAllComponents(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAllDataTypes()
public java.util.Collection getAllDataTypes(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAllNodes()
public java.util.Collection getAllNodes(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAssociatedClassifiers(ru.novosoft.uml.foundation.core.MClassifier classifier)
classifier
-
public java.util.Collection getAssociations(ru.novosoft.uml.foundation.core.MClassifier from, ru.novosoft.uml.foundation.core.MClassifier to)
from
- to
-
public java.util.Collection getAllClassifiers()
public java.util.Collection getAllClassifiers(ru.novosoft.uml.foundation.core.MNamespace ns)
public java.util.Collection getAssociations(java.lang.Object oclassifier)
public ru.novosoft.uml.foundation.core.MAssociationEnd getAssociationEnd(ru.novosoft.uml.foundation.core.MClassifier type, ru.novosoft.uml.foundation.core.MAssociation assoc)
type
- assoc
-
public java.util.Collection getAllContents(ru.novosoft.uml.foundation.core.MClassifier clazz)
clazz
-
public java.util.Collection getAllAttributes(ru.novosoft.uml.foundation.core.MClassifier clazz)
clazz
-
public ru.novosoft.uml.foundation.core.MModelElement getSource(ru.novosoft.uml.foundation.core.MRelationship relation)
relation
-
public ru.novosoft.uml.foundation.core.MModelElement getDestination(ru.novosoft.uml.foundation.core.MRelationship relation)
relation
-
public java.util.Collection getDependencies(java.lang.Object supplierObj, java.lang.Object clientObj)
public java.util.Collection getRelationships(ru.novosoft.uml.foundation.core.MModelElement source, ru.novosoft.uml.foundation.core.MModelElement dest)
source
- dest
-
public boolean isValidNamespace(java.lang.Object mObj, java.lang.Object nsObj)
public ru.novosoft.uml.foundation.core.MNamespace getFirstSharedNamespace(ru.novosoft.uml.foundation.core.MNamespace ns1, ru.novosoft.uml.foundation.core.MNamespace ns2)
ns1
- ns2
-
public java.util.Collection getAllPossibleNamespaces(ru.novosoft.uml.foundation.core.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 (20030829) | ArgoUML Project Home | ArgoUML Cookbook |