|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Project
| Method Summary | ||
|---|---|---|
boolean |
exists()
Return true if this project's file-system has been created and initialized; otherwise, return false. |
|
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. |
|
Collection<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. |
|
DirectoryResource |
getProjectRoot()
Get the File representing the root directory of this Project |
|
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. |
|
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. |
|
| Method Detail |
|---|
Object getAttribute(String key)
null instead.
key - the attribute name
void setAttribute(String key,
Object value)
void removeAttribute(String key)
boolean hasFacet(Class<? extends Facet> type)
boolean hasAllFacets(Collection<Class<? extends Facet>> facetDependencies)
Facets of the given types; otherwise, if any of the given facet types
is missing, return false.
boolean hasAllFacets(Class<? extends Facet>... facetDependencies)
Facets of the given types; otherwise, if any of the given facet types
is missing, return false.
<F extends Facet> F getFacet(Class<F> type)
throws FacetNotFoundException
Facet type, or throw a FacetNotFoundException if no
Facet of that type is registered.
FacetNotFoundExceptionCollection<Facet> getFacets()
Collection of the currently installed Facets. Return an empty list if no facets of that
type were found.
<F extends Facet> Collection<F> getFacets(Class<F> type)
Collection of the currently installed Facets matching the given type.
Project installFacet(Facet facet)
Facet. If the facet is already installed, register it instead (See
registerFacet(Facet).
Project registerFacet(Facet facet)
Facet to this Project's internal collection of installed facets.
Project unregisterFacet(Facet facet)
Facet from this Project's internal collection of installed facets.
Project removeFacet(Facet facet)
Facet from this Project's internal collection of installed facets.
DirectoryResource getProjectRoot()
File representing the root directory of this Project
boolean exists()
|
Forge - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||