org.jboss.forge.resources
Class UnknownFileResource

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

public class UnknownFileResource
extends FileResource<UnknownFileResource>

Represents any regular file which Forge does not hav any special handler for.

Author:
Mike Brock

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
UnknownFileResource(ResourceFactory factory)
           
UnknownFileResource(ResourceFactory factory, File file)
           
 
Method Summary
 UnknownFileResource createFrom(File file)
          Create a new Resource instance for the target file.
 List<Resource<?>> listResources()
          Return a list of child resources of the current resource.
 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, setFlag, unsetFlag
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnknownFileResource

public UnknownFileResource(ResourceFactory factory)

UnknownFileResource

public UnknownFileResource(ResourceFactory factory,
                           File file)
Method Detail

createFrom

public UnknownFileResource 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<UnknownFileResource>
Parameters:
file - The file to create the resource instance from.
Returns:
A new resource.

listResources

public List<Resource<?>> listResources()
Description copied from interface: Resource
Return a list of child resources of the current resource.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Seam Framework. All Rights Reserved.