|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.forge.project.BaseProject
public abstract class BaseProject
Convenience base class for Project implementations.
| Constructor Summary | |
|---|---|
BaseProject()
|
|
| Method Summary | ||
|---|---|---|
boolean |
equals(Object obj)
|
|
Object |
getAttribute(String key)
Get an value from this project's internal attributes. |
|
|
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. |
|
|
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)
Add the given Facet to this Project's internal collection of installed facets. |
|
void |
removeAttribute(String key)
Remove a value from this project's internal attributes. |
|
Project |
removeFacet(Facet facet)
Remove the given Facet from this Project's internal collection of installed facets. |
|
void |
setAttribute(String key,
Object value)
Set a value in this project's internal attributes. |
|
Project |
unregisterFacet(Facet facet)
Remove the given Facet from this Project's internal collection of installed facets. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.forge.project.Project |
|---|
exists, getProjectRoot |
| Constructor Detail |
|---|
public BaseProject()
| Method Detail |
|---|
public Object getAttribute(String key)
Projectnull instead.
getAttribute in interface Projectkey - the attribute name
public void setAttribute(String key,
Object value)
Project
setAttribute in interface Projectpublic void removeAttribute(String key)
Project
removeAttribute in interface Projectpublic boolean hasFacet(Class<? extends Facet> type)
Project
hasFacet in interface 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.
getFacet in interface Projectpublic List<Facet> getFacets()
ProjectCollection of the currently installed Facets. Return an empty list if no facets of that
type were found.
getFacets in interface Projectpublic <F extends Facet> List<F> getFacets(Class<F> type)
ProjectCollection of the currently installed Facets matching the given type.
getFacets in interface Projectpublic Project registerFacet(Facet facet)
ProjectFacet to this Project's internal collection of installed facets.
registerFacet 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)
ProjectFacet from this Project's internal collection of installed facets.
removeFacet in interface Projectpublic Project unregisterFacet(Facet facet)
ProjectFacet from this Project's internal collection of installed facets.
unregisterFacet in interface Projectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||