public interface Faceted<FACETTYPE extends Facet<?>>
| Modifier and Type | Method and Description |
|---|---|
<F extends FACETTYPE> |
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()
|
<F extends FACETTYPE> |
getFacets(Class<F> 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. |
<F extends FACETTYPE> |
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. |
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.FacetNotFoundExceptionboolean install(FACETTYPE facet)
Facet. If the facet is already installed, return true.boolean uninstall(FACETTYPE facet)
Facet from the internal collection of installed facets.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.