Forge - Shell API 1.2.0.Final

org.jboss.forge.resources
Class DependencyResource

java.lang.Object
  extended by org.jboss.forge.resources.AbstractResource<File>
      extended by org.jboss.forge.resources.FileResource<DependencyResource>
          extended by org.jboss.forge.resources.DependencyResource
All Implemented Interfaces:
Resource<File>

public class DependencyResource
extends FileResource<DependencyResource>


Field Summary
 
Fields inherited from class org.jboss.forge.resources.FileResource
file, lastModification, scratch, scratchFile
 
Fields inherited from class org.jboss.forge.resources.AbstractResource
flags, parent, resourceFactory
 
Constructor Summary
DependencyResource(ResourceFactory resourceFactory, File file, Dependency dep)
           
 
Method Summary
 Resource<File> createFrom(File file)
          Create a new Resource instance for the target file.
protected  List<Resource<?>> doListResources()
          Strategy method for returning child resources.
 Dependency getDependency()
           
 String toString()
           
 
Methods inherited from class org.jboss.forge.resources.FileResource
createNewFile, createTempResource, delete, delete, deleteOnExit, exists, getChild, getName, getParent, getResourceInputStream, getUnderlyingResourceObject, isDirectory, isStale, markUpToDate, mkdir, mkdirs, reify, renameTo, renameTo, setContents, setContents, setContents
 
Methods inherited from class org.jboss.forge.resources.AbstractResource
equals, getFlags, getFullyQualifiedName, getResourceFactory, hashCode, isFlagSet, listResources, listResources, setFlag, unsetFlag
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyResource

public DependencyResource(ResourceFactory resourceFactory,
                          File file,
                          Dependency dep)
Method Detail

doListResources

protected List<Resource<?>> doListResources()
Description copied from class: AbstractResource
Strategy method for returning child resources. Subclasses should implement or override this method.

Specified by:
doListResources in class AbstractResource<File>
Returns:

createFrom

public Resource<File> createFrom(File file)
Description copied from class: FileResource
Create a new Resource instance for the target file. The new Resource should be of the same type as this.

Specified by:
createFrom in interface Resource<File>
Specified by:
createFrom in class FileResource<DependencyResource>
Parameters:
file - The file to create the resource instance from.
Returns:
A new resource.

getDependency

public Dependency getDependency()

toString

public String toString()
Overrides:
toString in class Object

Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.