public class InstanceSpecificationUtil
extends java.lang.Object
| Constructor and Description |
|---|
InstanceSpecificationUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<org.eclipse.uml2.uml.Classifier> |
getAllClassifiers(org.eclipse.uml2.uml.InstanceSpecification is)
Given an InstanceSpecification, this method returns all its Classifiers
(including supertypes)
|
static boolean |
getLinkEnds(org.eclipse.uml2.uml.InstanceSpecification link,
org.eclipse.emf.ecore.EObject[] ends)
Method to get link's source and target ends in an array, ordered such
that end[0] is the source end and end[1] is the target end.
|
static boolean |
getUnspecifiedLinkEnds(org.eclipse.uml2.uml.InstanceSpecification link,
org.eclipse.emf.ecore.EObject[] ends)
Return the unspecified link's ends in the ends parameter.
|
static boolean |
hasUnspecifiedLinkEnds(org.eclipse.uml2.uml.InstanceSpecification link,
org.eclipse.emf.ecore.EObject[] ends)
Returns whether the specified ends correspond to the specified link.
|
static boolean |
isActiveClassifier(org.eclipse.uml2.uml.InstanceSpecification instance1)
Given an InstanceSpecification, this method checks all its Classifiers, to see if
all of them are active
(including supertypes)
|
static boolean |
isAssociationClassifier(org.eclipse.uml2.uml.InstanceSpecification is)
Verifies the first classifier is an association or subtype (i.e.
|
public static java.util.Set<org.eclipse.uml2.uml.Classifier> getAllClassifiers(org.eclipse.uml2.uml.InstanceSpecification is)
is - given InstanceSpecificationpublic static boolean isActiveClassifier(org.eclipse.uml2.uml.InstanceSpecification instance1)
instance1 - given InstanceSpecificationpublic static boolean isAssociationClassifier(org.eclipse.uml2.uml.InstanceSpecification is)
is - given InstanceSpecificationpublic static boolean getUnspecifiedLinkEnds(org.eclipse.uml2.uml.InstanceSpecification link,
org.eclipse.emf.ecore.EObject[] ends)
link - unspecified link. (This is not enforced, but callers are
expected to only pass in an unspecified link.)ends - ends of the unspecified link.public static boolean hasUnspecifiedLinkEnds(org.eclipse.uml2.uml.InstanceSpecification link,
org.eclipse.emf.ecore.EObject[] ends)
link - InstanceSpecification which may or may not correspond to the endsends - EObject which may or may not correspond to the linkpublic static boolean getLinkEnds(org.eclipse.uml2.uml.InstanceSpecification link,
org.eclipse.emf.ecore.EObject[] ends)
link - the link whose ends we need.ends - the elements at the ends.