Package io.opencaesar.oml.util
Class OmlIndex
java.lang.Object
io.opencaesar.oml.util.OmlIndex
- Direct Known Subclasses:
OmlSearch
The Index API for the model. It allows looking up cross references of OML objects in the resource set by using two lookup mechanisms:
1) Fast: looking up cross references in a cache if a
ECrossReferenceAdapter
is installed in the resource set
2) Slow: iterating over the content of a resource set to look for cross referencers-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<AnnotationProperty>
Deprecated.As of 2.5.0.static Set<AnnotationProperty>
findAnnotationPropertiesWithRef
(AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds annotation property referencing the given annotation propertystatic Set<Annotation>
Deprecated.As of 2.5.0.static Set<Annotation>
findAnnotationsWithProperty
(AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds annotations referencing the given propertystatic Set<Annotation>
Deprecated.As of 2.5.0.static Set<Annotation>
findAnnotationsWithReferencedValue
(Member value, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds annotations referencing the given referenced valuefindArgumentsWithInstance
(NamedInstance instance) Deprecated.As of 2.5.0.findArgumentsWithInstance
(NamedInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds arguments referencing the given named instancefindAspectsWithRef
(Aspect aspect) Deprecated.As of 2.5.0.findAspectsWithRef
(Aspect aspect, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds aspects referencing the given aspectstatic Set<BuiltInPredicate>
findBuiltInPredicatesWithBuiltIn
(BuiltIn builtIn) Deprecated.As of 2.5.0.static Set<BuiltInPredicate>
findBuiltInPredicatesWithBuiltIn
(BuiltIn builtIn, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds builtIn predicates referencing the given builtInfindBuiltInsWithRef
(BuiltIn builtIn) Deprecated.As of 2.5.0.findBuiltInsWithRef
(BuiltIn builtIn, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds builtIn referencing the given builtInstatic Set<ClassifierEquivalenceAxiom>
Deprecated.As of 2.5.0.static Set<ClassifierEquivalenceAxiom>
findClassifierEquivalenceAxiomsWithSuperClassifier
(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifier equivalence axioms referencing the given classifierstatic Set<ConceptInstance>
findConceptInstancesWithRef
(ConceptInstance instance) Deprecated.As of 2.5.0.static Set<ConceptInstance>
findConceptInstancesWithRef
(ConceptInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds concept instance referencing the given concept instancefindConceptsWithRef
(Concept concept) Deprecated.As of 2.5.0.findConceptsWithRef
(Concept concept, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds concept referencing the given conceptstatic Set<InstanceEnumerationAxiom>
Deprecated.As of 2.5.0.static Set<InstanceEnumerationAxiom>
findInstanceEnumerationAxiomsWithInstance
(ConceptInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instance enumeration axioms that references the given instancefindKeyAxiomsWithProperty
(Property property) Deprecated.As of 2.5.0.findKeyAxiomsWithProperty
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds key axioms referencing the given propertyDeprecated.As of 2.5.0.findPropertyCardinalityRestrictionAxiomsWithRange
(Type range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property cardinality restriction axioms referencing the given rangestatic Set<PropertyEquivalenceAxiom>
Deprecated.As of 2.5.0.static Set<PropertyEquivalenceAxiom>
findPropertyEquivalenceAxiomsWithSuperProperty
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property equivalence axioms referencing the given propertystatic Set<PropertyPredicate>
findPropertyPredicatesWithProperty
(Property property) Deprecated.As of 2.5.0.static Set<PropertyPredicate>
findPropertyPredicatesWithProperty
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property predicates referencing the given propertystatic Set<PropertyRangeRestrictionAxiom>
Deprecated.As of 2.5.0.static Set<PropertyRangeRestrictionAxiom>
findPropertyRangeRestrictionAxiomsWithRange
(Type range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property range restriction axioms referencing the given rangestatic Set<PropertyRestrictionAxiom>
Deprecated.As of 2.5.0.static Set<PropertyRestrictionAxiom>
findPropertyRestrictionAxiomsWithProperty
(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property restriction axioms referencing the given propertystatic Set<PropertyValueAssertion>
Deprecated.As of 2.5.0.static Set<PropertyValueAssertion>
findPropertyValueAssertionsWithProperty
(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value assertions referencing the given propertystatic Set<PropertyValueAssertion>
Deprecated.As of 2.5.0.static Set<PropertyValueAssertion>
findPropertyValueAssertionsWithReferencedValue
(NamedInstance value, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value assertions referencing the given referenced valuestatic Set<PropertyValueRestrictionAxiom>
Deprecated.As of 2.5.0.static Set<PropertyValueRestrictionAxiom>
findPropertyValueRestrictionAxiomsWithReferencedValue
(NamedInstance value, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value restriction axioms referencing the given referenced valuestatic Set<QuotedLiteral>
Deprecated.As of 2.5.0.static Set<QuotedLiteral>
findQuotedLiteralsWithType
(Scalar type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds quoted literals referencing the given scalar as typestatic Set<RelationBase>
findRelationBasesWithSource
(Entity source) Deprecated.As of 2.5.0.static Set<RelationBase>
findRelationBasesWithSource
(Entity source, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation bases referencing the given entity as sourcestatic Set<RelationBase>
findRelationBasesWithTarget
(Entity target) Deprecated.As of 2.5.0.static Set<RelationBase>
findRelationBasesWithTarget
(Entity target, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation bases referencing the given entity as targetstatic Set<RelationEntity>
Deprecated.As of 2.5.0.static Set<RelationEntity>
findRelationEntitiesWithRef
(RelationEntity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation entity referencing the given relation entitystatic Set<RelationEntityPredicate>
Deprecated.As of 2.5.0.static Set<RelationEntityPredicate>
findRelationEntityPredicatesWithType
(RelationEntity type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation entity predicates referencing the given relation entitystatic Set<RelationInstance>
findRelationInstancesWithRef
(RelationInstance instance) Deprecated.As of 2.5.0.static Set<RelationInstance>
findRelationInstancesWithRef
(RelationInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation instance referencing the given relation instancestatic Set<RelationInstance>
Deprecated.As of 2.5.0.static Set<RelationInstance>
findRelationInstancesWithSource
(NamedInstance source, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation instances referencing the given named instance as sourcestatic Set<RelationInstance>
Deprecated.As of 2.5.0.static Set<RelationInstance>
findRelationInstancesWithTarget
(NamedInstance target, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation instances referencing the given named instance as targetfindRulesWithRef
(Rule rule) Deprecated.As of 2.5.0.findRulesWithRef
(Rule rule, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds rule referencing the given rulestatic Set<ScalarEquivalenceAxiom>
Deprecated.As of 2.5.0.static Set<ScalarEquivalenceAxiom>
findScalarEquivalenceAxiomsWithSuperScalar
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars equivalence axioms referencing the given scalarstatic Set<ScalarProperty>
Deprecated.As of 2.5.0.static Set<ScalarProperty>
findScalarPropertiesWithDomain
(Classifier domain, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar properties referencing the given classifier as domainstatic Set<ScalarProperty>
Deprecated.As of 2.5.0.static Set<ScalarProperty>
findScalarPropertiesWithRange
(Scalar range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar properties referencing the given scalar as rangestatic Set<ScalarProperty>
findScalarPropertiesWithRef
(ScalarProperty property) Deprecated.As of 2.5.0.static Set<ScalarProperty>
findScalarPropertiesWithRef
(ScalarProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar property referencing the given scalar propertyfindScalarsWithRef
(Scalar scalar) Deprecated.As of 2.5.0.findScalarsWithRef
(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar referencing the given scalarstatic Set<SpecializationAxiom>
Deprecated.As of 2.5.0.static Set<SpecializationAxiom>
findSpecializationAxiomsWithSuperTerm
(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds specialization axioms referencing the given super termstatic Set<StructuredProperty>
Deprecated.As of 2.5.0.static Set<StructuredProperty>
findStructuredPropertiesWithDomain
(Classifier domain, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structured properties referencing the given classifier as domainstatic Set<StructuredProperty>
Deprecated.As of 2.5.0.static Set<StructuredProperty>
findStructuredPropertiesWithRange
(Structure range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structured properties referencing the given structure as rangestatic Set<StructuredProperty>
Deprecated.As of 2.5.0.static Set<StructuredProperty>
findStructuredPropertiesWithRef
(StructuredProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structured property referencing the given structured propertystatic Set<StructureInstance>
Deprecated.As of 2.5.0.static Set<StructureInstance>
findStructureInstancesWithType
(Structure type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structure instances referencing the given structure as typefindStructuresWithRef
(Structure structure) Deprecated.As of 2.5.0.findStructuresWithRef
(Structure structure, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structure referencing the given structurestatic Set<TypeAssertion>
Deprecated.As of 2.5.0.static Set<TypeAssertion>
findTypeAssertionsWithType
(Entity type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds type assertions referencing the given typestatic Set<TypePredicate>
Deprecated.As of 2.5.0.static Set<TypePredicate>
findTypePredicatesWithType
(Type type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds type predicates referencing the given typestatic Set<UnreifiedRelation>
findUnreifiedRelationsWithRef
(Relation relation) Deprecated.As of 2.5.0.static Set<UnreifiedRelation>
findUnreifiedRelationsWithRef
(Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds unreified relations referencing the given relation
-
Constructor Details
-
OmlIndex
public OmlIndex()
-
-
Method Details
-
findAnnotationsWithProperty
public static Set<Annotation> findAnnotationsWithProperty(AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds annotations referencing the given property- Parameters:
property
- The referenced propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing annotations
-
findAnnotationsWithProperty
Deprecated.As of 2.5.0. Use {findAnnotationsWithProperty(AnnotationProperty, Set<Resource>)
insteadFinds annotations referencing the given property- Parameters:
property
- The referenced property- Returns:
- A set of referencing annotations
-
findAnnotationsWithReferencedValue
public static Set<Annotation> findAnnotationsWithReferencedValue(Member value, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds annotations referencing the given referenced value- Parameters:
value
- The referenced valuescope
- The scope of the search (can be null)- Returns:
- A set of referencing annotations
-
findAnnotationsWithReferencedValue
Deprecated.As of 2.5.0. Use {findAnnotationsWithReferencedValue(Member, Set<Resource>)
insteadFinds annotations referencing the given referenced value- Parameters:
value
- The referenced value- Returns:
- A set of referencing annotations
-
findInstanceEnumerationAxiomsWithInstance
public static Set<InstanceEnumerationAxiom> findInstanceEnumerationAxiomsWithInstance(ConceptInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds instance enumeration axioms that references the given instance- Parameters:
instance
- The given instancescope
- The scope of the search (can be null)- Returns:
- A set of instance enumeration axioms enumerating the given instance
-
findInstanceEnumerationAxiomsWithInstance
@Deprecated public static Set<InstanceEnumerationAxiom> findInstanceEnumerationAxiomsWithInstance(ConceptInstance instance) Deprecated.As of 2.5.0. Use {findInstanceEnumerationAxiomsWithInstance(ConceptInstance, Set<Resource>)
insteadFinds instance enumeration axioms that references the given instance- Parameters:
instance
- The given instance- Returns:
- A set of instance enumeration axioms enumerating the given instance
-
findRelationBasesWithSource
public static Set<RelationBase> findRelationBasesWithSource(Entity source, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation bases referencing the given entity as source- Parameters:
source
- The referenced entityscope
- The scope of the search (can be null)- Returns:
- A set of referencing relation bases
-
findRelationBasesWithSource
Deprecated.As of 2.5.0. Use {findRelationBasesWithSource(Entity, Set<Resource>)
insteadFinds relation bases referencing the given entity as source- Parameters:
source
- The referenced entity- Returns:
- A set of referencing relation bases
-
findRelationBasesWithTarget
public static Set<RelationBase> findRelationBasesWithTarget(Entity target, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation bases referencing the given entity as target- Parameters:
target
- The referenced entityscope
- The scope of the search (can be null)- Returns:
- A set of referencing relation bases
-
findRelationBasesWithTarget
Deprecated.As of 2.5.0. Use {findRelationBasesWithTarget(Entity, Set<Resource>)
insteadFinds relation bases referencing the given entity as target- Parameters:
target
- The referenced entity- Returns:
- A set of referencing relation bases
-
findScalarPropertiesWithDomain
public static Set<ScalarProperty> findScalarPropertiesWithDomain(Classifier domain, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar 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 scalar properties
-
findScalarPropertiesWithDomain
Deprecated.As of 2.5.0. Use {findScalarPropertiesWithDomain(Classifier, Set<Resource>)
insteadFinds scalar properties referencing the given classifier as domain- Parameters:
domain
- The referenced classifier- Returns:
- A set of referencing scalar properties
-
findScalarPropertiesWithRange
public static Set<ScalarProperty> findScalarPropertiesWithRange(Scalar range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar properties referencing the given scalar as range- Parameters:
range
- The referenced scalarscope
- The scope of the search (can be null)- Returns:
- A set of referencing scalar properties
-
findScalarPropertiesWithRange
Deprecated.As of 2.5.0. Use {findScalarPropertiesWithRange(Scalar, Set<Resource>)
insteadFinds scalar properties referencing the given scalar as range- Parameters:
range
- The referenced scalar- Returns:
- A set of referencing scalar properties
-
findStructuredPropertiesWithDomain
public static Set<StructuredProperty> findStructuredPropertiesWithDomain(Classifier domain, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structured 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 scalar properties
-
findStructuredPropertiesWithDomain
@Deprecated public static Set<StructuredProperty> findStructuredPropertiesWithDomain(Classifier domain) Deprecated.As of 2.5.0. Use {findStructuredPropertiesWithDomain(Classifier, Set<Resource>)
insteadFinds structured properties referencing the given classifier as domain- Parameters:
domain
- The referenced classifier- Returns:
- A set of referencing scalar properties
-
findStructuredPropertiesWithRange
public static Set<StructuredProperty> findStructuredPropertiesWithRange(Structure range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structured properties referencing the given structure as range- Parameters:
range
- The referenced structurescope
- The scope of the search (can be null)- Returns:
- A set of referencing structured properties
-
findStructuredPropertiesWithRange
@Deprecated public static Set<StructuredProperty> findStructuredPropertiesWithRange(Structure range) Deprecated.As of 2.5.0. Use {findStructuredPropertiesWithRange(Structure, Set<Resource>)
insteadFinds structured properties referencing the given structure as range- Parameters:
range
- The referenced structure- Returns:
- A set of referencing structured properties
-
findStructureInstancesWithType
public static Set<StructureInstance> findStructureInstancesWithType(Structure type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structure instances referencing the given structure as type- Parameters:
type
- The referenced structurescope
- The scope of the search (can be null)- Returns:
- A set of referencing structure instances
-
findStructureInstancesWithType
Deprecated.As of 2.5.0. Use {findStructureInstancesWithType(Structure, Set<Resource>)
insteadFinds structure instances referencing the given structure as type- Parameters:
type
- The referenced structure- Returns:
- A set of referencing structure instances
-
findRelationInstancesWithSource
public static Set<RelationInstance> findRelationInstancesWithSource(NamedInstance source, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation instances referencing the given named instance as source- Parameters:
source
- The referenced named instancescope
- The scope of the search (can be null)- Returns:
- A set of referencing relation instances
-
findRelationInstancesWithSource
@Deprecated public static Set<RelationInstance> findRelationInstancesWithSource(NamedInstance source) Deprecated.As of 2.5.0. Use {findRelationInstancesWithSource(NamedInstance, Set<Resource>)
insteadFinds relation instances referencing the given named instance as source- Parameters:
source
- The referenced named instance- Returns:
- A set of referencing relation instances
-
findRelationInstancesWithTarget
public static Set<RelationInstance> findRelationInstancesWithTarget(NamedInstance target, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation instances referencing the given named instance as target- Parameters:
target
- The referenced named instancescope
- The scope of the search (can be null)- Returns:
- A set of referencing relation instances
-
findRelationInstancesWithTarget
@Deprecated public static Set<RelationInstance> findRelationInstancesWithTarget(NamedInstance target) Deprecated.As of 2.5.0. Use {findRelationInstancesWithTarget(NamedInstance, Set<Resource>)
insteadFinds relation instances referencing the given named instance as target- Parameters:
target
- The referenced named instance- Returns:
- A set of referencing relation instances
-
findAspectsWithRef
public static Set<Aspect> findAspectsWithRef(Aspect aspect, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds aspects referencing the given aspect- Parameters:
aspect
- The referenced aspectscope
- The scope of the search (can be null)- Returns:
- A set of referencing aspects
-
findAspectsWithRef
Deprecated.As of 2.5.0. Use {findAspectsWithRef(Aspect, Set<Resource>)
insteadFinds aspects referencing the given aspect- Parameters:
aspect
- The referenced aspect- Returns:
- A set of referencing aspects
-
findConceptsWithRef
public static Set<Concept> findConceptsWithRef(Concept concept, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds concept referencing the given concept- Parameters:
concept
- The referenced conceptscope
- The scope of the search (can be null)- Returns:
- A set of referencing concepts
-
findConceptsWithRef
Deprecated.As of 2.5.0. Use {findConceptsWithRef(Concept, Set<Resource>)
insteadFinds concept referencing the given concept- Parameters:
concept
- The referenced concept- Returns:
- A set of referencing concepts
-
findRelationEntitiesWithRef
public static Set<RelationEntity> findRelationEntitiesWithRef(RelationEntity entity, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation entity referencing the given relation entity- Parameters:
entity
- The referenced relation entityscope
- The scope of the search (can be null)- Returns:
- A set of referencing relation entities
-
findRelationEntitiesWithRef
Deprecated.As of 2.5.0. Use {findRelationEntitiesWithRef(RelationEntity, Set<Resource>)
insteadFinds relation entity referencing the given relation entity- Parameters:
entity
- The referenced relation entity- Returns:
- A set of referencing relation entities
-
findStructuresWithRef
public static Set<Structure> findStructuresWithRef(Structure structure, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structure referencing the given structure- Parameters:
structure
- The referenced structurescope
- The scope of the search (can be null)- Returns:
- A set of referencing structures
-
findStructuresWithRef
Deprecated.As of 2.5.0. Use {findStructuresWithRef(Structure, Set<Resource>)
insteadFinds structure referencing the given structure- Parameters:
structure
- The referenced structure- Returns:
- A set of referencing structures
-
findAnnotationPropertiesWithRef
public static Set<AnnotationProperty> findAnnotationPropertiesWithRef(AnnotationProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds annotation property referencing the given annotation property- Parameters:
property
- The referenced annotation propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing annotation properties
-
findAnnotationPropertiesWithRef
@Deprecated public static Set<AnnotationProperty> findAnnotationPropertiesWithRef(AnnotationProperty property) Deprecated.As of 2.5.0. Use {findAnnotationPropertiesWithRef(AnnotationProperty, Set<Resource>)
insteadFinds annotation property referencing the given annotation property- Parameters:
property
- The referenced annotation property- Returns:
- A set of referencing annotation properties
-
findScalarPropertiesWithRef
public static Set<ScalarProperty> findScalarPropertiesWithRef(ScalarProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar property referencing the given scalar property- Parameters:
property
- The referenced scalar propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing scalar properties
-
findScalarPropertiesWithRef
Deprecated.As of 2.5.0. Use {findScalarPropertiesWithRef(ScalarProperty, Set<Resource>)
insteadFinds scalar property referencing the given scalar property- Parameters:
property
- The referenced scalar property- Returns:
- A set of referencing scalar properties
-
findStructuredPropertiesWithRef
public static Set<StructuredProperty> findStructuredPropertiesWithRef(StructuredProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds structured property referencing the given structured property- Parameters:
property
- The referenced structured propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing structured properties
-
findStructuredPropertiesWithRef
@Deprecated public static Set<StructuredProperty> findStructuredPropertiesWithRef(StructuredProperty property) Deprecated.As of 2.5.0. Use {findStructuredPropertiesWithRef(StructuredProperty, Set<Resource>)
insteadFinds structured property referencing the given structured property- Parameters:
property
- The referenced structured property- Returns:
- A set of referencing structured properties
-
findScalarsWithRef
public static Set<Scalar> findScalarsWithRef(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalar referencing the given scalar- Parameters:
scalar
- The referenced scalarscope
- The scope of the search (can be null)- Returns:
- A set of referencing scalars
-
findScalarsWithRef
Deprecated.As of 2.5.0. Use {findScalarsWithRef(Scalar, Set<Resource>)
insteadFinds scalar referencing the given scalar- Parameters:
scalar
- The referenced scalar- Returns:
- A set of referencing scalars
-
findUnreifiedRelationsWithRef
public static Set<UnreifiedRelation> findUnreifiedRelationsWithRef(Relation relation, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds unreified relations referencing the given relation- Parameters:
relation
- The referenced relationscope
- The scope of the search (can be null)- Returns:
- A set of referencing relations
-
findUnreifiedRelationsWithRef
Deprecated.As of 2.5.0. Use {findUnreifiedRelationsWithRef(Relation, Set<Resource>)
insteadFinds unreified relations referencing the given relation- Parameters:
relation
- The referenced relation- Returns:
- A set of referencing relations
-
findRulesWithRef
public static Set<Rule> findRulesWithRef(Rule rule, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds rule referencing the given rule- Parameters:
rule
- The referenced rulescope
- The scope of the search (can be null)- Returns:
- A set of referencing rules
-
findRulesWithRef
Deprecated.As of 2.5.0. Use {findRulesWithRef(Rule, Set<Resource>)
insteadFinds rule referencing the given rule- Parameters:
rule
- The referenced rule- Returns:
- A set of referencing rules
-
findBuiltInsWithRef
public static Set<BuiltIn> findBuiltInsWithRef(BuiltIn builtIn, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds builtIn referencing the given builtIn- Parameters:
builtIn
- The referenced builtInscope
- The scope of the search (can be null)- Returns:
- A set of referencing builtIn
-
findBuiltInsWithRef
Deprecated.As of 2.5.0. Use {findBuiltInsWithRef(BuiltIn, Set<Resource>)
insteadFinds builtIn referencing the given builtIn- Parameters:
builtIn
- The referenced builtIn- Returns:
- A set of referencing builtIn
-
findConceptInstancesWithRef
public static Set<ConceptInstance> findConceptInstancesWithRef(ConceptInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds concept instance referencing the given concept instance- Parameters:
instance
- The referenced concept instancescope
- The scope of the search (can be null)- Returns:
- A set of referencing concept instances
-
findConceptInstancesWithRef
@Deprecated public static Set<ConceptInstance> findConceptInstancesWithRef(ConceptInstance instance) Deprecated.As of 2.5.0. Use {findConceptInstancesWithRef(ConceptInstance, Set<Resource>)
insteadFinds concept instance referencing the given concept instance- Parameters:
instance
- The referenced concept instance- Returns:
- A set of referencing concept instances
-
findRelationInstancesWithRef
public static Set<RelationInstance> findRelationInstancesWithRef(RelationInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation instance referencing the given relation instance- Parameters:
instance
- The referenced relation instancescope
- The scope of the search (can be null)- Returns:
- A set of referencing relation instances
-
findRelationInstancesWithRef
@Deprecated public static Set<RelationInstance> findRelationInstancesWithRef(RelationInstance instance) Deprecated.As of 2.5.0. Use {findRelationInstancesWithRef(RelationInstance, Set<Resource>)
insteadFinds relation instance referencing the given relation instance- Parameters:
instance
- The referenced relation instance- Returns:
- A set of referencing relation instances
-
findSpecializationAxiomsWithSuperTerm
public static Set<SpecializationAxiom> findSpecializationAxiomsWithSuperTerm(Term term, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds specialization axioms referencing the given super term- Parameters:
term
- The referenced super termscope
- The scope of the search (can be null)- Returns:
- A set of referencing specialization axioms
-
findSpecializationAxiomsWithSuperTerm
Deprecated.As of 2.5.0. Use {findSpecializationAxiomsWithSuperTerm(Term, Set<Resource>)
insteadFinds specialization axioms referencing the given super term- Parameters:
term
- The referenced super term- Returns:
- A set of referencing specialization axioms
-
findClassifierEquivalenceAxiomsWithSuperClassifier
public static Set<ClassifierEquivalenceAxiom> findClassifierEquivalenceAxiomsWithSuperClassifier(Classifier classifier, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds classifier equivalence axioms referencing the given classifier- Parameters:
classifier
- The referenced classifierscope
- The scope of the search (can be null)- Returns:
- A set of referencing classifier equivalence axioms
-
findClassifierEquivalenceAxiomsWithSuperClassifier
@Deprecated public static Set<ClassifierEquivalenceAxiom> findClassifierEquivalenceAxiomsWithSuperClassifier(Classifier classifier) Deprecated.As of 2.5.0. Use {findClassifierEquivalenceAxiomsWithSuperClassifier(Classifier, Set<Resource>)
insteadFinds classifier equivalence axioms referencing the given classifier- Parameters:
classifier
- The referenced classifier- Returns:
- A set of referencing classifier equivalence axioms
-
findScalarEquivalenceAxiomsWithSuperScalar
public static Set<ScalarEquivalenceAxiom> findScalarEquivalenceAxiomsWithSuperScalar(Scalar scalar, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds scalars equivalence axioms referencing the given scalar- Parameters:
scalar
- The referenced scalarscope
- The scope of the search (can be null)- Returns:
- A set of referencing scalar equivalence axioms
-
findScalarEquivalenceAxiomsWithSuperScalar
@Deprecated public static Set<ScalarEquivalenceAxiom> findScalarEquivalenceAxiomsWithSuperScalar(Scalar scalar) Deprecated.As of 2.5.0. Use {findScalarEquivalenceAxiomsWithSuperScalar(Scalar, Set<Resource>)
insteadFinds scalars equivalence axioms referencing the given scalar- Parameters:
scalar
- The referenced scalar- Returns:
- A set of referencing scalar equivalence axioms
-
findPropertyEquivalenceAxiomsWithSuperProperty
public static Set<PropertyEquivalenceAxiom> findPropertyEquivalenceAxiomsWithSuperProperty(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property equivalence axioms referencing the given property- Parameters:
property
- The referenced propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing property equivalence axioms
-
findPropertyEquivalenceAxiomsWithSuperProperty
@Deprecated public static Set<PropertyEquivalenceAxiom> findPropertyEquivalenceAxiomsWithSuperProperty(Property property) Deprecated.As of 2.5.0. Use {findPropertyEquivalenceAxiomsWithSuperProperty(Property, Set<Resource>)
insteadFinds property equivalence axioms referencing the given property- Parameters:
property
- The referenced property- Returns:
- A set of referencing property equivalence axioms
-
findPropertyRestrictionAxiomsWithProperty
public static Set<PropertyRestrictionAxiom> findPropertyRestrictionAxiomsWithProperty(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property restriction axioms referencing the given property- Parameters:
property
- The referenced propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing property restriction axioms
-
findPropertyRestrictionAxiomsWithProperty
@Deprecated public static Set<PropertyRestrictionAxiom> findPropertyRestrictionAxiomsWithProperty(Property property) Deprecated.As of 2.5.0. Use {findPropertyRestrictionAxiomsWithProperty(Property, Set<Resource>)
insteadFinds property restriction axioms referencing the given property- Parameters:
property
- The referenced property- Returns:
- A set of referencing property restriction axioms
-
findPropertyRangeRestrictionAxiomsWithRange
public static Set<PropertyRangeRestrictionAxiom> findPropertyRangeRestrictionAxiomsWithRange(Type range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property range restriction axioms referencing the given range- Parameters:
range
- The given rangescope
- The scope of the search (can be null)- Returns:
- A set of referencing property range restriction axioms
-
findPropertyRangeRestrictionAxiomsWithRange
@Deprecated public static Set<PropertyRangeRestrictionAxiom> findPropertyRangeRestrictionAxiomsWithRange(Type range) Deprecated.As of 2.5.0. Use {findPropertyRangeRestrictionAxiomsWithRange(Type, Set<Resource>)
insteadFinds property range restriction axioms referencing the given range- Parameters:
range
- The given range- Returns:
- A set of referencing property range restriction axioms
-
findPropertyCardinalityRestrictionAxiomsWithRange
public static Set<PropertyCardinalityRestrictionAxiom> findPropertyCardinalityRestrictionAxiomsWithRange(Type range, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property cardinality restriction axioms referencing the given range- Parameters:
range
- The given rangescope
- The scope of the search (can be null)- Returns:
- A set of referencing property cardinality restriction axioms
-
findPropertyCardinalityRestrictionAxiomsWithRange
@Deprecated public static Set<PropertyCardinalityRestrictionAxiom> findPropertyCardinalityRestrictionAxiomsWithRange(Type range) Deprecated.As of 2.5.0. Use {findPropertyCardinalityRestrictionAxiomsWithRange(Type, Set<Resource>)
insteadFinds property cardinality restriction axioms referencing the given range- Parameters:
range
- The given range- Returns:
- A set of referencing property cardinality restriction axioms
-
findPropertyValueRestrictionAxiomsWithReferencedValue
public static Set<PropertyValueRestrictionAxiom> findPropertyValueRestrictionAxiomsWithReferencedValue(NamedInstance value, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value restriction axioms referencing the given referenced value- Parameters:
value
- The given referenced valuescope
- The scope of the search (can be null)- Returns:
- A set of referencing property value restriction axioms
-
findPropertyValueRestrictionAxiomsWithReferencedValue
@Deprecated public static Set<PropertyValueRestrictionAxiom> findPropertyValueRestrictionAxiomsWithReferencedValue(NamedInstance value) Deprecated.As of 2.5.0. Use {findPropertyValueRestrictionAxiomsWithReferencedValue(NamedInstance, Set<Resource>)
insteadFinds property value restriction axioms referencing the given referenced value- Parameters:
value
- The given referenced value- Returns:
- A set of referencing property value restriction axioms
-
findKeyAxiomsWithProperty
public static Set<KeyAxiom> findKeyAxiomsWithProperty(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds key axioms referencing the given property- Parameters:
property
- The referenced propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing key axioms
-
findKeyAxiomsWithProperty
Deprecated.As of 2.5.0. Use {findKeyAxiomsWithProperty(Property, Set<Resource>)
insteadFinds key axioms referencing the given property- Parameters:
property
- The referenced property- Returns:
- A set of referencing key axioms
-
findTypeAssertionsWithType
public static Set<TypeAssertion> findTypeAssertionsWithType(Entity type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds type assertions referencing the given type- Parameters:
type
- The referenced typescope
- The scope of the search (can be null)- Returns:
- A set of referencing type assertions
-
findTypeAssertionsWithType
Deprecated.As of 2.5.0. Use {findTypeAssertionsWithType(Entity, Set<Resource>)
insteadFinds type assertions referencing the given type- Parameters:
type
- The referenced type- Returns:
- A set of referencing type assertions
-
findPropertyValueAssertionsWithProperty
public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithProperty(SemanticProperty property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value assertions referencing the given property- Parameters:
property
- The referenced propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing property value assertions
-
findPropertyValueAssertionsWithProperty
@Deprecated public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithProperty(SemanticProperty property) Deprecated.As of 2.5.0. Use {findPropertyValueAssertionsWithProperty(SemanticProperty, Set<Resource>)
insteadFinds property value assertions referencing the given property- Parameters:
property
- The referenced property- Returns:
- A set of referencing property value assertions
-
findPropertyValueAssertionsWithReferencedValue
public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithReferencedValue(NamedInstance value, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property value assertions referencing the given referenced value- Parameters:
value
- The referenced valuescope
- The scope of the search (can be null)- Returns:
- A set of referencing property value assertions
-
findPropertyValueAssertionsWithReferencedValue
@Deprecated public static Set<PropertyValueAssertion> findPropertyValueAssertionsWithReferencedValue(NamedInstance value) Deprecated.As of 2.5.0. Use {findPropertyValueAssertionsWithReferencedValue(NamedInstance, Set<Resource>)
insteadFinds property value assertions referencing the given referenced value- Parameters:
value
- The referenced value- Returns:
- A set of referencing property value assertions
-
findTypePredicatesWithType
public static Set<TypePredicate> findTypePredicatesWithType(Type type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds type predicates referencing the given type- Parameters:
type
- The referenced typescope
- The scope of the search (can be null)- Returns:
- A set of referencing type predicates
-
findTypePredicatesWithType
Deprecated.As of 2.5.0. Use {findTypePredicatesWithType(Type, Set<Resource>)
insteadFinds type predicates referencing the given type- Parameters:
type
- The referenced type- Returns:
- A set of referencing type predicates
-
findRelationEntityPredicatesWithType
public static Set<RelationEntityPredicate> findRelationEntityPredicatesWithType(RelationEntity type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds relation entity predicates referencing the given relation entity- Parameters:
type
- The referenced relation entityscope
- The scope of the search (can be null)- Returns:
- A set of referencing relation entity predicates
-
findRelationEntityPredicatesWithType
@Deprecated public static Set<RelationEntityPredicate> findRelationEntityPredicatesWithType(RelationEntity type) Deprecated.As of 2.5.0. Use {findRelationEntityPredicatesWithType(RelationEntity, Set<Resource>)
insteadFinds relation entity predicates referencing the given relation entity- Parameters:
type
- The referenced relation entity- Returns:
- A set of referencing relation entity predicates
-
findPropertyPredicatesWithProperty
public static Set<PropertyPredicate> findPropertyPredicatesWithProperty(Property property, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds property predicates referencing the given property- Parameters:
property
- The referenced propertyscope
- The scope of the search (can be null)- Returns:
- A set of referencing property predicates
-
findPropertyPredicatesWithProperty
@Deprecated public static Set<PropertyPredicate> findPropertyPredicatesWithProperty(Property property) Deprecated.As of 2.5.0. Use {findPropertyPredicatesWithProperty(Property, Set<Resource>)
insteadFinds property predicates referencing the given property- Parameters:
property
- The referenced property- Returns:
- A set of referencing property predicates
-
findBuiltInPredicatesWithBuiltIn
public static Set<BuiltInPredicate> findBuiltInPredicatesWithBuiltIn(BuiltIn builtIn, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds builtIn predicates referencing the given builtIn- Parameters:
builtIn
- The referenced builtInscope
- The scope of the search (can be null)- Returns:
- A set of referencing builtIn predicates
-
findBuiltInPredicatesWithBuiltIn
Deprecated.As of 2.5.0. Use {findBuiltInPredicatesWithBuiltIn(BuiltIn, Set<Resource>)
insteadFinds builtIn predicates referencing the given builtIn- Parameters:
builtIn
- The referenced builtIn- Returns:
- A set of referencing builtIn predicates
-
findQuotedLiteralsWithType
public static Set<QuotedLiteral> findQuotedLiteralsWithType(Scalar type, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds quoted literals referencing the given scalar as type- Parameters:
type
- The referenced scalarscope
- The scope of the search (can be null)- Returns:
- A set of referencing quoted literals
-
findQuotedLiteralsWithType
Deprecated.As of 2.5.0. Use {findQuotedLiteralsWithType(Scalar, Set<Resource>)
insteadFinds quoted literals referencing the given scalar as type- Parameters:
type
- The referenced scalar- Returns:
- A set of referencing quoted literals
-
findArgumentsWithInstance
public static Set<Argument> findArgumentsWithInstance(NamedInstance instance, Set<org.eclipse.emf.ecore.resource.Resource> scope) Finds arguments referencing the given named instance- Parameters:
instance
- The referenced instancescope
- The scope of the search (can be null)- Returns:
- A set of referencing arguments
-
findArgumentsWithInstance
Deprecated.As of 2.5.0. Use {findArgumentsWithInstance(NamedInstance, Set<Resource>)
insteadFinds arguments referencing the given named instance- Parameters:
instance
- The referenced instance- Returns:
- A set of referencing arguments
-