public class OCLUMLUtil
extends org.eclipse.uml2.uml.util.UMLUtil
org.eclipse.uml2.uml.util.UMLUtil.Ecore2UMLConverter, org.eclipse.uml2.uml.util.UMLUtil.PackageMerger, org.eclipse.uml2.uml.util.UMLUtil.Profile2EPackageConverter, org.eclipse.uml2.uml.util.UMLUtil.ProfileApplicationHelper, org.eclipse.uml2.uml.util.UMLUtil.QualifiedTextProvider, org.eclipse.uml2.uml.util.UMLUtil.StereotypeApplicationHelper, org.eclipse.uml2.uml.util.UMLUtil.TemplateExpander, org.eclipse.uml2.uml.util.UMLUtil.UML2EcoreConverter
org.eclipse.uml2.common.util.UML2Util.Converter, org.eclipse.uml2.common.util.UML2Util.EClassMatcher, org.eclipse.uml2.common.util.UML2Util.EObjectMatcher, org.eclipse.uml2.common.util.UML2Util.EStructuralFeatureMatcher
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PLUGIN_ID
The shared UML binding plugin identification.
|
ANNOTATION__DUPLICATES, ANNOTATION__REDEFINES, ANNOTATION__SUBSETS, ANNOTATION__UNION, ANNOTATION_DETAIL__BODY, ANNOTATION_DETAIL__DERIVATION, ANNOTATION_DETAIL__INITIAL, ANNOTATION_DETAIL__URI, EMF_GEN_MODEL_PACKAGE_NS_URI, ENUMERATION__CONTENT_KIND, ENUMERATION__FEATURE_KIND, ENUMERATION__VISIBILITY_KIND, ENUMERATION_LITERAL__ATTRIBUTE, ENUMERATION_LITERAL__ATTRIBUTE_WILDCARD, ENUMERATION_LITERAL__ELEMENT, ENUMERATION_LITERAL__ELEMENT_ONLY, ENUMERATION_LITERAL__ELEMENT_WILDCARD, ENUMERATION_LITERAL__EMPTY, ENUMERATION_LITERAL__GROUP, ENUMERATION_LITERAL__MIXED, ENUMERATION_LITERAL__NONE, ENUMERATION_LITERAL__READ_ONLY, ENUMERATION_LITERAL__READ_ONLY_UNSETTABLE, ENUMERATION_LITERAL__READ_WRITE, ENUMERATION_LITERAL__READ_WRITE_UNSETTABLE, ENUMERATION_LITERAL__SIMPLE, ENUMERATION_LITERAL__UNSPECIFIED, LANGUAGE__JAVA, LANGUAGE__OCL, OPTION__DISCARD, OPTION__IGNORE, OPTION__PROCESS, OPTION__REPORT, PROFILE__ECORE, STEREOTYPE__E_ATTRIBUTE, STEREOTYPE__E_CLASS, STEREOTYPE__E_DATA_TYPE, STEREOTYPE__E_ENUM, STEREOTYPE__E_ENUM_LITERAL, STEREOTYPE__E_GENERIC_TYPE, STEREOTYPE__E_OPERATION, STEREOTYPE__E_PACKAGE, STEREOTYPE__E_PARAMETER, STEREOTYPE__E_REFERENCE, STEREOTYPE__E_TYPE_PARAMETER, TAG_DEFINITION__ANNOTATIONS, TAG_DEFINITION__ATTRIBUTE_NAME, TAG_DEFINITION__BASE_PACKAGE, TAG_DEFINITION__BOUNDS, TAG_DEFINITION__CLASS_NAME, TAG_DEFINITION__DATA_TYPE_NAME, TAG_DEFINITION__ENUM_LITERAL_NAME, TAG_DEFINITION__ENUM_NAME, TAG_DEFINITION__INSTANCE_CLASS_NAME, TAG_DEFINITION__IS_ID, TAG_DEFINITION__IS_RESOLVE_PROXIES, TAG_DEFINITION__IS_TRANSIENT, TAG_DEFINITION__IS_UNSETTABLE, TAG_DEFINITION__IS_VOLATILE, TAG_DEFINITION__KEYS, TAG_DEFINITION__LITERAL, TAG_DEFINITION__LOWER_BOUND, TAG_DEFINITION__NS_PREFIX, TAG_DEFINITION__NS_URI, TAG_DEFINITION__OPERATION_NAME, TAG_DEFINITION__PACKAGE_NAME, TAG_DEFINITION__PARAMETER_NAME, TAG_DEFINITION__PREFIX, TAG_DEFINITION__REFERENCE_NAME, TAG_DEFINITION__UPPER_BOUND, TAG_DEFINITION__VISIBILITY, TAG_DEFINITION__XML_CONTENT_KIND, TAG_DEFINITION__XML_FEATURE_KIND, TAG_DEFINITION__XML_NAME, TAG_DEFINITION__XML_NAMESPACE, UML2_GEN_MODEL_PACKAGE_1_1_NS_URI, UML2_GEN_MODEL_PACKAGE_NS_URI, UML2_TYPES_PACKAGE_4_0_NS_URI, UML2_UML_PACKAGE_2_0_NS_URI, UML2_UML_PACKAGE_2_0_NS_URI_COMPATIBILITY, UML2_UML_PACKAGE_4_0_NS_URI, UML2_UML_PACKAGE_4_1_NS_URI
Modifier and Type | Method and Description |
---|---|
static org.eclipse.uml2.uml.Namespace |
findNamespace(java.util.List<java.lang.String> qualifiedName,
org.eclipse.emf.ecore.resource.ResourceSet rset)
Searches the specified resource set for a UML namespace (not necessarily
a package).
|
protected static org.eclipse.emf.ecore.EPackage |
findPackage(java.util.List<java.lang.String> packageNames,
org.eclipse.emf.ecore.EPackage.Registry registry)
Looks in the given registry for a package with the specified qualified
package name.
|
static org.eclipse.uml2.uml.Package |
findPackage(java.util.List<java.lang.String> packageNames,
org.eclipse.emf.ecore.resource.ResourceSet rset)
Searches the specified resource set for a UML package.
|
static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Property> |
getAllAttributes(org.eclipse.uml2.uml.Classifier classifier)
A foreign method for the
Classifier that obtains all attributes
regardless of visibility, for OCL purposes. |
static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Operation> |
getAllOperations(org.eclipse.uml2.uml.Classifier classifier)
A foreign method for the
Classifier that obtains all operations
regardless of visibility, for OCL purposes. |
static java.util.List<org.eclipse.uml2.uml.Reception> |
getAllReceptions(org.eclipse.uml2.uml.Class clazz)
Foreign method for the getAllReceptions() query that
is missing from the UML metamodel.
|
static org.eclipse.uml2.uml.Classifier |
getClassifier(org.eclipse.emf.ecore.EClassifier eclassifier,
org.eclipse.emf.ecore.resource.ResourceSet rset)
Obtains the UML classifier corresponding to the specified Ecore classifier,
which is the type of some object in an OCL expression evaluation.
|
static org.eclipse.emf.ecore.EClassifier |
getEClassifier(org.eclipse.uml2.uml.Classifier umlClassifier,
java.lang.Object element,
org.eclipse.emf.ecore.EPackage.Registry registry)
Looks up the Ecore definition of the specified UML classifier, using the
specified
element as a context for finding profile
applications in the case that the classifier is a stereotype or some
other type in a Profile . |
static org.eclipse.emf.ecore.EPackage |
getEPackage(org.eclipse.uml2.uml.Package pkg,
org.eclipse.emf.ecore.EPackage.Registry registry)
Searches the specified package registry set for an Ecore definition of
the specified UML package.
|
static org.eclipse.uml2.uml.Class |
getMetaclass(org.eclipse.uml2.uml.Element element)
Obtains the UML metaclass of the specified model element.
|
static org.eclipse.uml2.uml.Package |
getUMLMetamodel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Obtains the UML metamodel library loaded in the specified resource set,
loading it if necessary.
|
static boolean |
isNonNavigableAssocationEndOf(org.eclipse.uml2.uml.Property associationEnd,
org.eclipse.uml2.uml.Classifier endClassifier)
A foreign method for the
Property that queries whether it is a
non-navigable association end of a given classifier. |
applyStereotype, convertFromEcore, convertFromEcore, convertToEcore, convertToEcore, convertToEcore, convertToEcore, expand, expand, findNamedElements, findNamedElements, findNamedElements, findNamedElements, findNamedElements, findNamedElements, findNamedElements, findValidRedefinitions, findValidRedefinitions, findValidSubsets, findValidSubsets, getBaseElement, getBaseElement, getEClassifier, getEClassifier, getEcoreName, getEPackage, getETypeParameters, getNamedElement, getNamedElement, getNearestBaseElement, getOCLBody, getOwnedAttributes, getOwnedOperations, getOwningElement, getProfile, getProfile, getQualifiedName, getQualifiedText, getRedefinedFeatures, getStereotype, getStereotype, getStereotype, getStereotypeApplication, getTagDefinition, getTaggedValue, init, isBoolean, isInteger, isReal, isRedefinitionValid, isString, isSubsetValid, isUnlimitedNatural, merge, merge, safeApplyStereotype, setBaseElement, setTaggedValue
addConstraint, addDocumentation, addDocumentation, addInvocationDelegate, addSettingDelegate, addValidationDelegate, createEAnnotation, destroy, destroyAll, findENamedElements, findENamedElements, findEObject, findEObject, getAllContents, getCommonEType, getContainingEObject, getEAnnotation, getGreaterUpperBound, getInstanceCount, getInverseReferences, getLesserLowerBound, getMessageSubstitution, getMessageSubstitutions, getMessageSubstitutions, getMessageSubstitutions, getNonNavigableInverseReferences, getQualifiedName, getQualifiedText, getQualifiedText, getQualifiedTextSegment, getResourceBundle, getResourceBundle, getResourceBundleURIs, getResourceBundleURIs, getResourceSet, getRootContainers, getString, getValidJavaIdentifier, getValidJavaIdentifier, getValidNCName, getValidNCName, getXMIIdentifier, getXMIIdentifier, intersect, isEmpty, isNCNamePart, isNCNameStart, load, loadClassFromSystemProperty, removeReferences, safeEquals
public static final java.lang.String PLUGIN_ID
public static java.util.List<org.eclipse.uml2.uml.Reception> getAllReceptions(org.eclipse.uml2.uml.Class clazz)
clazz
- a UML classpublic static org.eclipse.uml2.uml.Class getMetaclass(org.eclipse.uml2.uml.Element element)
element
- an element in a UML modelnull
if the element is
not in a resource setpublic static org.eclipse.uml2.uml.Classifier getClassifier(org.eclipse.emf.ecore.EClassifier eclassifier, org.eclipse.emf.ecore.resource.ResourceSet rset)
eclassifier
- an Ecore definition of a UML classifierrset
- the resource set in which to look for the corresponding UML
classifiernull
if not foundpublic static org.eclipse.uml2.uml.Package findPackage(java.util.List<java.lang.String> packageNames, org.eclipse.emf.ecore.resource.ResourceSet rset)
packageNames
- the qualified package namerset
- the resource set to searchnull
if not foundpublic static org.eclipse.uml2.uml.Namespace findNamespace(java.util.List<java.lang.String> qualifiedName, org.eclipse.emf.ecore.resource.ResourceSet rset)
qualifiedName
- the qualified namespace namerset
- the resource set to searchnull
if not foundpublic static org.eclipse.emf.ecore.EPackage getEPackage(org.eclipse.uml2.uml.Package pkg, org.eclipse.emf.ecore.EPackage.Registry registry)
pkg
- the UML packageregistry
- the registry in which to look for the Ecore definitionnull
if not foundpublic static org.eclipse.emf.ecore.EClassifier getEClassifier(org.eclipse.uml2.uml.Classifier umlClassifier, java.lang.Object element, org.eclipse.emf.ecore.EPackage.Registry registry)
element
as a context for finding profile
applications in the case that the classifier is a stereotype or some
other type in a Profile
. Finding the Ecore definition of a profile
type requires finding the actual applied version of the profile.umlClassifier
- a UML classifierelement
- an element in the context of which the OCL evaluation
is being performedregistry
- the package registry in which to search for the Ecore
definitionnull
if not
foundprotected static org.eclipse.emf.ecore.EPackage findPackage(java.util.List<java.lang.String> packageNames, org.eclipse.emf.ecore.EPackage.Registry registry)
packageNames
- the qualified package namenull
if not foundpublic static org.eclipse.uml2.uml.Package getUMLMetamodel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
resourceSet
- a resource setpublic static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Property> getAllAttributes(org.eclipse.uml2.uml.Classifier classifier)
Classifier
that obtains all attributes
regardless of visibility, for OCL purposes.classifier
- a classifierpublic static boolean isNonNavigableAssocationEndOf(org.eclipse.uml2.uml.Property associationEnd, org.eclipse.uml2.uml.Classifier endClassifier)
Property
that queries whether it is a
non-navigable association end of a given classifier. This means that the
end is association-owned and opposite to a classifier-owned end whose
type is a supertype of the specified classifier.associationEnd
- the purported non-navigable association endendClassifier
- a classifier from which we purport to navigate the associationtrue
if the association-end is a non-navigable end
of the classifier; false
, otherwisepublic static org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Operation> getAllOperations(org.eclipse.uml2.uml.Classifier classifier)
Classifier
that obtains all operations
regardless of visibility, for OCL purposes.classifier
- a classifier