Class OmlIndex

java.lang.Object
io.opencaesar.oml.util.OmlIndex
Direct Known Subclasses:
OmlSearch

public class OmlIndex extends Object
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 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 property
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing annotations
    • findAnnotationsWithProperty

      @Deprecated public static Set<Annotation> findAnnotationsWithProperty(AnnotationProperty property)
      Finds 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 value
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing annotations
    • findAnnotationsWithReferencedValue

      @Deprecated public static Set<Annotation> findAnnotationsWithReferencedValue(Member value)
      Deprecated.
      Finds 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 instance
      scope - 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)
      Finds 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 entity
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing relation bases
    • findRelationBasesWithSource

      @Deprecated public static Set<RelationBase> findRelationBasesWithSource(Entity source)
      Deprecated.
      Finds 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 entity
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing relation bases
    • findRelationBasesWithTarget

      @Deprecated public static Set<RelationBase> findRelationBasesWithTarget(Entity target)
      Deprecated.
      Finds 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 classifier
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing scalar properties
    • findScalarPropertiesWithDomain

      @Deprecated public static Set<ScalarProperty> findScalarPropertiesWithDomain(Classifier domain)
      Deprecated.
      Finds 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 scalar
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing scalar properties
    • findScalarPropertiesWithRange

      @Deprecated public static Set<ScalarProperty> findScalarPropertiesWithRange(Scalar range)
      Deprecated.
      Finds 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 classifier
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing scalar properties
    • findStructuredPropertiesWithDomain

      @Deprecated public static Set<StructuredProperty> findStructuredPropertiesWithDomain(Classifier domain)
      Finds 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 structure
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing structured properties
    • findStructuredPropertiesWithRange

      @Deprecated public static Set<StructuredProperty> findStructuredPropertiesWithRange(Structure range)
      Finds 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 structure
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing structure instances
    • findStructureInstancesWithType

      @Deprecated public static Set<StructureInstance> findStructureInstancesWithType(Structure type)
      Deprecated.
      Finds 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 instance
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing relation instances
    • findRelationInstancesWithSource

      @Deprecated public static Set<RelationInstance> findRelationInstancesWithSource(NamedInstance source)
      Finds 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 instance
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing relation instances
    • findRelationInstancesWithTarget

      @Deprecated public static Set<RelationInstance> findRelationInstancesWithTarget(NamedInstance target)
      Finds 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 aspect
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing aspects
    • findAspectsWithRef

      @Deprecated public static Set<Aspect> findAspectsWithRef(Aspect aspect)
      Deprecated.
      Finds 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 concept
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing concepts
    • findConceptsWithRef

      @Deprecated public static Set<Concept> findConceptsWithRef(Concept concept)
      Deprecated.
      Finds 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 entity
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing relation entities
    • findRelationEntitiesWithRef

      @Deprecated public static Set<RelationEntity> findRelationEntitiesWithRef(RelationEntity entity)
      Deprecated.
      Finds 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 structure
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing structures
    • findStructuresWithRef

      @Deprecated public static Set<Structure> findStructuresWithRef(Structure structure)
      Deprecated.
      Finds 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 property
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing annotation properties
    • findAnnotationPropertiesWithRef

      @Deprecated public static Set<AnnotationProperty> findAnnotationPropertiesWithRef(AnnotationProperty property)
      Finds 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 property
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing scalar properties
    • findScalarPropertiesWithRef

      @Deprecated public static Set<ScalarProperty> findScalarPropertiesWithRef(ScalarProperty property)
      Deprecated.
      Finds 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 property
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing structured properties
    • findStructuredPropertiesWithRef

      @Deprecated public static Set<StructuredProperty> findStructuredPropertiesWithRef(StructuredProperty property)
      Finds 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 scalar
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing scalars
    • findScalarsWithRef

      @Deprecated public static Set<Scalar> findScalarsWithRef(Scalar scalar)
      Deprecated.
      Finds 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 relation
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing relations
    • findUnreifiedRelationsWithRef

      @Deprecated public static Set<UnreifiedRelation> findUnreifiedRelationsWithRef(Relation relation)
      Deprecated.
      Finds 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 rule
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing rules
    • findRulesWithRef

      @Deprecated public static Set<Rule> findRulesWithRef(Rule rule)
      Deprecated.
      As of 2.5.0. Use {findRulesWithRef(Rule, Set<Resource>) instead
      Finds 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 builtIn
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing builtIn
    • findBuiltInsWithRef

      @Deprecated public static Set<BuiltIn> findBuiltInsWithRef(BuiltIn builtIn)
      Deprecated.
      Finds 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 instance
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing concept instances
    • findConceptInstancesWithRef

      @Deprecated public static Set<ConceptInstance> findConceptInstancesWithRef(ConceptInstance instance)
      Finds 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 instance
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing relation instances
    • findRelationInstancesWithRef

      @Deprecated public static Set<RelationInstance> findRelationInstancesWithRef(RelationInstance instance)
      Finds 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 term
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing specialization axioms
    • findSpecializationAxiomsWithSuperTerm

      @Deprecated public static Set<SpecializationAxiom> findSpecializationAxiomsWithSuperTerm(Term term)
      Deprecated.
      Finds 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 classifier
      scope - 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)
      Finds 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 scalar
      scope - 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)
      Finds 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 property
      scope - 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)
      Finds 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 property
      scope - 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)
      Finds 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 range
      scope - 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)
      Finds 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 range
      scope - 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)
      Finds 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 value
      scope - 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)
      Finds 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 property
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing key axioms
    • findKeyAxiomsWithProperty

      @Deprecated public static Set<KeyAxiom> findKeyAxiomsWithProperty(Property property)
      Deprecated.
      Finds 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 type
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing type assertions
    • findTypeAssertionsWithType

      @Deprecated public static Set<TypeAssertion> findTypeAssertionsWithType(Entity type)
      Deprecated.
      Finds 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 property
      scope - 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)
      Finds 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 value
      scope - 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)
      Finds 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 type
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing type predicates
    • findTypePredicatesWithType

      @Deprecated public static Set<TypePredicate> findTypePredicatesWithType(Type type)
      Deprecated.
      Finds 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 entity
      scope - 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)
      Finds 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 property
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing property predicates
    • findPropertyPredicatesWithProperty

      @Deprecated public static Set<PropertyPredicate> findPropertyPredicatesWithProperty(Property property)
      Finds 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 builtIn
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing builtIn predicates
    • findBuiltInPredicatesWithBuiltIn

      @Deprecated public static Set<BuiltInPredicate> findBuiltInPredicatesWithBuiltIn(BuiltIn builtIn)
      Deprecated.
      Finds 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 scalar
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing quoted literals
    • findQuotedLiteralsWithType

      @Deprecated public static Set<QuotedLiteral> findQuotedLiteralsWithType(Scalar type)
      Deprecated.
      Finds 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 instance
      scope - The scope of the search (can be null)
      Returns:
      A set of referencing arguments
    • findArgumentsWithInstance

      @Deprecated public static Set<Argument> findArgumentsWithInstance(NamedInstance instance)
      Deprecated.
      Finds arguments referencing the given named instance
      Parameters:
      instance - The referenced instance
      Returns:
      A set of referencing arguments