public interface FacetProvider
Facet
implementations.Modifier and Type | Method and Description |
---|---|
<T extends Facet> |
getFacet(Class<T> facetClass)
Returns an implementation of the specified facet class, or null if that
facet is not supported by this provider.
|
Set<Class<? extends Facet>> |
getFacetClasses()
Returns the set of facet classes for the facets that this provider
provides.
|
Set<String> |
getFacetClassNames()
Returns the set of facet class names for the facets that this provider
provides.
|
boolean |
isSupported(Class<? extends Facet> facetClass)
Returns true if the specified facet class is supported by this
provider.
|
Set<Class<? extends Facet>> getFacetClasses()
Set<String> getFacetClassNames()
getFacetClasses()
and populate the returned set with the result
of calling Class.getName()
on each class.boolean isSupported(Class<? extends Facet> facetClass)
public boolean isSupported(Class<? extends Facet> facetClass) {
return getFacetClasses()
().contains(facetClass);
}
facetClass
- a facet classCopyright © 2015. All Rights Reserved.