public class EnumConstantResource extends VirtualResource<org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum>>
flags, parent, resourceFactory| Constructor and Description |
|---|
EnumConstantResource(Resource<?> parent,
org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum> enumConstant) |
| Modifier and Type | Method and Description |
|---|---|
Resource<org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum>> |
createFrom(org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.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.
|
org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum> |
getUnderlyingResourceObject()
Get the underlying object represented by this
Resource |
String |
toString() |
exists, getChild, getResourceInputStreamequals, getFlags, getFullyQualifiedName, getParent, getResourceFactory, hashCode, isFlagSet, listResources, listResources, reify, setFlag, unsetFlagpublic EnumConstantResource(Resource<?> parent, org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum> enumConstant)
public Resource<org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum>> createFrom(org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum> file)
ResourcecreateFrom in interface Resource<org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum>>createFrom in class VirtualResource<org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum>>file - The target reference to create the resource instance from.protected List<Resource<?>> doListResources()
AbstractResourcedoListResources in class AbstractResource<org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum>>public org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum> getUnderlyingResourceObject()
ResourceResourcepublic String getName()
Resourcepublic boolean delete()
throws UnsupportedOperationException
ResourceUnsupportedOperationException - if deleting is not supported by the underlying implementation.public boolean delete(boolean recursive)
throws UnsupportedOperationException
Resourcerecursive - 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.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.