public abstract class BaseProject extends Object implements Project
Project implementations.| Constructor and Description |
|---|
BaseProject() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getAttribute(String key)
Get an value from this project's internal attributes.
|
<F extends Facet> |
getFacet(Class<F> type)
Return the instance of the requested
Facet type, or throw a FacetNotFoundException if no
Facet of that type is registered. |
List<Facet> |
getFacets()
Return a
Collection of the currently installed Facets. |
<F extends Facet> |
getFacets(Class<F> type)
Return a
Collection of the currently installed Facets matching the given type. |
boolean |
hasAllFacets(Class<? extends Facet>... facetDependencies)
Return true if this project has all
Facets of the given types; otherwise, if any of the given facet types
is missing, return false. |
boolean |
hasAllFacets(Collection<Class<? extends Facet>> facetDependencies)
Return true if this project has all
Facets of the given types; otherwise, if any of the given facet types
is missing, return false. |
boolean |
hasFacet(Class<? extends Facet> type)
Return true if this project has a facet of the given type; return false otherwise.
|
int |
hashCode() |
Project |
installFacet(Facet facet)
Install and register the given
Facet. |
Project |
registerFacet(Facet facet)
|
void |
removeAttribute(String key)
Remove a value from this project's internal attributes.
|
Project |
removeFacet(Facet facet)
|
void |
setAttribute(String key,
Object value)
Set a value in this project's internal attributes.
|
Project |
unregisterFacet(Facet facet)
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitexists, getProjectRootpublic Object getAttribute(String key)
Projectnull instead.getAttribute in interface Projectkey - the attribute namepublic void setAttribute(String key, Object value)
ProjectsetAttribute in interface Projectpublic void removeAttribute(String key)
ProjectremoveAttribute in interface Projectpublic boolean hasFacet(Class<? extends Facet> type)
Projectpublic boolean hasAllFacets(Class<? extends Facet>... facetDependencies)
ProjectFacets of the given types; otherwise, if any of the given facet types
is missing, return false.hasAllFacets in interface Projectpublic boolean hasAllFacets(Collection<Class<? extends Facet>> facetDependencies)
ProjectFacets of the given types; otherwise, if any of the given facet types
is missing, return false.hasAllFacets in interface Projectpublic <F extends Facet> F getFacet(Class<F> type)
ProjectFacet type, or throw a FacetNotFoundException if no
Facet of that type is registered.public List<Facet> getFacets()
ProjectCollection of the currently installed Facets. Return an empty list if no facets of that
type were found.public <F extends Facet> List<F> getFacets(Class<F> type)
ProjectCollection of the currently installed Facets matching the given type.public Project registerFacet(Facet facet)
ProjectregisterFacet in interface Projectpublic Project installFacet(Facet facet)
ProjectFacet. If the facet is already installed, register it instead (See
Project.registerFacet(Facet).installFacet in interface Projectpublic Project removeFacet(Facet facet)
ProjectremoveFacet in interface Projectpublic Project unregisterFacet(Facet facet)
ProjectunregisterFacet in interface ProjectCopyright © 2013 JBoss by Red Hat. All Rights Reserved.