|
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.resources.AbstractResource<T>
org.jboss.forge.resources.VirtualResource<EnumConstant<JavaEnum>>
org.jboss.forge.resources.enumtype.EnumConstantResource
public class EnumConstantResource
| Field Summary |
|---|
| Fields inherited from class org.jboss.forge.resources.AbstractResource |
|---|
flags, parent, resourceFactory |
| Constructor Summary | |
|---|---|
EnumConstantResource(Resource<?> parent,
EnumConstant<JavaEnum> enumConstant)
|
|
| Method Summary | |
|---|---|
Resource<EnumConstant<JavaEnum>> |
createFrom(EnumConstant<JavaEnum> file)
Create a new resource instance for the target resource reference of the type that this current resource is. |
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. |
EnumConstant<JavaEnum> |
getUnderlyingResourceObject()
Get the underlying object represented by this Resource |
String |
toString()
|
| Methods inherited from class org.jboss.forge.resources.VirtualResource |
|---|
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, wait, wait, wait |
| Constructor Detail |
|---|
public EnumConstantResource(Resource<?> parent,
EnumConstant<JavaEnum> enumConstant)
| Method Detail |
|---|
public Resource<EnumConstant<JavaEnum>> createFrom(EnumConstant<JavaEnum> file)
Resource
createFrom in interface Resource<EnumConstant<JavaEnum>>createFrom in class VirtualResource<EnumConstant<JavaEnum>>file - The target reference to create the resource instance from.
protected List<Resource<?>> doListResources()
AbstractResource
doListResources in class AbstractResource<EnumConstant<JavaEnum>>public EnumConstant<JavaEnum> getUnderlyingResourceObject()
ResourceResource
public String getName()
Resource
public String toString()
toString in class Object
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 - Shell API 1.2.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||