|
Forge - Parent 1.1.2-SNAPSHOT | |||||||||
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 Facet s. |
|
|
getFacets(Class<F> type)
Return a Collection of the currently installed Facet s matching the given type. |
|
boolean |
hasAllFacets(Class<? extends Facet>... facetDependencies)
Return true if this project has all Facet s 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 Facet s 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)
Project
null
instead.
getAttribute
in interface Project
key
- the attribute namepublic void setAttribute(String key, Object value)
Project
setAttribute
in interface Project
public void removeAttribute(String key)
Project
removeAttribute
in interface Project
public boolean hasFacet(Class<? extends Facet> type)
Project
hasFacet
in interface Project
public boolean hasAllFacets(Class<? extends Facet>... facetDependencies)
Project
Facet
s of the given types; otherwise, if any of the given facet types
is missing, return false.
hasAllFacets
in interface Project
public boolean hasAllFacets(Collection<Class<? extends Facet>> facetDependencies)
Project
Facet
s of the given types; otherwise, if any of the given facet types
is missing, return false.
hasAllFacets
in interface Project
public <F extends Facet> F getFacet(Class<F> type)
Project
Facet
type, or throw a FacetNotFoundException
if no
Facet
of that type is registered.
getFacet
in interface Project
public List<Facet> getFacets()
Project
Collection
of the currently installed Facet
s. Return an empty list if no facets of that
type were found.
getFacets
in interface Project
public <F extends Facet> List<F> getFacets(Class<F> type)
Project
Collection
of the currently installed Facet
s matching the given type.
getFacets
in interface Project
public Project registerFacet(Facet facet)
Project
Facet
to this Project
's internal collection of installed facets.
registerFacet
in interface Project
public Project installFacet(Facet facet)
Project
Facet
. If the facet is already installed, register it instead (See
Project.registerFacet(Facet)
.
installFacet
in interface Project
public Project removeFacet(Facet facet)
Project
Facet
from this Project
's internal collection of installed facets.
removeFacet
in interface Project
public Project unregisterFacet(Facet facet)
Project
Facet
from this Project
's internal collection of installed facets.
unregisterFacet
in interface Project
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
Forge - Parent 1.1.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |