|
Forge - Facets Addon API 2.0.0.Alpha3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
FACETTYPE - the base Facet type supported by this Faceted type.public interface Faceted<FACETTYPE extends Facet<?>>
| Method Summary | ||
|---|---|---|
|
getFacet(Class<F> type)
Return the instance of the requested Facet type, or throw a FacetNotFoundException if no
Facet of that type is installed. |
|
Iterable<FACETTYPE> |
getFacets()
Return a Iterable of the currently installed Facets. |
|
|
getFacets(Class<F> type)
Return a Iterable of the currently installed Facets matching the given type. |
|
boolean |
hasAllFacets(Class<? extends FACETTYPE>... facetDependencies)
Return true if all Facets of the given types are present; otherwise, if any of the given facet types is
missing, return false. |
|
boolean |
hasAllFacets(Iterable<Class<? extends FACETTYPE>> facetDependencies)
Return true if all Facets of the given types are present; otherwise, if any of the given facet types is
missing, return false. |
|
boolean |
hasFacet(Class<? extends FACETTYPE> type)
Return true if a facet of the given type is present; return false otherwise. |
|
boolean |
install(FACETTYPE facet)
Install and register the given Facet. |
|
|
supports(F facet)
Return true if the given Facet is supported. |
|
boolean |
uninstall(FACETTYPE facet)
Remove the given Facet from the internal collection of installed facets. |
|
| Method Detail |
|---|
boolean hasFacet(Class<? extends FACETTYPE> type)
boolean hasAllFacets(Iterable<Class<? extends FACETTYPE>> facetDependencies)
Facets of the given types are present; otherwise, if any of the given facet types is
missing, return false.
boolean hasAllFacets(Class<? extends FACETTYPE>... facetDependencies)
Facets of the given types are present; otherwise, if any of the given facet types is
missing, return false.
<F extends FACETTYPE> F getFacet(Class<F> type)
throws FacetNotFoundException
Facet type, or throw a FacetNotFoundException if no
Facet of that type is installed.
FacetNotFoundExceptionIterable<FACETTYPE> getFacets()
Iterable of the currently installed Facets. Return an empty list if no facets of that
type were found.
<F extends FACETTYPE> Iterable<F> getFacets(Class<F> type)
Iterable of the currently installed Facets matching the given type.
boolean install(FACETTYPE facet)
Facet. If the facet is already installed, return true.
boolean uninstall(FACETTYPE facet)
Facet from the internal collection of installed facets.
<F extends FACETTYPE> boolean supports(F facet)
Facet is supported.
|
Forge - Facets Addon API 2.0.0.Alpha3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||