railo.commons.io
Class SourceFileImpl

java.lang.Object
  extended by railo.commons.io.SourceFileImpl
All Implemented Interfaces:
Serializable, SourceFile

public final class SourceFileImpl
extends Object
implements SourceFile

represent a cfml file on the runtime system

See Also:
Serialized Form

Constructor Summary
SourceFileImpl(Resource root, String realPath)
          constructor of the class
SourceFileImpl(SourceFileImpl parent, String realPath)
          constructor of the class
 
Method Summary
 String getClassName()
           
 String getDisplayPath()
           
 Resource getFile()
           
 String getFullClassName()
           
 String getJavaName()
           
 String getPackageName()
           
 Resource getPhyscalFile()
          return file object, based on physical path and realpath
 String getRealpath()
           
 String getRealPathAsVariableString()
           
 Resource getResource()
          if the mapping physical path and archive is invalid or not defined, it is possible this method returns null
 Resource getRoot()
           
 String getRootPathAsVariableString()
           
 boolean hasArchive()
           
 boolean isTrusted()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFileImpl

public SourceFileImpl(Resource root,
                      String realPath)
constructor of the class

Parameters:
root - rott directory of the file
realPath - relative path to root directory

SourceFileImpl

public SourceFileImpl(SourceFileImpl parent,
                      String realPath)
constructor of the class

Parameters:
parent - parent sourceFile
realPath - relapath to parent sourc file (not root)
Method Detail

getFile

public Resource getFile()

getResource

public Resource getResource()
Description copied from interface: SourceFile
if the mapping physical path and archive is invalid or not defined, it is possible this method returns null

Specified by:
getResource in interface SourceFile
Returns:
base Resource

getRealpath

public String getRealpath()
Returns:
Returns the realpath.

getRoot

public Resource getRoot()
Returns:
Returns the root.

getRealPathAsVariableString

public String getRealPathAsVariableString()
Specified by:
getRealPathAsVariableString in interface SourceFile
Returns:
returns a variable string based on realpath and return it

getClassName

public String getClassName()
Specified by:
getClassName in interface SourceFile
Returns:
returns the a classname matching to filename

getJavaName

public String getJavaName()
Returns:
returns the java name

getPackageName

public String getPackageName()
Specified by:
getPackageName in interface SourceFile
Returns:
returns the a package matching to file

getRootPathAsVariableString

public String getRootPathAsVariableString()
Returns:
returns a variable string based on root and return it

hasArchive

public boolean hasArchive()
Returns:
has context a archive or not

isTrusted

public boolean isTrusted()
Returns:
returns if is trusted or not

getPhyscalFile

public Resource getPhyscalFile()
Description copied from interface: SourceFile
return file object, based on physical path and realpath

Specified by:
getPhyscalFile in interface SourceFile
Returns:
file Object

getDisplayPath

public String getDisplayPath()
Specified by:
getDisplayPath in interface SourceFile
Returns:
return source path as String

getFullClassName

public String getFullClassName()
Specified by:
getFullClassName in interface SourceFile
Returns:
returns the full classname (package and name) matching to filename (Example: my.package.test_cfm)


Copyright © 2012 Railo