org.jboss.forge.resource
Class VirtualResource<T>
java.lang.Object
org.jboss.forge.facets.AbstractFaceted<ResourceFacet>
org.jboss.forge.resource.AbstractResource<T>
org.jboss.forge.resource.VirtualResource<T>
- All Implemented Interfaces:
- org.jboss.forge.facets.Faceted<ResourceFacet>, Resource<T>
public abstract class VirtualResource<T>
- extends AbstractResource<T>
An abstract implementation of a virtual resource handle.
- Author:
- Lincoln Baxter, III
| Methods inherited from class org.jboss.forge.facets.AbstractFaceted |
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, uninstall |
| Methods inherited from interface org.jboss.forge.facets.Faceted |
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, uninstall |
VirtualResource
protected VirtualResource(ResourceFactory factory,
Resource<?> parent)
getChild
public Resource<?> getChild(String name)
- Description copied from interface:
Resource
- Get a child of this resource. Returns null if no child by the given name can be found.
createFrom
public Resource<T> createFrom(T resource)
- Description copied from interface:
Resource
- Create a new resource instance for the target resource reference of the type that this current resource is.
- Parameters:
resource - The target reference to create the resource instance from.
- Returns:
- A new resource.
getResourceInputStream
public InputStream getResourceInputStream()
- Description copied from interface:
Resource
- Get the
InputStream represented by this Resource.
exists
public boolean exists()
- Description copied from interface:
Resource
- Return true if this
Resource exists, return false if not.
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.