public class PivotUtilInternal
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
noDebug |
Constructor and Description |
---|
PivotUtilInternal() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.common.util.URI |
appendASExtensionSuffix(org.eclipse.emf.common.util.URI uri) |
static void |
debugPrintln(java.lang.Object string) |
static void |
debugReset() |
static EnvironmentFactoryInternal |
findEnvironmentFactory(org.eclipse.emf.ecore.EObject eObject) |
static EnvironmentFactoryInternal |
findEnvironmentFactory(org.eclipse.emf.ecore.resource.Resource resource) |
static EnvironmentFactoryInternal |
findEnvironmentFactory(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
static PivotMetamodelManager |
findMetamodelManager(org.eclipse.emf.ecore.resource.Resource resource) |
static Type |
findTypeOf(MetamodelManagerInternal metamodelManager,
org.eclipse.emf.ecore.EClassifier eClass) |
static org.eclipse.emf.common.util.URI |
getASURI(org.eclipse.emf.common.util.URI uri) |
static Attribution |
getAttribution(org.eclipse.emf.ecore.EObject eObject)
Deprecated.
use ElementUtil.getParserContext(eObject).getAttribution, or
|
static Type |
getBehavioralType(Type type) |
static Type |
getBehavioralType(TypedElement element) |
static java.lang.String |
getBodyExpression(java.lang.String umlBody)
Trim a surrounding "result=(...)" to convert a UML BodyCondition to an OCL BodyExpression.
|
static EnvironmentFactoryInternal |
getEnvironmentFactory(org.eclipse.emf.ecore.resource.Resource resource) |
static Evaluator |
getEvaluator(org.eclipse.emf.ecore.EObject eObject)
Deprecated.
use getExecutor()
|
static Executor |
getExecutor(org.eclipse.emf.ecore.EObject eObject) |
static LibraryFeature |
getImplementation(Operation localOperation) |
static org.eclipse.emf.common.util.URI |
getNonASURI(org.eclipse.emf.common.util.URI uri) |
static Type |
getNonLambdaType(Type type) |
static <T extends Element> |
getNonNullAst(java.lang.Class<T> pivotClass,
Pivotable pivotableElement) |
static java.lang.String |
getNsURI(Element element)
Return a URI based on the nsURI of the immediate parent package.
|
static java.lang.String |
getNsURI(org.eclipse.emf.ecore.EModelElement element)
Return a URI based on the nsURI of the immediate parent package.
|
static java.util.List<OCLExpression> |
getOwnedArgumentsList(OperationCallExp operationCallExp) |
static java.util.List<Class> |
getOwnedClassesList(Package asPackage) |
static java.util.List<Import> |
getOwnedImportsList(Model asModel) |
static java.util.List<Variable> |
getOwnedIteratorsList(LoopExp loopExp) |
static java.util.List<Operation> |
getOwnedOperationsList(Class asClass) |
static java.util.List<Package> |
getOwnedPackagesList(Model asModel) |
static java.util.List<Package> |
getOwnedPackagesList(Package asPackage) |
static java.util.List<Parameter> |
getOwnedParametersList(Operation operation) |
static java.util.List<TemplateParameter> |
getOwnedParametersList(TemplateSignature templateSignature) |
static java.util.List<CollectionLiteralPart> |
getOwnedPartsList(CollectionLiteralExp collectionLiteralExp) |
static java.util.List<MapLiteralPart> |
getOwnedPartsList(MapLiteralExp mapLiteralExp) |
static java.util.List<ShadowPart> |
getOwnedPartsList(ShadowExp shadowExp) |
static java.util.List<Property> |
getOwnedPropertiesList(Class asClass) |
static java.lang.String |
getSpecificationRole(LanguageExpression specification) |
static Property |
getStatusTupleTypeStatusPart(TupleType tupleType) |
static java.lang.String |
getStereotype(Constraint object) |
static java.util.List<Class> |
getSuperClassesList(Class asClass) |
static Type |
getType(Type type) |
static Type |
getType(TypedElement typedElement) |
static boolean |
isASURI(java.lang.String uri) |
static boolean |
isASURI(org.eclipse.emf.common.util.URI uri) |
static boolean |
isImplicitPackage(Package asPackage)
Return true if the sole purpose of asPackage is to host implicit opposite properties.
|
static boolean |
isLibraryType(Type type)
Deprecated.
use the inverse of isOrphanType
|
static boolean |
isOrphanProperty(Property property)
Return true if this is a synthetic property whose definition is provided by the Orphanage.
|
static boolean |
isOrphanType(Type type)
Return true if this is a synthetic type whose definition is provided by the Orphanage.
|
static boolean |
isValidIdentifier(java.lang.String value) |
static <T extends org.eclipse.emf.ecore.EObject> |
refreshList(java.util.List<? super T> oldElements,
java.util.List<? extends T> newElements) |
static <T extends org.eclipse.emf.ecore.EObject> |
refreshSet(java.util.List<? super T> oldElements,
java.util.Collection<? extends T> newElements) |
static void |
resetContainer(org.eclipse.emf.ecore.EObject eObject)
Detach object from its container so that a child-stealing detection is avoided when attaching to a new container.
|
static org.eclipse.emf.common.util.URI |
trimASExtensionSuffix(org.eclipse.emf.common.util.URI uri) |
@NonNull public static org.eclipse.emf.common.util.URI appendASExtensionSuffix(@NonNull org.eclipse.emf.common.util.URI uri)
public static void debugPrintln(@Nullable java.lang.Object string)
public static void debugReset()
@Nullable public static EnvironmentFactoryInternal findEnvironmentFactory(@Nullable org.eclipse.emf.ecore.EObject eObject)
@Nullable public static EnvironmentFactoryInternal findEnvironmentFactory(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
@Nullable public static EnvironmentFactoryInternal findEnvironmentFactory(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
@Nullable public static PivotMetamodelManager findMetamodelManager(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
public static Type findTypeOf(@NonNull MetamodelManagerInternal metamodelManager, @NonNull org.eclipse.emf.ecore.EClassifier eClass)
@NonNull public static org.eclipse.emf.common.util.URI getASURI(@NonNull org.eclipse.emf.common.util.URI uri)
@Deprecated @NonNull public static Attribution getAttribution(@NonNull org.eclipse.emf.ecore.EObject eObject)
@Nullable public static Type getBehavioralType(@Nullable TypedElement element)
@NonNull public static java.lang.String getBodyExpression(@NonNull java.lang.String umlBody)
@NonNull public static EnvironmentFactoryInternal getEnvironmentFactory(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
@Deprecated @NonNull public static Evaluator getEvaluator(@NonNull org.eclipse.emf.ecore.EObject eObject)
@NonNull public static Executor getExecutor(@NonNull org.eclipse.emf.ecore.EObject eObject)
@Nullable public static LibraryFeature getImplementation(@NonNull Operation localOperation)
@NonNull public static org.eclipse.emf.common.util.URI getNonASURI(@NonNull org.eclipse.emf.common.util.URI uri)
@NonNull public static <T extends Element> T getNonNullAst(@NonNull java.lang.Class<T> pivotClass, @NonNull Pivotable pivotableElement)
public static java.lang.String getNsURI(@NonNull org.eclipse.emf.ecore.EModelElement element)
public static java.lang.String getNsURI(@NonNull Element element)
@NonNull public static java.util.List<OCLExpression> getOwnedArgumentsList(@NonNull OperationCallExp operationCallExp)
@NonNull public static java.util.List<Class> getOwnedClassesList(Package asPackage)
@NonNull public static java.util.List<Import> getOwnedImportsList(@NonNull Model asModel)
@NonNull public static java.util.List<Variable> getOwnedIteratorsList(@NonNull LoopExp loopExp)
@NonNull public static java.util.List<Operation> getOwnedOperationsList(Class asClass)
@NonNull public static java.util.List<Package> getOwnedPackagesList(@NonNull Model asModel)
@NonNull public static java.util.List<Package> getOwnedPackagesList(Package asPackage)
@NonNull public static java.util.List<Parameter> getOwnedParametersList(@NonNull Operation operation)
@NonNull public static java.util.List<TemplateParameter> getOwnedParametersList(@NonNull TemplateSignature templateSignature)
@NonNull public static java.util.List<CollectionLiteralPart> getOwnedPartsList(@NonNull CollectionLiteralExp collectionLiteralExp)
@NonNull public static java.util.List<MapLiteralPart> getOwnedPartsList(@NonNull MapLiteralExp mapLiteralExp)
@NonNull public static java.util.List<ShadowPart> getOwnedPartsList(@NonNull ShadowExp shadowExp)
@NonNull public static java.util.List<Property> getOwnedPropertiesList(Class asClass)
public static java.lang.String getSpecificationRole(@NonNull LanguageExpression specification)
@Nullable public static Property getStatusTupleTypeStatusPart(@NonNull TupleType tupleType)
public static java.lang.String getStereotype(@NonNull Constraint object)
@NonNull public static java.util.List<Class> getSuperClassesList(Class asClass)
@Nullable public static Type getType(@Nullable TypedElement typedElement)
public static boolean isASURI(@Nullable java.lang.String uri)
public static boolean isASURI(@Nullable org.eclipse.emf.common.util.URI uri)
public static boolean isImplicitPackage(Package asPackage)
@Deprecated public static boolean isLibraryType(@NonNull Type type)
public static boolean isOrphanProperty(@NonNull Property property)
public static boolean isOrphanType(@NonNull Type type)
public static boolean isValidIdentifier(@Nullable java.lang.String value)
public static <T extends org.eclipse.emf.ecore.EObject> void refreshList(@Nullable java.util.List<? super T> oldElements, @Nullable java.util.List<? extends T> newElements)
public static <T extends org.eclipse.emf.ecore.EObject> void refreshSet(@Nullable java.util.List<? super T> oldElements, @Nullable java.util.Collection<? extends T> newElements)
public static void resetContainer(@NonNull org.eclipse.emf.ecore.EObject eObject)
@NonNull public static org.eclipse.emf.common.util.URI trimASExtensionSuffix(@NonNull org.eclipse.emf.common.util.URI uri)