public abstract class FacetModelBase extends java.lang.Object implements FacetModel
Constructor and Description |
---|
FacetModelBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
facetsChanged() |
<F extends Facet<?>> |
findFacet(FacetTypeId<F> type,
java.lang.String name) |
<F extends Facet<?>> |
getFacetByType(Facet<?> underlyingFacet,
FacetTypeId<F> typeId) |
<F extends Facet<?>> |
getFacetByType(FacetTypeId<F> typeId) |
java.lang.String |
getFacetName(Facet<?> facet) |
<F extends Facet<?>> |
getFacetsByType(Facet<?> underlyingFacet,
FacetTypeId<F> typeId) |
<F extends Facet<?>> |
getFacetsByType(FacetTypeId<F> typeId) |
Facet<?> [] |
getSortedFacets()
Returns all facets in the module sorted in such a way that a facet will occur before any of its subfacets
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllFacets
public Facet<?> [] getSortedFacets()
FacetModel
getSortedFacets
in interface FacetModel
public <F extends Facet<?>> java.util.Collection<F> getFacetsByType(Facet<?> underlyingFacet, FacetTypeId<F> typeId)
getFacetsByType
in interface FacetModel
underlyingFacet
- facettypeId
- type of subfacetpublic java.lang.String getFacetName(Facet<?> facet)
getFacetName
in interface FacetModel
public <F extends Facet<?>> F findFacet(FacetTypeId<F> type, java.lang.String name)
findFacet
in interface FacetModel
type
- type of facetname
- name of facetnull
if not foundpublic <F extends Facet<?>> F getFacetByType(Facet<?> underlyingFacet, FacetTypeId<F> typeId)
getFacetByType
in interface FacetModel
underlyingFacet
- facettypeId
- type of subfacetpublic <F extends Facet<?>> F getFacetByType(FacetTypeId<F> typeId)
getFacetByType
in interface FacetModel
typeId
- type of facetnull
if the module doesn't contain facets of this typepublic <F extends Facet<?>> java.util.Collection<F> getFacetsByType(FacetTypeId<F> typeId)
getFacetsByType
in interface FacetModel
typeId
- type of facetsprotected void facetsChanged()