public abstract class FacetManagerBase extends FacetManager
FACETS_TOPIC| Constructor and Description |
|---|
FacetManagerBase() |
| Modifier and Type | Method and Description |
|---|---|
<F extends Facet<?>,C extends FacetConfiguration> |
addFacet(FacetType<F,C> type,
java.lang.String name,
Facet<?> underlying) |
void |
checkConsistency() |
<F extends Facet<?>,C extends FacetConfiguration> |
createFacet(FacetType<F,C> type,
java.lang.String name,
C configuration,
Facet<?> underlying) |
<F extends Facet<?>,C extends FacetConfiguration> |
createFacet(FacetType<F,C> type,
java.lang.String name,
Facet<?> underlying) |
protected static <F extends Facet<?>,C extends FacetConfiguration> |
createFacet(Module module,
FacetType<F,C> type,
java.lang.String name,
C configuration,
Facet<?> underlying) |
static InvalidFacet |
createInvalidFacet(Module module,
FacetState state,
Facet<?> underlyingFacet,
java.lang.String errorMessage,
boolean unknownType,
boolean reportError) |
void |
facetConfigurationChanged(Facet<?> facet)
This method must be called when configuration of
facet is changed via its API. |
<F extends Facet<?>> |
findFacet(FacetTypeId<F> type,
java.lang.String name) |
Facet<?> [] |
getAllFacets() |
<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) |
protected abstract FacetModel |
getModel() |
protected abstract Module |
getModule() |
Facet<?> [] |
getSortedFacets()
Returns all facets in the module sorted in such a way that a facet will occur before any of its subfacets
|
static void |
setFacetName(Facet<?> facet,
java.lang.String newName) |
createModifiableModel, getInstancepublic <F extends Facet<?>,C extends FacetConfiguration> F createFacet(FacetType<F,C> type, java.lang.String name, C configuration, Facet<?> underlying)
createFacet in class FacetManagerpublic static void setFacetName(Facet<?> facet, java.lang.String newName)
protected static <F extends Facet<?>,C extends FacetConfiguration> F createFacet(Module module, FacetType<F,C> type, java.lang.String name, C configuration, Facet<?> underlying)
public <F extends Facet<?>,C extends FacetConfiguration> F createFacet(FacetType<F,C> type, java.lang.String name, Facet<?> underlying)
createFacet in class FacetManagerpublic <F extends Facet<?>,C extends FacetConfiguration> F addFacet(FacetType<F,C> type, java.lang.String name, Facet<?> underlying)
addFacet in class FacetManagerpublic void facetConfigurationChanged(Facet<?> facet)
FacetManagerfacet is changed via its API.facetConfigurationChanged in class FacetManagerpublic Facet<?> [] getAllFacets()
public <F extends Facet<?>> F getFacetByType(FacetTypeId<F> typeId)
typeId - type of facetnull if the module doesn't contain facets of this typeprotected abstract FacetModel getModel()
public <F extends Facet<?>> F findFacet(FacetTypeId<F> type, java.lang.String name)
type - type of facetname - name of facetnull if not foundpublic <F extends Facet<?>> F getFacetByType(Facet<?> underlyingFacet, FacetTypeId<F> typeId)
underlyingFacet - facettypeId - type of subfacetpublic <F extends Facet<?>> java.util.Collection<F> getFacetsByType(Facet<?> underlyingFacet, FacetTypeId<F> typeId)
underlyingFacet - facettypeId - type of subfacetpublic <F extends Facet<?>> java.util.Collection<F> getFacetsByType(FacetTypeId<F> typeId)
typeId - type of facetspublic Facet<?> [] getSortedFacets()
FacetModelpublic java.lang.String getFacetName(Facet<?> facet)
protected abstract Module getModule()
public static InvalidFacet createInvalidFacet(Module module, FacetState state, Facet<?> underlyingFacet, java.lang.String errorMessage, boolean unknownType, boolean reportError)
public void checkConsistency()