public interface Project
| Modifier and Type | Method and Description |
|---|---|
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.
|
<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. |
Collection<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. |
DirectoryResource |
getProjectRoot()
|
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)
|
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)
|
Object getAttribute(String key)
null instead.key - the attribute namevoid 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).DirectoryResource getProjectRoot()
boolean exists()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.