@OpenApiAll public class ClassifierHelper extends ValueSpecificationHelper
| Modifier and Type | Class and Description | 
|---|---|
(package private) static interface  | 
ClassifierHelper.ElementsGetter<T>
Elements getter from the classifier 
 | 
(package private) static class  | 
ClassifierHelper.PropertyValueGetter
Elements getter from the classifiers by some property name 
 | 
(package private) static class  | 
ClassifierHelper.PureAttributesGetter
A getter for pure attributes - just Property, not Port 
 | 
static class  | 
ClassifierHelper.ShortElementNameResolver
Deprecated.  
 | 
| Constructor and Description | 
|---|
ClassifierHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static boolean | 
areEqualParameterTypes(BehavioralFeature feature1,
                      BehavioralFeature feature2)
Method compares parameters and  returns true if parameters types are equals. 
 | 
static boolean | 
areEqualParameterTypes(BehavioralFeature feature1,
                      BehavioralFeature feature2,
                      boolean compareReturnParameter)
Method compares parameters and  returns true if parameters types are equals. 
 | 
static java.util.Iterator<Association> | 
associations(Classifier classifier)
Get iterator of association from given classifier. 
 | 
static java.util.Iterator<Association> | 
associationsIncludingInherited(Classifier classifier)
Collects connected directly and inherited associations 
 | 
static java.util.Iterator<Property> | 
attributes(Classifier classifier)
Get iterator of Attribute from given classifier. 
 | 
static Classifier | 
checkForDerivedClassifier(java.util.Collection<? extends Classifier> classifiers,
                         Classifier checkFor)
Checks if there are given classifier or some derived classifier in a given classifier collection. 
 | 
static void | 
collectBaseClassAttributes(Classifier classifier,
                          java.util.Collection<? extends Element> result,
                          boolean collectOwned,
                          boolean collectPrivate)
Deprecated.  
 | 
static void | 
collectBaseClassAttributes(Classifier classifier,
                          java.util.Collection result,
                          boolean collectOwned)
Deprecated.  
 | 
static void | 
collectBaseClassInheritableAttributes(Classifier classifier,
                                     java.util.Collection result,
                                     boolean collectOwned,
                                     boolean collectPrivate)
Collect inherited and owned attributes from the given classifier. 
 | 
static void | 
collectBaseClassOperations(Classifier cl,
                          java.util.Collection v,
                          boolean collectCurrent)
Deprecated.  
 | 
static void | 
collectBaseClassPorts(Classifier classifier,
                     java.util.Collection result,
                     boolean collectOwned,
                     boolean collectPrivate)
Deprecated.  
 | 
static java.util.Collection<Association> | 
collectCommonAssociations(java.util.Collection<? extends Classifier> classifiers1,
                         java.util.Collection<? extends Classifier> classifiers2)
Collect association connected between given classifiers 
 | 
static void | 
collectDerivedClassifiersRecursivelly(java.util.Collection<? extends Classifier> result,
                                     Classifier classifier)
Deprecated.  
 | 
static void | 
collectDerivedClassifiersRecursively(java.util.Collection<? extends Classifier> result,
                                    Classifier classifier)
Collect all derived elements recursively(not direct children). 
 | 
static <T extends Classifier> | 
collectGeneralClassifiersAndRealizedInterfacesRecursively(Classifier classifier,
                                                         java.util.Collection<T> result)
Collects all general classifiers including the indirect ones up to hierarchy top. 
 | 
static <T extends Classifier> | 
collectGeneralClassifiersRecursivelly(java.util.Collection<T> result,
                                     Classifier data)
Deprecated.  
 | 
static <T extends Classifier> | 
collectGeneralClassifiersRecursively(Classifier classifier,
                                    java.util.Collection<T> result)
Collects all general classifiers including the indirect ones up to hierarchy top. 
 | 
static void | 
collectInheritedAttributes(Classifier classifier,
                          java.util.Collection result,
                          boolean collectOwned,
                          boolean collectPrivate)
Collect inherited and owned attributes from the given classifier. 
 | 
static void | 
collectInheritedBehaviors(BehavioredClassifier classifier,
                         java.util.Collection<Behavior> result,
                         boolean collectOwned,
                         boolean collectPrivate)
Collect inherited and owned behaviors from the given classifier 
 | 
(package private) static <T extends Element> | 
collectInheritedElements(Classifier classifier,
                        java.util.Collection<T> res,
                        ClassifierHelper.ElementsGetter<T> getter,
                        boolean collectOwned,
                        boolean collectPrivate)
Collects inherited elements from general classifiers and also owned ones. 
 | 
static void | 
collectInheritedEnumerationLiterals(Enumeration enumeration,
                                   java.util.Collection result,
                                   boolean collectOwned,
                                   boolean collectPrivate)
Collect inherited and owned literals from the given enumeration. 
 | 
static void | 
collectInheritedExtensionPoints(UseCase useCase,
                               java.util.Collection result,
                               boolean collectOwned,
                               boolean collectPrivate)
Collect inherited and owned extension points from the given use case. 
 | 
static void | 
collectInheritedOperations(Classifier classifier,
                          java.util.Collection result,
                          boolean collectOwned,
                          boolean collectPrivate)
Collect inherited and owned operations from the given classifier. 
 | 
static void | 
collectInheritedPorts(Classifier classifier,
                     java.util.Collection result,
                     boolean collectOwned,
                     boolean collectPrivate)
Collect inherited and owned ports from the given classifier. 
 | 
static void | 
collectInheritedPureAttributes(Classifier classifier,
                              java.util.Collection result,
                              boolean collectOwned)
Collect inherited and owned attributes (just Property, not Port and etc) from the given classifier. 
 | 
static void | 
collectInheritedPureAttributes(Classifier classifier,
                              java.util.Collection result,
                              boolean collectOwned,
                              boolean collectPrivate)
Collect inherited and owned attributes (just Property, not Port and etc) from the given classifier. 
 | 
static void | 
collectInheritedRealizedInterfaces(BehavioredClassifier classifier,
                                  java.util.Collection result,
                                  boolean collectOwned)
Collect inherited and directly realized interfaces from the given classifier 
 | 
static void | 
collectInheritedReceptions(Classifier classifier,
                          java.util.Collection result,
                          boolean collectOwned,
                          boolean collectPrivate)
Collect inherited and owned receptions from the given classifier 
 | 
static void | 
collectInheritedRelations(Classifier classifier,
                         java.util.Collection<Element> result,
                         boolean collectOwned)
Collect inherited and directly connected relationships to the classifier 
 | 
static void | 
collectRealizedInterfaces(java.util.Collection<? extends Classifier> classifiers,
                         java.util.Collection<Interface> result)
Collects realized interfaces by given classifiers. 
 | 
static Property | 
findAssociationEndForType(Classifier classifier,
                         Classifier type,
                         java.lang.String name)
Looks for AssociationEnd connected to the given classifier 'classifier' which can be mapped into 'classifier' attribute
 with name 'name' and type 'type'. 
 | 
static Classifier | 
findDataTypeFor(Project project,
               java.lang.String name,
               java.util.Collection restricted)
Deprecated.  
 | 
static Generalization | 
findGeneralization(Classifier general,
                  Classifier specific)
Look for generalization between given classifiers. 
 | 
static InterfaceRealization | 
findInterfaceRealization(BehavioredClassifier implementingClass,
                        Interface contract)
Look for interface realization between given class and interface. 
 | 
static java.util.List<EnumerationLiteral> | 
getAllLiterals(Enumeration enumeration)
Return owned and inherited enumeration literals 
 | 
static java.util.Collection<TypedElement> | 
getAssociationEndOwnedByAssociation(Classifier classifier)
Returns a collection of properties connected to given classifier by associations. 
 | 
static java.util.Collection<TypedElement> | 
getAssociationEnds(Classifier classifier)
Deprecated.  
 | 
static Classifier | 
getClassifierFor(Element element,
                java.lang.String classifierName,
                java.lang.Class type)
Deprecated.  
 | 
static Classifier | 
getClassifierFor(Element element,
                java.lang.String elementName,
                java.lang.Class type,
                java.util.Collection<java.lang.Class> classifiersType,
                ClassifierFinder.SimpleNameResolver resolverShort)
Deprecated.  
 | 
static Classifier | 
getClassifierFor(Element element,
                java.lang.String elementName,
                java.lang.Class type,
                java.util.Collection<java.lang.Class> classifiersType,
                ClassifierFinder.SimpleNameResolver resolverShort,
                boolean createIfNotFound)
Deprecated.  
 | 
static java.util.Collection<Classifier> | 
getDerivedClassifiers(Classifier parent)
Return derived elements of parent classifier 
 | 
static java.util.Collection<Classifier> | 
getDerivedClassifiers(java.util.Collection<Classifier> parents)
Returns set of derived elements of parent classifiers 
 | 
static java.util.Collection<Classifier> | 
getDerivedClassifiersRecursivelly(Classifier classifier)
Deprecated. 
 
typo error 
 | 
static java.util.Collection<Classifier> | 
getDerivedClassifiersRecursively(Classifier classifier)
Get all derived classifiers for given classifier. 
 | 
static java.util.List<Classifier> | 
getGeneralClassifiers(Classifier classifier)
Returns direct general classifiers. 
 | 
static java.util.List<Classifier> | 
getGeneralClassifiersRecursivelly(Classifier classifier)
Deprecated.  
 | 
static java.util.Collection<Classifier> | 
getGeneralClassifiersRecursivelly(java.util.Collection<? extends Classifier> classifiers)
Deprecated.  
 | 
static java.util.List<Classifier> | 
getGeneralClassifiersRecursively(Classifier classifier)
Returns all general classifiers including the indirect ones up to hierarchy top. 
 | 
static java.util.Collection<Classifier> | 
getGeneralClassifiersRecursively(java.util.Collection<? extends Classifier> classifiers)
Returns all general classifiers including the indirect ones up to hierarchy top. 
 | 
static java.util.List<BehavioredClassifier> | 
getImplementedClasses(Interface anInterface)
Gets classifiers which realize (implement) a given interface. 
 | 
static int | 
getInheritanceDeep(Classifier classifier)
Gets the deep of inherited tree for classifier. 
 | 
static java.util.Set<Classifier> | 
getOptimizedClassifierHierarchy(java.util.Set<Classifier> classifiers)
Deprecated.  
 | 
static java.util.List<Parameter> | 
getParameters(BehavioralFeature feature)
Returns parameters without return parameter 
 | 
static java.util.List<Property> | 
getPropertiesWithoutRedefined(Classifier classifier)
Gets owned and inherited properties without redefined ones. 
 | 
static java.util.Collection<Interface> | 
getProvided(Class component)
Component provided interfaces collection consists of:
 1) interfaces, realized by the component through  
InterfaceRealization,
 2) provided interfaces of the component ports,
 3) component port types which are interfaces. | 
static java.util.List<Interface> | 
getRealizedInterfaces(BehavioredClassifier classifier)
Collects realized interfaces by the given classifier. 
 | 
static Parameter | 
getReturnParameter(BehavioralFeature feature)
Return parameter of given behaviour feature. 
 | 
static Parameter | 
getReturnParameter(BehavioralFeature feature,
                  boolean create)
Return parameter of given behaviour feature. 
 | 
static Parameter | 
getReturnParameter(Behavior behavior,
                  boolean create)
Return parameter of given behaviour. 
 | 
static java.util.List<Parameter> | 
getReturnParameters(BehavioralFeature feature)
Returns parameters without return parameter 
 | 
static boolean | 
isBehavioralFeatureEqual(BehavioralFeature feature1,
                        BehavioralFeature feature2,
                        boolean compareReturnParameter)
Compare the two given features by name and by parameters 
 | 
static boolean | 
isClassifierOfType(Classifier classifier,
                  Classifier type)
Tests if given classifier isTypeOf (equals or is derived) given type. 
 | 
static boolean | 
isClassifierOfType(java.util.Collection<? extends Classifier> classifiers,
                  Classifier type)
Tests if there is at least one classifier among  given ones which isTypeOf (equals or is derived) given type. 
 | 
static boolean | 
isDerivedClassifier(Classifier parent,
                   Classifier child)
Checks if child is derived from parent by generalization 
 | 
static boolean | 
isDerivedOrRealizes(Classifier classifier,
                   Classifier type)
Checks if classifier is derived from given type or realizes the given type. 
 | 
static boolean | 
isLegalInheritance(Classifier parent,
                  Classifier child)
Checks if new generalization relationship is legal between given parent and child. 
 | 
static boolean | 
isLegalInheritance(Classifier parent,
                  Classifier child,
                  java.util.Collection<? extends Relationship> ignore)
Checks if new generalization relationship is legal between given parent and child. 
 | 
static boolean | 
isLegalInterfaceRealization(Interface parent,
                           BehavioredClassifier child)
Deprecated. 
 
always returns true - there can not be cyclic inheritance between different types of classifier 
 | 
static boolean | 
isOperationEqual(Operation op1,
                Operation op2)
Compare the two given operation. 
 | 
static boolean | 
isReturnParameter(Parameter parameter)  | 
static boolean | 
isSameOrRedefined(Property first,
                 Property second)
Check if given first property is the same as second property or first property is redefined by second property 
 | 
static boolean | 
isSecondTypeCompatibleToFirst(Type firstType,
                             java.util.Collection<Type> secondType,
                             boolean checkRealizedInterfaces)
Indicates at least one type from second type collection is compatible to the first type. 
 | 
static boolean | 
isSecondTypeCompatibleToFirst(Type firstType,
                             Type secondType,
                             boolean checkRealizedInterfaces)
Indicates if second parameter type is compatible to the first (is same type or a subtype). 
 | 
static java.util.Iterator<Operation> | 
operations(Classifier classifier)
Get iterator of operations from given classifier. 
 | 
static java.util.Iterator<Port> | 
ports(Classifier classifier)
Get iterator of port from given classifier. 
 | 
static java.util.Iterator<Property> | 
pureAttributes(Classifier classifier)
Get iterator of pure attribute from given classifier. 
 | 
static java.util.Iterator<Reception> | 
receptions(Classifier classifier)
Get iterator of reception from given classifier. 
 | 
static java.util.Collection<Classifier> | 
removeDerivedClassifiers(java.util.Collection<Classifier> classifiers)
Given a collection of classifiers, returns a collection without derived classifiers in their generalization hierarchy. 
 | 
static void | 
removeRedefined(java.util.Collection<? extends RedefinableElement> major,
               java.util.Collection<? extends RedefinableElement>... additional)
Removes redefined elements from a given major collection. 
 | 
cloneValueSpecification, createValueSpecification, createValueSpecification, createValueSpecification, createValueSpecification, createValueSpecification, getValueSpecificationClass, getValueSpecificationClass, getValueSpecificationValue, getValueString, setValueSpecificationValue, setValueSpecificationValue, setValueSpecificationValueareElementsEditable, canAddChild, canAssignName, canAssignName, canAssignName, canMoveChildInto, canMoveChildInto, dispose, findAcceptableParentFor, findAcceptableParentFor, findOwnerOfStrictType, findOwnerOfStrictTypeIncludingItself, findOwnerOfType, findOwnerOfTypeIncludingItself, findParent, findParent, findParentOfType, getAdditionalElementsIterator, getClientElement, getComment, getCommentElement, getCommentElementOrCreate, getDependentClients, getDependentSuppliers, getFirstMemberEnd, getMultiplicity, getName, getOppositeEnd, getOwnedElementsIncludingAdditional, getSecondMemberEnd, getSupplierElement, getSupplierElement, getSupplierElements, hasParentIn, isChildOf, isDocumentationComment, isMultiplicityMany, isParentOf, isParentOf, isRelationship, isRelationshipAlwaysInClient, parseMultiplicityString, setClientElement, setComment, setCommentElement, setConstraintText, setMultiplicity, setMultiplicity, setSupplierElementpublic static java.util.Collection<Classifier> getDerivedClassifiersRecursively(Classifier classifier)
classifier - given classifier@Deprecated public static java.util.Collection<Classifier> getDerivedClassifiersRecursivelly(Classifier classifier)
classifier - given classifiergetDerivedClassifiersRecursively(Classifier)public static java.util.Collection<Classifier> getDerivedClassifiers(Classifier parent)
parent - parent classifierpublic static java.util.Collection<Classifier> getDerivedClassifiers(java.util.Collection<Classifier> parents)
parents - classifier collectionpublic static java.util.List<Classifier> getGeneralClassifiers(Classifier classifier)
classifier - classifiergetGeneralClassifiersRecursively(Classifier)public static java.util.List<Classifier> getGeneralClassifiersRecursively(Classifier classifier)
classifier - classifiergetGeneralClassifiers(Classifier)@Deprecated public static java.util.List<Classifier> getGeneralClassifiersRecursivelly(Classifier classifier)
public static java.util.Collection<Classifier> getGeneralClassifiersRecursively(java.util.Collection<? extends Classifier> classifiers)
classifiers - classifiergetGeneralClassifiersRecursively(Classifier)@Deprecated public static java.util.Collection<Classifier> getGeneralClassifiersRecursivelly(java.util.Collection<? extends Classifier> classifiers)
public static <T extends Classifier> java.util.Collection<T> collectGeneralClassifiersRecursively(Classifier classifier, java.util.Collection<T> result)
classifier - classifierresult - result collectionpublic static <T extends Classifier> java.util.Collection<T> collectGeneralClassifiersAndRealizedInterfacesRecursively(Classifier classifier, java.util.Collection<T> result)
classifier - classifierresult - result collectionpublic static int getInheritanceDeep(Classifier classifier)
classifier - classifier@Deprecated public static <T extends Classifier> java.util.Collection<T> collectGeneralClassifiersRecursivelly(java.util.Collection<T> result, Classifier data)
public static boolean isLegalInheritance(Classifier parent, Classifier child)
parent - parent element of generalization.child - child element of generalization.public static boolean isLegalInheritance(Classifier parent, Classifier child, @CheckForNull java.util.Collection<? extends Relationship> ignore)
parent - parent element of generalization.child - child element of generalization.ignore - a collection of classifiers that should be ignored.@Deprecated public static void collectDerivedClassifiersRecursivelly(java.util.Collection<? extends Classifier> result, Classifier classifier)
@collectDerivedClassifiersRecursivelypublic static void collectDerivedClassifiersRecursively(java.util.Collection<? extends Classifier> result, Classifier classifier)
result - result collectionclassifier - general classifier@Deprecated public static boolean isLegalInterfaceRealization(Interface parent, BehavioredClassifier child)
parent - parent element of relationship.child - child element of relationship.@CheckForNull public static Property findAssociationEndForType(Classifier classifier, Classifier type, java.lang.String name)
classifier - the given classifier.type - the type of the association end.name - the name of the association end.public static Parameter getReturnParameter(BehavioralFeature feature)
feature - a given featurepublic static boolean isReturnParameter(Parameter parameter)
parameter - parameter@CheckForNull public static Parameter getReturnParameter(BehavioralFeature feature, boolean create)
feature - a given featurecreate - creates a new parameter if needed@CheckForNull public static Parameter getReturnParameter(Behavior behavior, boolean create)
behavior - a given behaviorcreate - creates a new parameter if neededpublic static java.util.Iterator<Operation> operations(Classifier classifier)
classifier - The given classifier.public static java.util.Iterator<Reception> receptions(Classifier classifier)
classifier - The given classifier.public static java.util.Iterator<Property> attributes(Classifier classifier)
classifier - The given classifier.public static java.util.Iterator<Port> ports(Classifier classifier)
classifier - The given classifier.public static java.util.Iterator<Property> pureAttributes(Classifier classifier)
classifier - The given classifier.public static java.util.Iterator<Association> associations(Classifier classifier)
classifier - The given classifier.public static java.util.Iterator<Association> associationsIncludingInherited(Classifier classifier)
classifier - classifierpublic static void collectInheritedAttributes(Classifier classifier, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectBaseClassInheritableAttributes(Classifier classifier, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectInheritedPureAttributes(Classifier classifier, java.util.Collection result, boolean collectOwned)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedpublic static void collectInheritedPureAttributes(Classifier classifier, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect private@Deprecated public static void collectBaseClassAttributes(Classifier classifier, java.util.Collection result, boolean collectOwned)
@Deprecated public static void collectBaseClassAttributes(Classifier classifier, java.util.Collection<? extends Element> result, boolean collectOwned, boolean collectPrivate)
@Deprecated public static void collectBaseClassPorts(Classifier classifier, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
@Deprecated public static void collectBaseClassOperations(Classifier cl, java.util.Collection v, boolean collectCurrent)
static <T extends Element> void collectInheritedElements(Classifier classifier, java.util.Collection<T> res, ClassifierHelper.ElementsGetter<T> getter, boolean collectOwned, boolean collectPrivate)
classifier - classifierres - resultgetter - gettercollectOwned - collected owned alsocollectPrivate - collect private alsopublic static void collectInheritedRelations(Classifier classifier, java.util.Collection<Element> result, boolean collectOwned)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedpublic static java.util.Collection<TypedElement> getAssociationEndOwnedByAssociation(Classifier classifier)
classifier - the given classifierpublic static void collectInheritedPorts(Classifier classifier, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectInheritedExtensionPoints(UseCase useCase, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
useCase - use caseresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectInheritedEnumerationLiterals(Enumeration enumeration, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
enumeration - enumerationresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectInheritedOperations(Classifier classifier, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectInheritedBehaviors(BehavioredClassifier classifier, java.util.Collection<Behavior> result, boolean collectOwned, boolean collectPrivate)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectInheritedReceptions(Classifier classifier, java.util.Collection result, boolean collectOwned, boolean collectPrivate)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedcollectPrivate - if false, do not collect privatepublic static void collectInheritedRealizedInterfaces(BehavioredClassifier classifier, java.util.Collection result, boolean collectOwned)
classifier - classifierresult - result collectioncollectOwned - if true, collected also ownedpublic static java.util.List<EnumerationLiteral> getAllLiterals(Enumeration enumeration)
enumeration - enumerationpublic static boolean isClassifierOfType(Classifier classifier, Classifier type)
classifier - the give classifiertype - the given typepublic static boolean isClassifierOfType(java.util.Collection<? extends Classifier> classifiers, Classifier type)
classifiers - the given classifiertype - the given typepublic static java.util.List<Interface> getRealizedInterfaces(BehavioredClassifier classifier)
classifier - given classifier@CheckForNull public static Classifier checkForDerivedClassifier(java.util.Collection<? extends Classifier> classifiers, Classifier checkFor)
classifiers - collection of classifiers to look incheckFor - target classifierpublic static boolean isDerivedClassifier(Classifier parent, @CheckForNull Classifier child)
parent - parentchild - possible parentpublic static boolean isDerivedOrRealizes(Classifier classifier, Classifier type)
classifier - classifier to checktype - typepublic static boolean isSecondTypeCompatibleToFirst(Type firstType, java.util.Collection<Type> secondType, boolean checkRealizedInterfaces)
firstType - type to which types should be checked.secondType - types which should be compared to the first type.checkRealizedInterfaces - indicates if realized interfaces should be taken into account when checking type compatibility.public static boolean isSecondTypeCompatibleToFirst(@CheckForNull
                                                    Type firstType,
                                                    @CheckForNull
                                                    Type secondType,
                                                    boolean checkRealizedInterfaces)
firstType - parameter, to which the 2nd parameter must be compatible.secondType - parameter, which should be compatible to the 1st.checkRealizedInterfaces - indicates if realized interfaces should be taken into account when checking type compatibility.public static void collectRealizedInterfaces(java.util.Collection<? extends Classifier> classifiers, java.util.Collection<Interface> result)
classifiers - classifiers for which realized interfaces should be collected.result - a set in which realized interfaces should be collected.public static java.util.Collection<Classifier> removeDerivedClassifiers(java.util.Collection<Classifier> classifiers)
classifiers - classifier hierarchy to optimize@Deprecated public static java.util.Set<Classifier> getOptimizedClassifierHierarchy(java.util.Set<Classifier> classifiers)
removeDerivedClassifiers(Collection)@Deprecated @CheckForNull public static Classifier getClassifierFor(Element element, java.lang.String classifierName, java.lang.Class type)
ClassifierFinder@Deprecated @CheckForNull public static Classifier getClassifierFor(Element element, java.lang.String elementName, java.lang.Class type, java.util.Collection<java.lang.Class> classifiersType, ClassifierFinder.SimpleNameResolver resolverShort)
ClassifierFinder@Deprecated @CheckForNull public static Classifier getClassifierFor(@CheckForNull Element element, java.lang.String elementName, java.lang.Class type, java.util.Collection<java.lang.Class> classifiersType, ClassifierFinder.SimpleNameResolver resolverShort, boolean createIfNotFound)
ClassifierFinder@Deprecated @CheckForNull public static Classifier findDataTypeFor(Project project, java.lang.String name, @CheckForNull java.util.Collection restricted)
ClassifierFinder@Deprecated public static java.util.Collection<TypedElement> getAssociationEnds(Classifier classifier)
public static boolean isOperationEqual(Operation op1, Operation op2)
op1 - First operation.op2 - Second operation.public static boolean isBehavioralFeatureEqual(BehavioralFeature feature1, BehavioralFeature feature2, boolean compareReturnParameter)
feature1 - first featurefeature2 - second featurecompareReturnParameter - take into account return parameter(s)public static boolean areEqualParameterTypes(BehavioralFeature feature1, BehavioralFeature feature2)
feature1 - feature to be compared with.feature2 - feature to be compared with.public static boolean areEqualParameterTypes(BehavioralFeature feature1, BehavioralFeature feature2, boolean compareReturnParameter)
feature1 - feature to be compared with.feature2 - feature to be compared with.compareReturnParameter - take into account return parameter(s)@CheckForNull public static InterfaceRealization findInterfaceRealization(BehavioredClassifier implementingClass, Interface contract)
implementingClass - classcontract - interface@CheckForNull public static Generalization findGeneralization(Classifier general, Classifier specific)
general - general classifierspecific - specific classifierpublic static java.util.List<Parameter> getParameters(BehavioralFeature feature)
feature - the given featurepublic static java.util.List<Parameter> getReturnParameters(BehavioralFeature feature)
feature - the given featurepublic static java.util.Collection<Association> collectCommonAssociations(java.util.Collection<? extends Classifier> classifiers1, java.util.Collection<? extends Classifier> classifiers2)
classifiers1 - one classifiers collectionclassifiers2 - second classifiers collectionpublic static java.util.Collection<Interface> getProvided(Class component)
InterfaceRealization,
 2) provided interfaces of the component ports,
 3) component port types which are interfaces.public static java.util.List<BehavioredClassifier> getImplementedClasses(Interface anInterface)
anInterface - an interface for which to get classifiers.public static void removeRedefined(java.util.Collection<? extends RedefinableElement> major, java.util.Collection<? extends RedefinableElement>... additional)
major - elements to remove redefined elements fromadditional - elements to remove redefined elements frompublic static boolean isSameOrRedefined(Property first, Property second)
first - first propertysecond - second propertypublic static java.util.List<Property> getPropertiesWithoutRedefined(Classifier classifier)
classifier - classifiers from which properties will be collected