Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.gmt.modisco.infra.facet.core
Class FacetContext

    java.lang.Object
      org.eclipse.gmt.modisco.infra.facet.core.FacetContext

    public class FacetContext

extends java.lang.Object

Author:
  Gregoire Dupe

Constructor Summary
`FacetContext()`

Method Summary
`void` | `addAll(java.util.Collection<FacetSet> allFacetSets)`
`void` | `addComposedResource(Resource resource)`
`void` | `addFacet(Facet facet)`
`void` | `addFacetSet(FacetSet facetSet)`
`void` | `clean()`
`java.lang.Object` | `get(EObject eObject, EStructuralFeature structuralFeature)`
`java.util.HashSet<Facet>` | `getAppliedFacets()`
`` | `getAttributes(EObject eObject)`
`java.util.List<EStructuralFeature>` | `getFacetFeatures(EObject eObject)`
`java.util.List<Facet>` | `getFacets(EObject eObject)`
`java.util.List<EClass>` | `getMetaClasses()`
`` | `getReferences(EObject eObject)`
`boolean` | `isInstance(EObject eObject, Facet facet)`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FacetContext

    public FacetContext()

Method Detail

### addComposedResource

    public void addComposedResource(Resource resource)

### addFacetSet

    public void addFacetSet(FacetSet facetSet)

  Parameters:
    `facetSet` -

### addFacet

    public void addFacet(Facet facet)

  Parameters:
    `facet` -

### isInstance

    public boolean isInstance(EObject eObject,
                              Facet facet)
                       throws ModelQueryException

  Parameters:
    `ecorePackage` -
    `facet` -
  Returns:
  Throws:
    `ModelQueryException`

### get

    public java.lang.Object get(EObject eObject,
                                EStructuralFeature structuralFeature)
                         throws ModelQueryException,
                                ModiscoFacetException

  Parameters:
    `structuralFeature` -
  Returns:
  Throws:
    `ModelQueryException`
    `ModiscoFacetException`
    `StructuralConstraintViolationException`

### getFacetFeatures

    public java.util.List<EStructuralFeature> getFacetFeatures(EObject eObject)

  Parameters:
    `eObject` -
  Returns:

### addAll

    public void addAll(java.util.Collection<FacetSet> allFacetSets)

  Parameters:
    `allFacetSets` -

### getAttributes

    public  getAttributes(EObject eObject)
                        throws ModelQueryException

  Parameters:
    `eObject` -
  Returns:
  Throws:
    `ModelQueryException`

### getReferences

    public  getReferences(EObject eObject)
                        throws ModelQueryException

  Parameters:
    `eObject` -
  Returns:
  Throws:
    `ModelQueryException`

### getMetaClasses

    public java.util.List<EClass> getMetaClasses()

  Returns:

### getFacets

    public java.util.List<Facet> getFacets(EObject eObject)
                                    throws ModelQueryException

  Returns:
  Throws:
    `ModelQueryException`

### getAppliedFacets

    public java.util.HashSet<Facet> getAppliedFacets()

  Returns:

### clean

    public void clean()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD