| Constructor and Description |
|---|
AbstractFaceted() |
| 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>... types)
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>> iterable)
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. |
boolean |
uninstall(FACETTYPE facet)
Remove the given
Facet from the internal collection of installed facets. |
public boolean hasFacet(Class<? extends FACETTYPE> type)
Facetedpublic boolean hasAllFacets(Iterable<Class<? extends FACETTYPE>> iterable)
FacetedFacets of the given types are present; otherwise, if any of the given facet types is
missing, return false.hasAllFacets in interface Faceted<FACETTYPE extends Facet<?>>public boolean hasAllFacets(Class<? extends FACETTYPE>... types)
FacetedFacets of the given types are present; otherwise, if any of the given facet types is
missing, return false.hasAllFacets in interface Faceted<FACETTYPE extends Facet<?>>public <F extends FACETTYPE> F getFacet(Class<F> type) throws FacetNotFoundException
FacetedFacet type, or throw a FacetNotFoundException if no
Facet of that type is installed.getFacet in interface Faceted<FACETTYPE extends Facet<?>>FacetNotFoundExceptionpublic <F extends FACETTYPE> Iterable<F> getFacets(Class<F> type)
Facetedpublic boolean install(FACETTYPE facet)
FacetedFacet. If the facet is already installed, return true.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.