|
Forge - Facets Addon API 2.0.0.Alpha3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.forge.facets.AbstractFaceted<FACETTYPE>
FACETTYPE - the base Facet type supported by this Faceted type.public abstract class AbstractFaceted<FACETTYPE extends Facet<?>>
| Constructor Summary | |
|---|---|
AbstractFaceted()
|
|
| 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>... 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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.forge.facets.Faceted |
|---|
supports |
| Constructor Detail |
|---|
public AbstractFaceted()
| Method Detail |
|---|
public boolean hasFacet(Class<? extends FACETTYPE> type)
Faceted
hasFacet in interface Faceted<FACETTYPE extends Facet<?>>public 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 Iterable<FACETTYPE> getFacets()
FacetedIterable of the currently installed Facets. Return an empty list if no facets of that
type were found.
getFacets in interface Faceted<FACETTYPE extends Facet<?>>public <F extends FACETTYPE> Iterable<F> getFacets(Class<F> type)
FacetedIterable of the currently installed Facets matching the given type.
getFacets in interface Faceted<FACETTYPE extends Facet<?>>public boolean install(FACETTYPE facet)
FacetedFacet. If the facet is already installed, return true.
install in interface Faceted<FACETTYPE extends Facet<?>>public boolean uninstall(FACETTYPE facet)
FacetedFacet from the internal collection of installed facets.
uninstall in interface Faceted<FACETTYPE extends Facet<?>>
|
Forge - Facets Addon API 2.0.0.Alpha3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||