|
Forge - Parent 1.4.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.forge.resources.AbstractResource<T>
org.jboss.forge.resources.VirtualResource<org.apache.maven.model.Profile>
org.jboss.forge.maven.resources.MavenProfileResource
public class MavenProfileResource
MavenProfileResource
Field Summary |
---|
Fields inherited from class org.jboss.forge.resources.AbstractResource |
---|
flags, parent, resourceFactory |
Constructor Summary | |
---|---|
MavenProfileResource(Resource<?> parent,
org.apache.maven.model.Profile profile)
|
Method Summary | |
---|---|
boolean |
delete()
Delete this resource, return true if successful, false if not. |
boolean |
delete(boolean recursive)
Delete this resource, return true if successful, false if not. |
protected List<Resource<?>> |
doListResources()
Strategy method for returning child resources. |
String |
getName()
Return the common name of the resource. |
org.apache.maven.model.Profile |
getUnderlyingResourceObject()
Get the underlying object represented by this Resource |
Methods inherited from class org.jboss.forge.resources.VirtualResource |
---|
createFrom, exists, getChild, getResourceInputStream |
Methods inherited from class org.jboss.forge.resources.AbstractResource |
---|
equals, getFlags, getFullyQualifiedName, getParent, getResourceFactory, hashCode, isFlagSet, listResources, listResources, reify, setFlag, unsetFlag |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MavenProfileResource(Resource<?> parent, org.apache.maven.model.Profile profile)
Method Detail |
---|
public String getName()
Resource
protected List<Resource<?>> doListResources()
AbstractResource
doListResources
in class AbstractResource<org.apache.maven.model.Profile>
public org.apache.maven.model.Profile getUnderlyingResourceObject()
Resource
Resource
public boolean delete() throws UnsupportedOperationException
Resource
UnsupportedOperationException
- if deleting is not supported by the underlying implementation.public boolean delete(boolean recursive) throws UnsupportedOperationException
Resource
recursive
- if false and this resource both supports recursive deletion and contains children, deletion will
not occur; otherwise, if true, deletion will propagate to all child resources. Implementations may
choose simply to delegate to Resource.delete()
UnsupportedOperationException
- if deleting is not supported by the underlying implementation.
|
Forge - Parent 1.4.2-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |