|
Forge - Parent 2.0.0.Alpha1 | |||||||||
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 Facet s. |
|
|
getFacets(Class<F> type)
Return a Iterable of the currently installed Facet s matching the given type. |
|
boolean |
hasAllFacets(Class<? extends FACETTYPE>... types)
Return true if all Facet s 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 Facet s 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)
Faceted
Facet
s 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)
Faceted
Facet
s 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
Faceted
Facet
type, or throw a FacetNotFoundException
if no
Facet
of that type is installed.
getFacet
in interface Faceted<FACETTYPE extends Facet<?>>
FacetNotFoundException
public Iterable<FACETTYPE> getFacets()
Faceted
Iterable
of the currently installed Facet
s. 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)
Faceted
Iterable
of the currently installed Facet
s matching the given type.
getFacets
in interface Faceted<FACETTYPE extends Facet<?>>
public boolean install(FACETTYPE facet)
Faceted
Facet
. If the facet is already installed, return true.
install
in interface Faceted<FACETTYPE extends Facet<?>>
public boolean uninstall(FACETTYPE facet)
Faceted
Facet
from the internal collection of installed facets.
uninstall
in interface Faceted<FACETTYPE extends Facet<?>>
|
Forge - Parent 2.0.0.Alpha1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |