public class PivotUtilInternal extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
noDebug |
Constructor and Description |
---|
PivotUtilInternal() |
Modifier and Type | Method and Description |
---|---|
static URI |
appendASExtensionSuffix(URI uri) |
static PivotHelper |
createHelper(EnvironmentFactory environmentFactory)
Deprecated.
|
static void |
debugPrintln(Object string) |
static void |
debugReset() |
static EnvironmentFactoryInternal |
findEnvironmentFactory(EObject eObject) |
static EnvironmentFactoryInternal |
findEnvironmentFactory(Resource resource) |
static EnvironmentFactoryInternal |
findEnvironmentFactory(ResourceSet resourceSet) |
static PivotMetamodelManager |
findMetamodelManager(Resource resource) |
static Type |
findTypeOf(MetamodelManagerInternal metamodelManager,
EClassifier eClass) |
static URI |
getASURI(URI uri) |
static Attribution |
getAttribution(EObject eObject)
Deprecated.
use ElementUtil.getParserContext(eObject).getAttribution, or
|
static Type |
getBehavioralType(Type type) |
static Type |
getBehavioralType(TypedElement element) |
static String |
getBodyExpression(String umlBody)
Trim a surrounding "result=(...)" to convert a UML BodyCondition to an OCL BodyExpression.
|
static EnvironmentFactoryInternal |
getEnvironmentFactory(Resource resource) |
static Evaluator |
getEvaluator(EObject eObject)
Deprecated.
use getExecutor()
|
static Executor |
getExecutor(EObject eObject) |
static LibraryFeature |
getImplementation(Operation localOperation) |
static URI |
getNonASURI(URI uri) |
static Type |
getNonLambdaType(Type type) |
static <T extends Element> |
getNonNullAst(Class<T> pivotClass,
Pivotable pivotableElement) |
static String |
getNsURI(EModelElement element)
Return a URI based on the nsURI of the immediate parent package.
|
static List<OCLExpression> |
getOwnedArgumentsList(OperationCallExp operationCallExp) |
static List<Class> |
getOwnedClassesList(Package asPackage) |
static List<Import> |
getOwnedImportsList(Model asModel) |
static List<Variable> |
getOwnedIteratorsList(LoopExp loopExp) |
static List<Operation> |
getOwnedOperationsList(Class asClass) |
static List<Package> |
getOwnedPackagesList(Model asModel) |
static List<Package> |
getOwnedPackagesList(Package asPackage) |
static List<Parameter> |
getOwnedParametersList(Operation operation) |
static List<TemplateParameter> |
getOwnedParametersList(TemplateSignature templateSignature) |
static List<CollectionLiteralPart> |
getOwnedPartsList(CollectionLiteralExp collectionLiteralExp) |
static List<MapLiteralPart> |
getOwnedPartsList(MapLiteralExp mapLiteralExp) |
static List<ShadowPart> |
getOwnedPartsList(ShadowExp shadowExp) |
static List<TupleLiteralPart> |
getOwnedPartsList(TupleLiteralExp tupleLiteralExp) |
static List<Property> |
getOwnedPropertiesList(Class asClass) |
static String |
getSpecificationRole(LanguageExpression asSpecification) |
static Property |
getStatusTupleTypeStatusPart(TupleType tupleType) |
static String |
getStereotype(Constraint object) |
static List<Class> |
getSuperClassesList(Class asClass) |
static Type |
getType(Type type) |
static Type |
getType(TypedElement typedElement) |
static boolean |
isASURI(String uri) |
static boolean |
isASURI(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(String value) |
static <T extends EObject> |
refreshList(List<? super T> oldElements,
List<? extends T> newElements) |
static <T extends EObject> |
refreshSet(List<? super T> oldElements,
Collection<? extends T> newElements) |
static void |
resetContainer(EObject eObject)
Detach object from its container so that a child-stealing detection is avoided when attaching to a new container.
|
static URI |
trimASExtensionSuffix(URI uri) |
public static URI appendASExtensionSuffix(URI uri)
@Deprecated public static PivotHelper createHelper(EnvironmentFactory environmentFactory)
public static void debugPrintln(Object string)
public static void debugReset()
public static EnvironmentFactoryInternal findEnvironmentFactory(EObject eObject)
public static EnvironmentFactoryInternal findEnvironmentFactory(Resource resource)
public static EnvironmentFactoryInternal findEnvironmentFactory(ResourceSet resourceSet)
public static PivotMetamodelManager findMetamodelManager(Resource resource)
public static Type findTypeOf(MetamodelManagerInternal metamodelManager, EClassifier eClass)
public static URI getASURI(URI uri)
@Deprecated public static Attribution getAttribution(EObject eObject)
public static Type getBehavioralType(TypedElement element)
public static String getBodyExpression(String umlBody)
public static EnvironmentFactoryInternal getEnvironmentFactory(Resource resource)
@Deprecated public static Evaluator getEvaluator(EObject eObject)
public static Executor getExecutor(EObject eObject)
public static LibraryFeature getImplementation(Operation localOperation)
public static URI getNonASURI(URI uri)
public static <T extends Element> T getNonNullAst(Class<T> pivotClass, Pivotable pivotableElement)
public static String getNsURI(EModelElement element)
public static List<OCLExpression> getOwnedArgumentsList(OperationCallExp operationCallExp)
public static List<Variable> getOwnedIteratorsList(LoopExp loopExp)
public static List<Operation> getOwnedOperationsList(Class asClass)
public static List<Parameter> getOwnedParametersList(Operation operation)
public static List<TemplateParameter> getOwnedParametersList(TemplateSignature templateSignature)
public static List<CollectionLiteralPart> getOwnedPartsList(CollectionLiteralExp collectionLiteralExp)
public static List<MapLiteralPart> getOwnedPartsList(MapLiteralExp mapLiteralExp)
public static List<ShadowPart> getOwnedPartsList(ShadowExp shadowExp)
public static List<TupleLiteralPart> getOwnedPartsList(TupleLiteralExp tupleLiteralExp)
public static List<Property> getOwnedPropertiesList(Class asClass)
public static String getSpecificationRole(LanguageExpression asSpecification)
public static Property getStatusTupleTypeStatusPart(TupleType tupleType)
public static String getStereotype(Constraint object)
public static Type getType(TypedElement typedElement)
public static boolean isASURI(String uri)
public static boolean isASURI(URI uri)
public static boolean isImplicitPackage(Package asPackage)
@Deprecated public static boolean isLibraryType(Type type)
public static boolean isOrphanProperty(Property property)
public static boolean isOrphanType(Type type)
public static boolean isValidIdentifier(String value)
public static <T extends EObject> void refreshList(List<? super T> oldElements, List<? extends T> newElements)
public static <T extends EObject> void refreshSet(List<? super T> oldElements, Collection<? extends T> newElements)
public static void resetContainer(EObject eObject)
public static URI trimASExtensionSuffix(URI uri)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.