Package io.opencaesar.oml.util
Class OmlSearch
java.lang.Object
io.opencaesar.oml.util.OmlIndex
io.opencaesar.oml.util.OmlSearch
The Search API for the model. It complements the
OmlIndex
API by additional utilities.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<Classifier>
findAllDomains
(SemanticProperty property) Deprecated.As of 2.5.0.static Set<Classifier>
findAllDomains
(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds all (direct or inherited) domains of the given propertyfindAllRanges
(SemanticProperty property) Deprecated.As of 2.5.0.findAllRanges
(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds all (direct or inherited) ranges of the given propertyfindAllSubTerms
(Term term, boolean inclusive) Deprecated.As of 2.5.0.findAllSubTerms
(Term term, boolean inclusive, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct or transitive sub (specific) terms of the given termfindAllSuperTerms
(Term term, boolean inclusive) Deprecated.As of 2.5.0.findAllSuperTerms
(Term term, boolean inclusive, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct or transitive super (general) terms of the given termstatic Set<Classifier>
findAllTypes
(Instance instance) Deprecated.As of 2.5.0.static Set<Classifier>
findAllTypes
(Instance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are direct or indirect types of the given instancefindAllTypes
(Literal literal) Deprecated.As of 2.5.0.findAllTypes
(Literal literal, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds all the scalars that are direct or indirect types of the given literalstatic Literal
findAnnotationLiteralValue
(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0.static Literal
findAnnotationLiteralValue
(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first literal value of the given annotation property in the given elementstatic Member
findAnnotationReferencedValue
(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0.static Member
findAnnotationReferencedValue
(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first referenced value of a given annotation property in the given elementfindAnnotationValues
(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0.findAnnotationValues
(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the values of a given annotation property in the given elementfindAssertions
(Instance instance) Deprecated.As of 2.5.0.findAssertions
(Instance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds assertions that are defined on the given instancefindAxioms
(Term term) Deprecated.As of 2.5.0.findAxioms
(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds axioms that are defined for the given termstatic Set<ClassifierEquivalenceAxiom>
Deprecated.As of 2.5.0.static Set<ClassifierEquivalenceAxiom>
findClassifierEquivalenceAxiomsWithSubClassifier
(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifier equivalence axioms that have the given classifier as a substatic Set<Classifier>
findDomains
(SemanticProperty property) Deprecated.As of 2.5.0.static Set<Classifier>
findDomains
(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the domains of the given semantic propertyfindEntitiesKeyedWith
(SemanticProperty property) Deprecated.As of 2.5.0.findEntitiesKeyedWith
(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find entities that have the following property included in one of their keysfindEnumerationLiterals
(Scalar scalar) Deprecated.As of 2.5.0.findEnumerationLiterals
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the list of enumeration liters of the given scalarstatic Set<Classifier>
findEquivalenceSubClassifiers
(Classifier classifier) Deprecated.As of 2.5.0.static Set<Classifier>
findEquivalenceSubClassifiers
(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are the direct equivalence sub of a given classifierfindEquivalenceSubProperties
(Property property) Deprecated.As of 2.5.0.findEquivalenceSubProperties
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds properties that are the direct equivalence sub of a given propertyfindEquivalenceSubScalars
(Scalar scalar) Deprecated.As of 2.5.0.findEquivalenceSubScalars
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars that are the direct equivalence sub of a given scalarstatic Set<Classifier>
findEquivalenceSuperClassifiers
(Classifier classifier) Deprecated.As of 2.5.0.static Set<Classifier>
findEquivalenceSuperClassifiers
(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are the direct equivalence super of a given classifierfindEquivalenceSuperProperties
(Property property) Deprecated.As of 2.5.0.findEquivalenceSuperProperties
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds properties that are the direct equivalence super of a given propertyfindEquivalenceSuperScalars
(Scalar scalar) Deprecated.As of 2.5.0.findEquivalenceSuperScalars
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars that are the direct equivalence super of a given scalarstatic Set<Classifier>
findEquivalentClassifiers
(Classifier classifier) Deprecated.As of 2.5.0.static Set<Classifier>
findEquivalentClassifiers
(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are the direct equivalent to a given classifierfindEquivalentProperties
(Property property) Deprecated.As of 2.5.0.findEquivalentProperties
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds properties that are the direct equivalent to a given propertyfindEquivalentScalars
(Scalar scalar) Deprecated.As of 2.5.0.findEquivalentScalars
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars that are the direct equivalent to a given scalarstatic Set<InstanceEnumerationAxiom>
findInstanceEnumerationAxioms
(Concept concept) Deprecated.As of 2.5.0.static Set<InstanceEnumerationAxiom>
findInstanceEnumerationAxioms
(Concept concept, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find instance enumeration axioms that are defined on the given conceptDeprecated.As of 2.5.0.findInstancesOfKind
(Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that have the given type as their direct or transitive typeDeprecated.As of 2.5.0.findInstancesOfType
(Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that have the given type as their direct typestatic Set<NamedInstance>
Deprecated.As of 2.5.0.static Set<NamedInstance>
findInstancesRelatedAsSourceTo
(NamedInstance target, Relation relation) Deprecated.As of 2.5.0.static Set<NamedInstance>
findInstancesRelatedAsSourceTo
(NamedInstance target, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds source instances that are related by a given relation to a given target instancestatic Set<NamedInstance>
findInstancesRelatedAsSourceTo
(NamedInstance target, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds source instances that are related by any relation to the given target instancestatic Set<NamedInstance>
Deprecated.As of 2.5.0.static Set<NamedInstance>
findInstancesRelatedAsTargetTo
(NamedInstance source, Relation relation) Deprecated.As of 2.5.0.static Set<NamedInstance>
findInstancesRelatedAsTargetTo
(NamedInstance source, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds target instances that are asserted as related to the given source instance by a given relationstatic Set<NamedInstance>
findInstancesRelatedAsTargetTo
(NamedInstance source, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds target instances that are asserted as related to the given source instance by any relationstatic Set<NamedInstance>
findInstancesRelatedTo
(NamedInstance instance) Deprecated.As of 2.5.0.static Set<NamedInstance>
findInstancesRelatedTo
(NamedInstance instance, Relation relation) Deprecated.As of 2.5.0.static Set<NamedInstance>
findInstancesRelatedTo
(NamedInstance instance, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that are asserted as related to the given instance by a given relationstatic Set<NamedInstance>
findInstancesRelatedTo
(NamedInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that are asserted as related to the given instance by any relationstatic boolean
findIsAnnotatedBy
(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0.static boolean
findIsAnnotatedBy
(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given element is annotated with the given annotation propertystatic boolean
findIsEnumeratedProperty
(ScalarProperty property) Deprecated.As of 2.5.0.static boolean
findIsEnumeratedProperty
(ScalarProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given scalar property has as one of its ranges an enumerated scalarstatic boolean
findIsEnumeratedScalar
(Scalar scalar) Deprecated.As of 2.5.0.static boolean
findIsEnumeratedScalar
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given scalar has enumeration literalsstatic boolean
findIsKindOf
(Instance instance, Classifier type) Deprecated.As of 2.5.0.static boolean
findIsKindOf
(Instance instance, Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given instance is typed directly or transitively by the given typestatic boolean
findIsKindOf
(Literal literal, Scalar type) Deprecated.As of 2.5.0.static boolean
findIsKindOf
(Literal literal, Scalar type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds if the given literal is typed directly or transitively by the given typestatic boolean
findIsSubTermOf
(Term term, Term superTerm) Deprecated.As of 2.5.0.static boolean
findIsSubTermOf
(Term term, Term superTerm, Set<org.eclipse.emf.ecore.resource.Resource> scope) Determines if the given term is a sub term of the given super termstatic boolean
findIsTypeOf
(Instance instance, Classifier type) Deprecated.As of 2.5.0.static boolean
findIsTypeOf
(Instance instance, Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given instance is typed directly by the given typefindKeyAxioms
(Entity entity) Deprecated.As of 2.5.0.findKeyAxioms
(Entity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find key axioms that are defined on the given entitystatic Set<LiteralEnumerationAxiom>
findLiteralEnumerationAxioms
(Scalar scalar) Deprecated.As of 2.5.0.static Set<LiteralEnumerationAxiom>
findLiteralEnumerationAxioms
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find literal enumeration axioms that are defined on the given scalarstatic StructureInstance
findPropertyContainedValue
(Instance instance, StructuredProperty property) Deprecated.As of 2.5.0.static StructureInstance
findPropertyContainedValue
(Instance instance, StructuredProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first contained value of given structured property defined on the given instancestatic Set<PropertyEquivalenceAxiom>
Deprecated.As of 2.5.0.static Set<PropertyEquivalenceAxiom>
findPropertyEquivalenceAxiomsWithSubProperty
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property equivalence axioms that have the given property as a substatic Literal
findPropertyLiteralValue
(Instance instance, ScalarProperty property) Deprecated.As of 2.5.0.static Literal
findPropertyLiteralValue
(Instance instance, ScalarProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first literal value of given scalar property defined on the given instancestatic NamedInstance
findPropertyReferencedValue
(Instance instance, Relation relation) Deprecated.As of 2.5.0.static NamedInstance
findPropertyReferencedValue
(Instance instance, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first referenced value of given structured property defined on the given instancestatic Set<PropertyRestrictionAxiom>
findPropertyRestrictionAxioms
(Classifier classifier) Deprecated.As of 2.5.0.static Set<PropertyRestrictionAxiom>
findPropertyRestrictionAxioms
(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find property restriction axioms that are defined on the given classifierstatic Set<PropertyValueAssertion>
Deprecated.As of 2.5.0.static Set<PropertyValueAssertion>
findPropertyValueAssertionsWithObject
(NamedInstance object, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation value assertions that have the given instance as their objectstatic Set<PropertyValueAssertion>
Deprecated.As of 2.5.0.static Set<PropertyValueAssertion>
findPropertyValueAssertionsWithSubject
(Instance subject, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value assertions that have the given instance as their sourcefindPropertyValues
(Instance instance, SemanticProperty property) Deprecated.As of 2.5.0.findPropertyValues
(Instance instance, SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds elements that represent values of given semantic property defined on the given instancefindRanges
(SemanticProperty property) Deprecated.As of 2.5.0.findRanges
(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the ranges of the given semantic propertyDeprecated.As of 2.5.0.Finds refs to the given memberstatic Set<ScalarEquivalenceAxiom>
Deprecated.As of 2.5.0.static Set<ScalarEquivalenceAxiom>
findScalarEquivalenceAxiomsWithSubScalar
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar equivalence axioms that have the given scalar as a substatic Set<SemanticProperty>
Deprecated.As of 2.5.0.static Set<SemanticProperty>
findSemanticPropertiesWithDomain
(Classifier domain, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds semantic properties referencing the given classifier as domainstatic Set<SemanticProperty>
Deprecated.As of 2.5.0.static Set<SemanticProperty>
findSemanticPropertiesWithRange
(Type range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds semantic properties referencing the given type as rangefindSourceRelations
(Entity entity) Deprecated.As of 2.5.0.findSourceRelations
(Entity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relations that have the given entity as their sourcefindSources
(RelationBase base) Deprecated.As of 2.5.0.findSources
(RelationBase base, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the sources of the given relation basestatic Set<SpecializationAxiom>
Deprecated.As of 2.5.0.static Set<SpecializationAxiom>
findSpecializationAxiomsWithSubTerm
(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds specialization axioms that have the given term as a sub termDeprecated.As of 2.5.0.findSpecializationSubTerms
(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct specialization sub terms of the given termDeprecated.As of 2.5.0.findSpecializationSuperTerms
(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct specialization super terms of the given termfindSubTerms
(Term term) Deprecated.As of 2.5.0.findSubTerms
(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct sub (specific) terms of the given termfindSuperTerms
(Term term) Deprecated.As of 2.5.0.findSuperTerms
(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct super (general) terms of the given termfindTargetRelations
(Entity entity) Deprecated.As of 2.5.0.findTargetRelations
(Entity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relations that have the given entity as their targetfindTargets
(RelationBase base) Deprecated.As of 2.5.0.findTargets
(RelationBase base, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the targets of the given relation basestatic Set<TypeAssertion>
findTypeAssertions
(NamedInstance instance) Deprecated.As of 2.5.0.static Set<TypeAssertion>
findTypeAssertions
(NamedInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds type assertions that are defined on the given named instancestatic Set<Classifier>
Deprecated.As of 2.5.0.static Set<Classifier>
Finds classifiers that are direct types of the given instanceMethods inherited from class io.opencaesar.oml.util.OmlIndex
findAnnotationPropertiesWithRef, findAnnotationPropertiesWithRef, findAnnotationsWithProperty, findAnnotationsWithProperty, findAnnotationsWithReferencedValue, findAnnotationsWithReferencedValue, findArgumentsWithInstance, findArgumentsWithInstance, findAspectsWithRef, findAspectsWithRef, findBuiltInPredicatesWithBuiltIn, findBuiltInPredicatesWithBuiltIn, findBuiltInsWithRef, findBuiltInsWithRef, findClassifierEquivalenceAxiomsWithSuperClassifier, findClassifierEquivalenceAxiomsWithSuperClassifier, findConceptInstancesWithRef, findConceptInstancesWithRef, findConceptsWithRef, findConceptsWithRef, findInstanceEnumerationAxiomsWithInstance, findInstanceEnumerationAxiomsWithInstance, findKeyAxiomsWithProperty, findKeyAxiomsWithProperty, findPropertyCardinalityRestrictionAxiomsWithRange, findPropertyCardinalityRestrictionAxiomsWithRange, findPropertyEquivalenceAxiomsWithSuperProperty, findPropertyEquivalenceAxiomsWithSuperProperty, findPropertyPredicatesWithProperty, findPropertyPredicatesWithProperty, findPropertyRangeRestrictionAxiomsWithRange, findPropertyRangeRestrictionAxiomsWithRange, findPropertyRestrictionAxiomsWithProperty, findPropertyRestrictionAxiomsWithProperty, findPropertyValueAssertionsWithProperty, findPropertyValueAssertionsWithProperty, findPropertyValueAssertionsWithReferencedValue, findPropertyValueAssertionsWithReferencedValue, findPropertyValueRestrictionAxiomsWithReferencedValue, findPropertyValueRestrictionAxiomsWithReferencedValue, findQuotedLiteralsWithType, findQuotedLiteralsWithType, findRelationBasesWithSource, findRelationBasesWithSource, findRelationBasesWithTarget, findRelationBasesWithTarget, findRelationEntitiesWithRef, findRelationEntitiesWithRef, findRelationEntityPredicatesWithType, findRelationEntityPredicatesWithType, findRelationInstancesWithRef, findRelationInstancesWithRef, findRelationInstancesWithSource, findRelationInstancesWithSource, findRelationInstancesWithTarget, findRelationInstancesWithTarget, findRulesWithRef, findRulesWithRef, findScalarEquivalenceAxiomsWithSuperScalar, findScalarEquivalenceAxiomsWithSuperScalar, findScalarPropertiesWithDomain, findScalarPropertiesWithDomain, findScalarPropertiesWithRange, findScalarPropertiesWithRange, findScalarPropertiesWithRef, findScalarPropertiesWithRef, findScalarsWithRef, findScalarsWithRef, findSpecializationAxiomsWithSuperTerm, findSpecializationAxiomsWithSuperTerm, findStructuredPropertiesWithDomain, findStructuredPropertiesWithDomain, findStructuredPropertiesWithRange, findStructuredPropertiesWithRange, findStructuredPropertiesWithRef, findStructuredPropertiesWithRef, findStructureInstancesWithType, findStructureInstancesWithType, findStructuresWithRef, findStructuresWithRef, findTypeAssertionsWithType, findTypeAssertionsWithType, findTypePredicatesWithType, findTypePredicatesWithType, findUnreifiedRelationsWithRef, findUnreifiedRelationsWithRef
-
Constructor Details
-
OmlSearch
public OmlSearch()
-
-
Method Details
-
findRefs
public static Set<Member> findRefs(Member member, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds refs to the given member- Parameters:
member
- the given memberscope
- The scope of the search (can be null)- Returns:
- a set of refs to the given member
-
findRefs
Deprecated.As of 2.5.0. Use {findRefs(Member, Set<Resource>)
insteadFinds refs to the given member- Parameters:
member
- the given member- Returns:
- a set of refs to the given member
-
findAnnotationValues
public static Set<Element> findAnnotationValues(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the values of a given annotation property in the given element- Parameters:
element
- The given elementproperty
- the annotation propertyscope
- The scope of the search (can be null)- Returns:
- a set of literals representing annotation values
-
findAnnotationValues
@Deprecated public static Set<Element> findAnnotationValues(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0. Use {findAnnotationValues(IdentifiedElement, AnnotationProperty, Set<Resource>)
insteadFinds the values of a given annotation property in the given element- Parameters:
element
- The given elementproperty
- the annotation property- Returns:
- a set of literals representing annotation values
-
findAnnotationLiteralValue
public static Literal findAnnotationLiteralValue(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first literal value of the given annotation property in the given element- Parameters:
element
- The given elementproperty
- the given annotation propertyscope
- The scope of the search (can be null)- Returns:
- an annotation literal value
-
findAnnotationLiteralValue
@Deprecated public static Literal findAnnotationLiteralValue(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0. Use {findAnnotationLiteralValue(IdentifiedElement, AnnotationProperty, Set<Resource>)
insteadFinds the first literal value of the given annotation property in the given element- Parameters:
element
- The given elementproperty
- the given annotation property- Returns:
- an annotation literal value
-
findAnnotationReferencedValue
public static Member findAnnotationReferencedValue(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first referenced value of a given annotation property in the given element- Parameters:
element
- The given elementproperty
- the given annotation propertyscope
- The scope of the search (can be null)- Returns:
- an annotation reference value
-
findAnnotationReferencedValue
@Deprecated public static Member findAnnotationReferencedValue(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0. Use {findAnnotationReferencedValue(IdentifiedElement, AnnotationProperty, Set<Resource>)
insteadFinds the first referenced value of a given annotation property in the given element- Parameters:
element
- The given elementproperty
- the given annotation property- Returns:
- an annotation reference value
-
findIsAnnotatedBy
public static boolean findIsAnnotatedBy(IdentifiedElement element, AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given element is annotated with the given annotation property- Parameters:
element
- The given elementproperty
- the given annotation propertyscope
- The scope of the search (can be null)- Returns:
- true if the element is annotated with the given annotation property; otherwise false
-
findIsAnnotatedBy
@Deprecated public static boolean findIsAnnotatedBy(IdentifiedElement element, AnnotationProperty property) Deprecated.As of 2.5.0. Use {findIsAnnotatedBy(IdentifiedElement, AnnotationProperty, Set<Resource>)
insteadFinds whether the given element is annotated with the given annotation property- Parameters:
element
- The given elementproperty
- the given annotation property- Returns:
- true if the element is annotated with the given annotation property; otherwise false
-
findAxioms
Finds axioms that are defined for the given term- Parameters:
term
- the given termscope
- The scope of the search (can be null)- Returns:
- a set of axioms that are defined for the given term
-
findAxioms
Deprecated.As of 2.5.0. Use {findAxioms(Term, Set<Resource>)
insteadFinds axioms that are defined for the given term- Parameters:
term
- the given term- Returns:
- a set of axioms that are defined for the given term
-
findKeyAxioms
public static Set<KeyAxiom> findKeyAxioms(Entity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find key axioms that are defined on the given entity- Parameters:
entity
- the given entityscope
- The scope of the search (can be null)- Returns:
- a set of key axioms that are defined on the given entity
-
findKeyAxioms
Deprecated.As of 2.5.0. Use {findKeyAxioms(Entity, Set<Resource>)
insteadFind key axioms that are defined on the given entity- Parameters:
entity
- the given entity- Returns:
- a set of key axioms that are defined on the given entity
-
findInstanceEnumerationAxioms
public static Set<InstanceEnumerationAxiom> findInstanceEnumerationAxioms(Concept concept, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find instance enumeration axioms that are defined on the given concept- Parameters:
concept
- the given conceptscope
- The scope of the search (can be null)- Returns:
- a set of instance enumeration axioms that are defined on the given concept
-
findInstanceEnumerationAxioms
@Deprecated public static Set<InstanceEnumerationAxiom> findInstanceEnumerationAxioms(Concept concept) Deprecated.As of 2.5.0. Use {findInstanceEnumerationAxioms(Concept, Set<Resource>)
insteadFind instance enumeration axioms that are defined on the given concept- Parameters:
concept
- the given concept- Returns:
- a set of instance enumeration axioms that are defined on the given concept
-
findLiteralEnumerationAxioms
public static Set<LiteralEnumerationAxiom> findLiteralEnumerationAxioms(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find literal enumeration axioms that are defined on the given scalar- Parameters:
scalar
- the given scalarscope
- The scope of the search (can be null)- Returns:
- a set of literal enumeration axioms that are defined on the given scalar
-
findLiteralEnumerationAxioms
Deprecated.As of 2.5.0. Use {findLiteralEnumerationAxioms(Scalar, Set<Resource>)
insteadFind literal enumeration axioms that are defined on the given scalar- Parameters:
scalar
- the given scalar- Returns:
- a set of literal enumeration axioms that are defined on the given scalar
-
findPropertyRestrictionAxioms
public static Set<PropertyRestrictionAxiom> findPropertyRestrictionAxioms(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find property restriction axioms that are defined on the given classifier- Parameters:
classifier
- the given classifierscope
- The scope of the search (can be null)- Returns:
- a set of restriction axioms that are defined on the given classifier
-
findPropertyRestrictionAxioms
@Deprecated public static Set<PropertyRestrictionAxiom> findPropertyRestrictionAxioms(Classifier classifier) Deprecated.As of 2.5.0. Use {findPropertyRestrictionAxioms(Classifier, Set<Resource>)
insteadFind property restriction axioms that are defined on the given classifier- Parameters:
classifier
- the given classifier- Returns:
- a set of restriction axioms that are defined on the given classifier
-
findSpecializationAxiomsWithSubTerm
public static Set<SpecializationAxiom> findSpecializationAxiomsWithSubTerm(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds specialization axioms that have the given term as a sub term- Parameters:
term
- the given termscope
- The scope of the search (can be null)- Returns:
- a set of specialization axioms that have the given term as a sub term
-
findSpecializationAxiomsWithSubTerm
Deprecated.As of 2.5.0. Use {findSpecializationAxiomsWithSubTerm(Term, Set<Resource>)
insteadFinds specialization axioms that have the given term as a sub term- Parameters:
term
- the given term- Returns:
- a set of specialization axioms that have the given term as a sub term
-
findClassifierEquivalenceAxiomsWithSubClassifier
public static Set<ClassifierEquivalenceAxiom> findClassifierEquivalenceAxiomsWithSubClassifier(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifier equivalence axioms that have the given classifier as a sub- Parameters:
classifier
- the given classifierscope
- The scope of the search (can be null)- Returns:
- a set of classifier equivalence axioms that have the given classifier as a sub
-
findClassifierEquivalenceAxiomsWithSubClassifier
@Deprecated public static Set<ClassifierEquivalenceAxiom> findClassifierEquivalenceAxiomsWithSubClassifier(Classifier classifier) Deprecated.As of 2.5.0. Use {findClassifierEquivalenceAxiomsWithSubClassifier(Classifier, Set<Resource>)
insteadFinds classifier equivalence axioms that have the given classifier as a sub- Parameters:
classifier
- the given classifier- Returns:
- a set of classifier equivalence axioms that have the given classifier as a sub
-
findScalarEquivalenceAxiomsWithSubScalar
public static Set<ScalarEquivalenceAxiom> findScalarEquivalenceAxiomsWithSubScalar(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar equivalence axioms that have the given scalar as a sub- Parameters:
scalar
- the given scalarscope
- The scope of the search (can be null)- Returns:
- a set of scalar equivalence axioms that have the given scalar as a sub
-
findScalarEquivalenceAxiomsWithSubScalar
@Deprecated public static Set<ScalarEquivalenceAxiom> findScalarEquivalenceAxiomsWithSubScalar(Scalar scalar) Deprecated.As of 2.5.0. Use {findScalarEquivalenceAxiomsWithSubScalar(Scalar, Set<Resource>)
insteadFinds scalar equivalence axioms that have the given scalar as a sub- Parameters:
scalar
- the given scalar- Returns:
- a set of scalar equivalence axioms that have the given scalar as a sub
-
findPropertyEquivalenceAxiomsWithSubProperty
public static Set<PropertyEquivalenceAxiom> findPropertyEquivalenceAxiomsWithSubProperty(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property equivalence axioms that have the given property as a sub- Parameters:
property
- the given propertyscope
- The scope of the search (can be null)- Returns:
- a set of property equivalence axioms that have the given property as a sub
-
findPropertyEquivalenceAxiomsWithSubProperty
@Deprecated public static Set<PropertyEquivalenceAxiom> findPropertyEquivalenceAxiomsWithSubProperty(Property property) Deprecated.As of 2.5.0. Use {findPropertyEquivalenceAxiomsWithSubProperty(Property, Set<Resource>)
insteadFinds property equivalence axioms that have the given property as a sub- Parameters:
property
- the given property- Returns:
- a set of property equivalence axioms that have the given property as a sub
-
findSuperTerms
public static Set<Term> findSuperTerms(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct super (general) terms of the given term- Parameters:
term
- the given termscope
- The scope of the search (can be null)- Returns:
- a set of terms that are the direct super (general) terms of the given term
-
findSuperTerms
Deprecated.As of 2.5.0. Use {findSuperTerms(Term, Set<Resource>)
insteadFinds terms that are the direct super (general) terms of the given term- Parameters:
term
- the given term- Returns:
- a set of terms that are the direct super (general) terms of the given term
-
findSubTerms
Finds terms that are the direct sub (specific) terms of the given term- Parameters:
term
- the given termscope
- The scope of the search (can be null)- Returns:
- a set of terms that are the direct sub (specific) terms of the given term
-
findSubTerms
Deprecated.As of 2.5.0. Use {findSubTerms(Term, Set<Resource>)
insteadFinds terms that are the direct sub (specific) terms of the given term- Parameters:
term
- the given term- Returns:
- a set of terms that are the direct sub (specific) terms of the given term
-
findAllSuperTerms
public static Set<Term> findAllSuperTerms(Term term, boolean inclusive, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct or transitive super (general) terms of the given term- Parameters:
term
- the given terminclusive
- a boolean determining whether to include the given term in the resultscope
- The scope of the search (can be null)- Returns:
- a set of terms that are the direct or transitive super (general) terms of the given term
-
findAllSuperTerms
Deprecated.As of 2.5.0. Use {findAllSuperTerms(Term, boolean, Set<Resource>)
insteadFinds terms that are the direct or transitive super (general) terms of the given term- Parameters:
term
- the given terminclusive
- a boolean determining whether to include the given term in the result- Returns:
- a set of terms that are the direct or transitive super (general) terms of the given term
-
findAllSubTerms
public static Set<Term> findAllSubTerms(Term term, boolean inclusive, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct or transitive sub (specific) terms of the given term- Parameters:
term
- the given terminclusive
- a boolean determining whether to include the given term in the resultscope
- The scope of the search (can be null)- Returns:
- a set of terms that are the direct or transitive sub (specific) terms of the given term
-
findAllSubTerms
Deprecated.As of 2.5.0. Use {findAllSubTerms(Term, boolean, Set<Resource>)
insteadFinds terms that are the direct or transitive sub (specific) terms of the given term- Parameters:
term
- the given terminclusive
- a boolean determining whether to include the given term in the result- Returns:
- a set of terms that are the direct or transitive sub (specific) terms of the given term
-
findIsSubTermOf
public static boolean findIsSubTermOf(Term term, Term superTerm, Set<org.eclipse.emf.ecore.resource.Resource> scope) Determines if the given term is a sub term of the given super term- Parameters:
term
- the given termsuperTerm
- the given super termscope
- The scope of the search (can be null)- Returns:
- true if the given term is a sub term of the given super term; otherwise false
-
findIsSubTermOf
Deprecated.As of 2.5.0. Use {findIsSubTermOf(Term, Term, Set<Resource>)
insteadDetermines if the given term is a sub term of the given super term- Parameters:
term
- the given termsuperTerm
- the given super term- Returns:
- true if the given term is a sub term of the given super term; otherwise false
-
findSpecializationSuperTerms
public static Set<Term> findSpecializationSuperTerms(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct specialization super terms of the given term- Parameters:
term
- the given termscope
- The scope of the search (can be null)- Returns:
- a set of terms that are the direct specialization super terms of the given term
-
findSpecializationSuperTerms
Deprecated.As of 2.5.0. Use {findSpecializationSuperTerms(Term, Set<Resource>)
insteadFinds terms that are the direct specialization super terms of the given term- Parameters:
term
- the given term- Returns:
- a set of terms that are the direct specialization super terms of the given term
-
findSpecializationSubTerms
public static Set<Term> findSpecializationSubTerms(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds terms that are the direct specialization sub terms of the given term- Parameters:
term
- the given termscope
- The scope of the search (can be null)- Returns:
- a set of terms that are the direct specialization sub terms of the given term
-
findSpecializationSubTerms
Deprecated.As of 2.5.0. Use {findSpecializationSubTerms(Term, Set<Resource>)
insteadFinds terms that are the direct specialization sub terms of the given term- Parameters:
term
- the given term- Returns:
- a set of terms that are the direct specialization sub terms of the given term
-
findEquivalenceSuperClassifiers
public static Set<Classifier> findEquivalenceSuperClassifiers(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are the direct equivalence super of a given classifier- Parameters:
classifier
- the given classifierscope
- The scope of the search (can be null)- Returns:
- a set of classifier that are the direct equivalence super of the given classifier
-
findEquivalenceSuperClassifiers
Deprecated.As of 2.5.0. Use {findEquivalenceSuperClassifiers(Classifier, Set<Resource>)
insteadFinds classifiers that are the direct equivalence super of a given classifier- Parameters:
classifier
- the given classifier- Returns:
- a set of classifier that are the direct equivalence super of the given classifier
-
findEquivalenceSubClassifiers
public static Set<Classifier> findEquivalenceSubClassifiers(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are the direct equivalence sub of a given classifier- Parameters:
classifier
- the given classifierscope
- The scope of the search (can be null)- Returns:
- a set of classifier that are the direct equivalence sub of the given classifier
-
findEquivalenceSubClassifiers
Deprecated.As of 2.5.0. Use {findEquivalenceSubClassifiers(Classifier, Set<Resource>)
insteadFinds classifiers that are the direct equivalence sub of a given classifier- Parameters:
classifier
- the given classifier- Returns:
- a set of classifier that are the direct equivalence sub of the given classifier
-
findEquivalenceSuperScalars
public static Set<Scalar> findEquivalenceSuperScalars(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars that are the direct equivalence super of a given scalar- Parameters:
scalar
- the given scalarscope
- The scope of the search (can be null)- Returns:
- a set of classifier that are the direct equivalence super of the given classifier
-
findEquivalenceSuperScalars
Deprecated.As of 2.5.0. Use {findEquivalenceSuperScalars(Scalar, Set<Resource>)
insteadFinds scalars that are the direct equivalence super of a given scalar- Parameters:
scalar
- the given scalar- Returns:
- a set of classifier that are the direct equivalence super of the given classifier
-
findEquivalenceSubScalars
public static Set<Scalar> findEquivalenceSubScalars(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars that are the direct equivalence sub of a given scalar- Parameters:
scalar
- the given scalarscope
- The scope of the search (can be null)- Returns:
- a set of scalars that are the direct equivalence sub of the given scalar
-
findEquivalenceSubScalars
Deprecated.As of 2.5.0. Use {findEquivalenceSubScalars(Scalar, Set<Resource>)
insteadFinds scalars that are the direct equivalence sub of a given scalar- Parameters:
scalar
- the given scalar- Returns:
- a set of scalars that are the direct equivalence sub of the given scalar
-
findEquivalenceSuperProperties
public static Set<Property> findEquivalenceSuperProperties(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds properties that are the direct equivalence super of a given property- Parameters:
property
- the given propertyscope
- The scope of the search (can be null)- Returns:
- a set of properties that are the direct equivalence super of the given property
-
findEquivalenceSuperProperties
Deprecated.As of 2.5.0. Use {findEquivalenceSuperProperties(Property, Set<Resource>)
insteadFinds properties that are the direct equivalence super of a given property- Parameters:
property
- the given property- Returns:
- a set of properties that are the direct equivalence super of the given property
-
findEquivalenceSubProperties
public static Set<Property> findEquivalenceSubProperties(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds properties that are the direct equivalence sub of a given property- Parameters:
property
- the given propertyscope
- The scope of the search (can be null)- Returns:
- a set of properties that are the direct equivalence sub of the given property
-
findEquivalenceSubProperties
Deprecated.As of 2.5.0. Use {findEquivalenceSubProperties(Property, Set<Resource>)
insteadFinds properties that are the direct equivalence sub of a given property- Parameters:
property
- the given property- Returns:
- a set of properties that are the direct equivalence sub of the given property
-
findEquivalentClassifiers
public static Set<Classifier> findEquivalentClassifiers(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are the direct equivalent to a given classifier- Parameters:
classifier
- the given classifierscope
- The scope of the search (can be null)- Returns:
- a set of classifier that are the direct equivalents of the given classifier
-
findEquivalentClassifiers
Deprecated.As of 2.5.0. Use {findEquivalentClassifiers(Classifier, Set<Resource>)
insteadFinds classifiers that are the direct equivalent to a given classifier- Parameters:
classifier
- the given classifier- Returns:
- a set of classifier that are the direct equivalents of the given classifier
-
findEquivalentScalars
public static Set<Scalar> findEquivalentScalars(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars that are the direct equivalent to a given scalar- Parameters:
scalar
- the given scalarscope
- The scope of the search (can be null)- Returns:
- a set of scalars that are the direct equivalents of the given scalar
-
findEquivalentScalars
Deprecated.As of 2.5.0. Use {findEquivalentScalars(Scalar, Set<Resource>)
insteadFinds scalars that are the direct equivalent to a given scalar- Parameters:
scalar
- the given scalar- Returns:
- a set of scalars that are the direct equivalents of the given scalar
-
findEquivalentProperties
public static Set<Property> findEquivalentProperties(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds properties that are the direct equivalent to a given property- Parameters:
property
- the given propertyscope
- The scope of the search (can be null)- Returns:
- a set of property that are the direct equivalents of the given property
-
findEquivalentProperties
Deprecated.As of 2.5.0. Use {findEquivalentProperties(Property, Set<Resource>)
insteadFinds properties that are the direct equivalent to a given property- Parameters:
property
- the given property- Returns:
- a set of property that are the direct equivalents of the given property
-
findSourceRelations
public static Set<Relation> findSourceRelations(Entity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relations that have the given entity as their source- Parameters:
entity
- the given entityscope
- The scope of the search (can be null)- Returns:
- a set of relations that have the given entity as their source
-
findSourceRelations
Deprecated.As of 2.5.0. Use {findSourceRelations(Entity, Set<Resource>)
insteadFinds relations that have the given entity as their source- Parameters:
entity
- the given entity- Returns:
- a set of relations that have the given entity as their source
-
findTargetRelations
public static Set<Relation> findTargetRelations(Entity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relations that have the given entity as their target- Parameters:
entity
- the given entityscope
- The scope of the search (can be null)- Returns:
- a set of relations that have the given entity as their target
-
findTargetRelations
Deprecated.As of 2.5.0. Use {findTargetRelations(Entity, Set<Resource>)
insteadFinds relations that have the given entity as their target- Parameters:
entity
- the given entity- Returns:
- a set of relations that have the given entity as their target
-
findSemanticPropertiesWithDomain
public static Set<SemanticProperty> findSemanticPropertiesWithDomain(Classifier domain, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds semantic properties referencing the given classifier as domain- Parameters:
domain
- The referenced classifierscope
- The scope of the search (can be null)- Returns:
- A set of referencing semantic properties
-
findSemanticPropertiesWithDomain
Deprecated.As of 2.5.0. Use {findSemanticPropertiesWithDomain(Classifier, Set<Resource>)
insteadFinds semantic properties referencing the given classifier as domain- Parameters:
domain
- The referenced classifier- Returns:
- A set of referencing semantic properties
-
findSemanticPropertiesWithRange
public static Set<SemanticProperty> findSemanticPropertiesWithRange(Type range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds semantic properties referencing the given type as range- Parameters:
range
- The referenced typescope
- The scope of the search (can be null)- Returns:
- A set of referencing semantic properties
-
findSemanticPropertiesWithRange
Deprecated.As of 2.5.0. Use {findSemanticPropertiesWithRange(Type, Set<Resource>)
insteadFinds semantic properties referencing the given type as range- Parameters:
range
- The referenced type- Returns:
- A set of referencing semantic properties
-
findDomains
public static Set<Classifier> findDomains(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the domains of the given semantic property- Parameters:
property
- The given propertyscope
- The scope of the search (can be null)- Returns:
- A set of domains for the given semantic property
-
findDomains
Deprecated.As of 2.5.0. Use {findDomains(SemanticProperty, Set<Resource>)
insteadFinds the domains of the given semantic property- Parameters:
property
- The given property- Returns:
- A set of domains for the given semantic property
-
findAllDomains
public static Set<Classifier> findAllDomains(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds all (direct or inherited) domains of the given property- Parameters:
property
- the given propertyscope
- The scope of the search (can be null)- Returns:
- A set of domains for the given semantic property
-
findAllDomains
Deprecated.As of 2.5.0. Use {findAllDomains(SemanticProperty, Set<Resource>)
insteadFinds all (direct or inherited) domains of the given property- Parameters:
property
- the given property- Returns:
- A set of domains for the given semantic property
-
findRanges
public static Set<Type> findRanges(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the ranges of the given semantic property- Parameters:
property
- The given propertyscope
- The scope of the search (can be null)- Returns:
- A set of ranges for the given semantic property
-
findRanges
Deprecated.As of 2.5.0. Use {findRanges(SemanticProperty, Set<Resource>)
insteadFinds the ranges of the given semantic property- Parameters:
property
- The given property- Returns:
- A set of ranges for the given semantic property
-
findAllRanges
public static Set<Type> findAllRanges(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds all (direct or inherited) ranges of the given property- Parameters:
property
- the given propertyscope
- The scope of the search (can be null)- Returns:
- A set of ranges for the given semantic property
-
findAllRanges
Deprecated.As of 2.5.0. Use {findAllRanges(SemanticProperty, Set<Resource>)
insteadFinds all (direct or inherited) ranges of the given property- Parameters:
property
- the given property- Returns:
- A set of ranges for the given semantic property
-
findEntitiesKeyedWith
public static Set<Entity> findEntitiesKeyedWith(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Find entities that have the following property included in one of their keys- Parameters:
property
- the given propertyscope
- The scope of the search (can be null)- Returns:
- a set of entities that have the following property included in one of their keys
-
findEntitiesKeyedWith
Deprecated.As of 2.5.0. Use {findEntitiesKeyedWith(SemanticProperty, Set<Resource>)
insteadFind entities that have the following property included in one of their keys- Parameters:
property
- the given property- Returns:
- a set of entities that have the following property included in one of their keys
-
findSources
public static Set<Entity> findSources(RelationBase base, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the sources of the given relation base- Parameters:
base
- The given relation basescope
- The scope of the search (can be null)- Returns:
- A set of sources for the given relation base
-
findSources
Deprecated.As of 2.5.0. Use {findSources(RelationBase, Set<Resource>)
insteadFinds the sources of the given relation base- Parameters:
base
- The given relation base- Returns:
- A set of sources for the given relation base
-
findTargets
public static Set<Entity> findTargets(RelationBase base, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the targets of the given relation base- Parameters:
base
- The given relation basescope
- The scope of the search (can be null)- Returns:
- A set of targets for the given relation base
-
findTargets
Deprecated.As of 2.5.0. Use {findTargets(RelationBase, Set<Resource>)
insteadFinds the targets of the given relation base- Parameters:
base
- The given relation base- Returns:
- A set of targets for the given relation base
-
findIsEnumeratedProperty
public static boolean findIsEnumeratedProperty(ScalarProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given scalar property has as one of its ranges an enumerated scalar- Parameters:
property
- The given scalar propertyscope
- The scope of the search (can be null)- Returns:
- true is the scalar is enumerated; false otherwise
-
findIsEnumeratedProperty
Deprecated.As of 2.5.0. Use {findIsEnumeratedProperty(ScalarProperty, Set<Resource>)
insteadFinds whether the given scalar property has as one of its ranges an enumerated scalar- Parameters:
property
- The given scalar property- Returns:
- true is the scalar is enumerated; false otherwise
-
findIsEnumeratedScalar
public static boolean findIsEnumeratedScalar(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given scalar has enumeration literals- Parameters:
scalar
- The given scalarscope
- The scope of the search (can be null)- Returns:
- true is the scalar is enumerated; false otherwise
-
findIsEnumeratedScalar
Deprecated.As of 2.5.0. Use {findIsEnumeratedScalar(Scalar, Set<Resource>)
insteadFinds whether the given scalar has enumeration literals- Parameters:
scalar
- The given scalar- Returns:
- true is the scalar is enumerated; false otherwise
-
findEnumerationLiterals
public static List<Literal> findEnumerationLiterals(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the list of enumeration liters of the given scalar- Parameters:
scalar
- The given scalarscope
- The scope of the search (can be null)- Returns:
- a list of enumeration literals
-
findEnumerationLiterals
Deprecated.As of 2.5.0. Use {findEnumerationLiterals(Scalar, Set<Resource>)
insteadFinds the list of enumeration liters of the given scalar- Parameters:
scalar
- The given scalar- Returns:
- a list of enumeration literals
-
findAssertions
public static Set<Assertion> findAssertions(Instance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds assertions that are defined on the given instance- Parameters:
instance
- the given instancescope
- The scope of the search (can be null)- Returns:
- a set of assertions that are defined on the given instance
-
findAssertions
Deprecated.As of 2.5.0. Use {findAssertions(Instance, Set<Resource>)
insteadFinds assertions that are defined on the given instance- Parameters:
instance
- the given instance- Returns:
- a set of assertions that are defined on the given instance
-
findTypeAssertions
public static Set<TypeAssertion> findTypeAssertions(NamedInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds type assertions that are defined on the given named instance- Parameters:
instance
- the given named instancescope
- The scope of the search (can be null)- Returns:
- a set of type assertions that are defined on the given named instance
-
findTypeAssertions
Deprecated.As of 2.5.0. Use {findTypeAssertions(NamedInstance, Set<Resource>)
insteadFinds type assertions that are defined on the given named instance- Parameters:
instance
- the given named instance- Returns:
- a set of type assertions that are defined on the given named instance
-
findPropertyValueAssertionsWithSubject
public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithSubject(Instance subject, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value assertions that have the given instance as their source- Parameters:
subject
- the given subject instancescope
- The scope of the search (can be null)- Returns:
- a set of relation value assertions that have the given instance as their subject
-
findPropertyValueAssertionsWithSubject
@Deprecated public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithSubject(Instance subject) Deprecated.As of 2.5.0. Use {findPropertyValueAssertionsWithSubject(Instance, Set<Resource>)
insteadFinds property value assertions that have the given instance as their source- Parameters:
subject
- the given subject instance- Returns:
- a set of relation value assertions that have the given instance as their subject
-
findPropertyValueAssertionsWithObject
public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithObject(NamedInstance object, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation value assertions that have the given instance as their object- Parameters:
object
- the given object instancescope
- The scope of the search (can be null)- Returns:
- a set of relation value assertions that have the given instance as their object
-
findPropertyValueAssertionsWithObject
@Deprecated public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithObject(NamedInstance object) Deprecated.As of 2.5.0. Use {findPropertyValueAssertionsWithObject(NamedInstance, Set<Resource>)
insteadFinds relation value assertions that have the given instance as their object- Parameters:
object
- the given object instance- Returns:
- a set of relation value assertions that have the given instance as their object
-
findInstancesRelatedTo
public static Set<NamedInstance> findInstancesRelatedTo(NamedInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that are asserted as related to the given instance by any relation- Parameters:
instance
- the given instancescope
- The scope of the search (can be null)- Returns:
- a set of instances related to the given instance by any relation
-
findInstancesRelatedTo
Deprecated.As of 2.5.0. Use {findInstancesRelatedTo(NamedInstance, Set<Resource>)
insteadFinds instances that are asserted as related to the given instance by any relation- Parameters:
instance
- the given instance- Returns:
- a set of instances related to the given instance by any relation
-
findInstancesRelatedTo
public static Set<NamedInstance> findInstancesRelatedTo(NamedInstance instance, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that are asserted as related to the given instance by a given relation- Parameters:
instance
- the given instancerelation
- the given relationscope
- The scope of the search (can be null)- Returns:
- a set of instances related to the given instance by a given relation
-
findInstancesRelatedTo
@Deprecated public static Set<NamedInstance> findInstancesRelatedTo(NamedInstance instance, Relation relation) Deprecated.As of 2.5.0. Use {findInstancesRelatedTo(NamedInstance, Relation, Set<Resource>)
insteadFinds instances that are asserted as related to the given instance by a given relation- Parameters:
instance
- the given instancerelation
- the given relation- Returns:
- a set of instances related to the given instance by a given relation
-
findInstancesRelatedAsTargetTo
public static Set<NamedInstance> findInstancesRelatedAsTargetTo(NamedInstance source, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds target instances that are asserted as related to the given source instance by any relation- Parameters:
source
- the given source instancescope
- The scope of the search (can be null)- Returns:
- a set of target instances related to the given source instance
-
findInstancesRelatedAsTargetTo
Deprecated.As of 2.5.0. Use {findInstancesRelatedAsTargetTo(NamedInstance, Set<Resource>)
insteadFinds target instances that are asserted as related to the given source instance by any relation- Parameters:
source
- the given source instance- Returns:
- a set of target instances related to the given source instance
-
findInstancesRelatedAsTargetTo
public static Set<NamedInstance> findInstancesRelatedAsTargetTo(NamedInstance source, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds target instances that are asserted as related to the given source instance by a given relation- Parameters:
source
- the given source instancerelation
- the given relationscope
- The scope of the search (can be null)- Returns:
- a set of target instances related to the given source instance
-
findInstancesRelatedAsTargetTo
@Deprecated public static Set<NamedInstance> findInstancesRelatedAsTargetTo(NamedInstance source, Relation relation) Deprecated.As of 2.5.0. Use {findInstancesRelatedAsTargetTo(NamedInstance, Relation, Set<Resource>)
insteadFinds target instances that are asserted as related to the given source instance by a given relation- Parameters:
source
- the given source instancerelation
- the given relation- Returns:
- a set of target instances related to the given source instance
-
findInstancesRelatedAsSourceTo
public static Set<NamedInstance> findInstancesRelatedAsSourceTo(NamedInstance target, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds source instances that are related by any relation to the given target instance- Parameters:
target
- the given target instancescope
- The scope of the search (can be null)- Returns:
- a set of source instances related to the given target instance
-
findInstancesRelatedAsSourceTo
Deprecated.As of 2.5.0. Use {findInstancesRelatedAsSourceTo(NamedInstance, Set<Resource>)
insteadFinds source instances that are related by any relation to the given target instance- Parameters:
target
- the given target instance- Returns:
- a set of source instances related to the given target instance
-
findInstancesRelatedAsSourceTo
public static Set<NamedInstance> findInstancesRelatedAsSourceTo(NamedInstance target, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds source instances that are related by a given relation to a given target instance- Parameters:
target
- the given target instancerelation
- the given relationscope
- The scope of the search (can be null)- Returns:
- a set of source instances that are related by a given relation to the given target instance
-
findInstancesRelatedAsSourceTo
@Deprecated public static Set<NamedInstance> findInstancesRelatedAsSourceTo(NamedInstance target, Relation relation) Deprecated.As of 2.5.0. Use {findInstancesRelatedAsSourceTo(NamedInstance, Relation, Set<Resource>)
insteadFinds source instances that are related by a given relation to a given target instance- Parameters:
target
- the given target instancerelation
- the given relation- Returns:
- a set of source instances that are related by a given relation to the given target instance
-
findPropertyValues
public static Set<Element> findPropertyValues(Instance instance, SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds elements that represent values of given semantic property defined on the given instance- Parameters:
instance
- the given instanceproperty
- the given semantic propertyscope
- The scope of the search (can be null)- Returns:
- a set of elements that represent values of given semantic property defined on the given instance
-
findPropertyValues
@Deprecated public static Set<Element> findPropertyValues(Instance instance, SemanticProperty property) Deprecated.As of 2.5.0. Use {findPropertyValues(Instance, Relation, Set<Resource>)
insteadFinds elements that represent values of given semantic property defined on the given instance- Parameters:
instance
- the given instanceproperty
- the given semantic property- Returns:
- a set of elements that represent values of given semantic property defined on the given instance
-
findPropertyLiteralValue
public static Literal findPropertyLiteralValue(Instance instance, ScalarProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first literal value of given scalar property defined on the given instance- Parameters:
instance
- the given instanceproperty
- the given scalar propertyscope
- The scope of the search (can be null)- Returns:
- a literal value of the given scalar property on the given instance
-
findPropertyLiteralValue
@Deprecated public static Literal findPropertyLiteralValue(Instance instance, ScalarProperty property) Deprecated.As of 2.5.0. Use {findPropertyLiteralValue(Instance, ScalarProperty, Set<Resource>)
insteadFinds the first literal value of given scalar property defined on the given instance- Parameters:
instance
- the given instanceproperty
- the given scalar property- Returns:
- a literal value of the given scalar property on the given instance
-
findPropertyContainedValue
public static StructureInstance findPropertyContainedValue(Instance instance, StructuredProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first contained value of given structured property defined on the given instance- Parameters:
instance
- the given instanceproperty
- the given structured propertyscope
- The scope of the search (can be null)- Returns:
- a contained value of the given structured property on the given instance
-
findPropertyContainedValue
@Deprecated public static StructureInstance findPropertyContainedValue(Instance instance, StructuredProperty property) Deprecated.As of 2.5.0. Use {findPropertyContainedValue(Instance, StructuredProperty, Set<Resource>)
insteadFinds the first contained value of given structured property defined on the given instance- Parameters:
instance
- the given instanceproperty
- the given structured property- Returns:
- a contained value of the given structured property on the given instance
-
findPropertyReferencedValue
public static NamedInstance findPropertyReferencedValue(Instance instance, Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds the first referenced value of given structured property defined on the given instance- Parameters:
instance
- the given instancerelation
- the given relationscope
- The scope of the search (can be null)- Returns:
- a referenced value of the given relation on the given instance
-
findPropertyReferencedValue
@Deprecated public static NamedInstance findPropertyReferencedValue(Instance instance, Relation relation) Deprecated.As of 2.5.0. Use {findPropertyReferencedValue(Instance, Relation, Set<Resource>)
insteadFinds the first referenced value of given structured property defined on the given instance- Parameters:
instance
- the given instancerelation
- the given relation- Returns:
- a referenced value of the given relation on the given instance
-
findTypes
public static Set<Classifier> findTypes(Instance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are direct types of the given instance- Parameters:
instance
- the given instancescope
- The scope of the search (can be null)- Returns:
- a set of classifiers that are direcf types of the given instance
-
findTypes
Deprecated.As of 2.5.0. Use {findTypes(Instance, Set<Resource>)
insteadFinds classifiers that are direct types of the given instance- Parameters:
instance
- the given instance- Returns:
- a set of classifiers that are direcf types of the given instance
-
findAllTypes
public static Set<Classifier> findAllTypes(Instance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifiers that are direct or indirect types of the given instance- Parameters:
instance
- the given instancescope
- The scope of the search (can be null)- Returns:
- a set of classifiers that are direct or indirect types of the given instance
-
findAllTypes
Deprecated.As of 2.5.0. Use {findAllTypes(Instance, Set<Resource>)
insteadFinds classifiers that are direct or indirect types of the given instance- Parameters:
instance
- the given instance- Returns:
- a set of classifiers that are direct or indirect types of the given instance
-
findIsTypeOf
public static boolean findIsTypeOf(Instance instance, Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given instance is typed directly by the given type- Parameters:
instance
- the given instancetype
- the given typescope
- The scope of the search (can be null)- Returns:
- true if the given instance is typed directly by the given type; otherwise false
-
findIsTypeOf
Deprecated.As of 2.5.0. Use {findIsTypeOf(Instance, Classifier, Set<Resource>)
insteadFinds whether the given instance is typed directly by the given type- Parameters:
instance
- the given instancetype
- the given type- Returns:
- true if the given instance is typed directly by the given type; otherwise false
-
findIsKindOf
public static boolean findIsKindOf(Instance instance, Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds whether the given instance is typed directly or transitively by the given type- Parameters:
instance
- the given instancetype
- the given typescope
- The scope of the search (can be null)- Returns:
- true if the given instance is typed directly or transitively by the given type; otherwise false
-
findIsKindOf
Deprecated.As of 2.5.0. Use {findIsKindOf(Instance, Classifier, Set<Resource>)
insteadFinds whether the given instance is typed directly or transitively by the given type- Parameters:
instance
- the given instancetype
- the given type- Returns:
- true if the given instance is typed directly or transitively by the given type; otherwise false
-
findInstancesOfType
public static Set<Instance> findInstancesOfType(Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that have the given type as their direct type- Parameters:
type
- the given typescope
- The scope of the search (can be null)- Returns:
- a set of instances that have the given type as their direct type
-
findInstancesOfType
Deprecated.As of 2.5.0. Use {findInstancesOfType(Classifier, Set<Resource>)
insteadFinds instances that have the given type as their direct type- Parameters:
type
- the given type- Returns:
- a set of instances that have the given type as their direct type
-
findInstancesOfKind
public static Set<Instance> findInstancesOfKind(Classifier type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instances that have the given type as their direct or transitive type- Parameters:
type
- the given typescope
- The scope of the search (can be null)- Returns:
- a set of instances that have the given type as their direct or transitive type
-
findInstancesOfKind
Deprecated.As of 2.5.0. Use {findInstancesOfKind(Classifier, Set<Resource>)
insteadFinds instances that have the given type as their direct or transitive type- Parameters:
type
- the given type- Returns:
- a set of instances that have the given type as their direct or transitive type
-
findAllTypes
public static Set<Scalar> findAllTypes(Literal literal, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds all the scalars that are direct or indirect types of the given literal- Parameters:
literal
- the given literalscope
- The scope of the search (can be null)- Returns:
- a set of scalars that are direct or indirect types of the given literal
-
findAllTypes
Deprecated.As of 2.5.0. Use {findAllTypes(Literal, Set<Resource>)
insteadFinds all the scalars that are direct or indirect types of the given literal- Parameters:
literal
- the given literal- Returns:
- a set of scalars that are direct or indirect types of the given literal
-
findIsKindOf
public static boolean findIsKindOf(Literal literal, Scalar type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds if the given literal is typed directly or transitively by the given type- Parameters:
literal
- the given literaltype
- the given typescope
- The scope of the search (can be null)- Returns:
- true if the given literal is typed directly or transitively by the given type; otherwise false
-
findIsKindOf
Deprecated.As of 2.5.0. Use {findIsKindOf(Literal, Scalar, Set<Resource>)
insteadFinds if the given literal is typed directly or transitively by the given type- Parameters:
literal
- the given literaltype
- the given type- Returns:
- true if the given literal is typed directly or transitively by the given type; otherwise false
-