org.socketelf.consumerfactory_imp.rose
Class JavaPackage

java.lang.Object
  extended by org.socketelf.consumerfactory_imp.rose.JavaPackage

 class JavaPackage
extends java.lang.Object

A class representing Java source.

Version:
1.0
Author:
suleman

Field Summary
private static org.apache.log4j.Logger log
          Log4J logger.
private  PackageName packageName
          Package name of the Java source.
private  java.io.File rootDir
          The root dir of the Java source.
 
Constructor Summary
private JavaPackage()
          Dose not allow the default constructor of this class to be used.
  JavaPackage(java.io.File root_dir, PackageName package_name)
          Creates a JavaPackage class.
 
Method Summary
 java.io.File[] getClassFiles()
          Gets java.io.File array of Java class files.
 java.io.File[] getJavaFiles()
          Gets java.io.File array of Java source files.
 java.io.File getPackageFile()
          Gets a java.io.File which represents the java package.
 PackageName getPackageName()
          Gets the Package name of the Java source.
 java.io.File getRootDir()
          Gets a java.io.File which represents the root of the Java source directory.
 java.lang.String getRootDirAbsolutePath()
          Gets the the absolute path of the root of the Java source directory.
 java.net.URL getRootDirURL()
          Gets java.net.URL of the Java source root directory.
 java.net.URL getURL()
          Gets java.net.URL of the Java source package name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Logger log
Log4J logger.


packageName

private PackageName packageName
Package name of the Java source.


rootDir

private java.io.File rootDir
The root dir of the Java source.

Constructor Detail

JavaPackage

private JavaPackage()
Dose not allow the default constructor of this class to be used.


JavaPackage

public JavaPackage(java.io.File root_dir,
                   PackageName package_name)
Creates a JavaPackage class.

Parameters:
root_dir - The root dir of the Java source.
package_name - Package name of the Java source.
Method Detail

getPackageName

public PackageName getPackageName()
Gets the Package name of the Java source.

Returns:
PackageName

getPackageFile

public java.io.File getPackageFile()
Gets a java.io.File which represents the java package.

Returns:
java.io.File which represents the java package.

getRootDirAbsolutePath

public java.lang.String getRootDirAbsolutePath()
Gets the the absolute path of the root of the Java source directory.

Returns:
The absolute path of the root of the Java source directory.

getRootDir

public java.io.File getRootDir()
Gets a java.io.File which represents the root of the Java source directory.

Returns:
java.io.File which represents the root of the Java source directory.

getJavaFiles

public java.io.File[] getJavaFiles()
Gets java.io.File array of Java source files.

Returns:
java.io.File array of Java source files.

getClassFiles

public java.io.File[] getClassFiles()
Gets java.io.File array of Java class files.

Returns:
java.io.File array of Java class files.

getURL

public java.net.URL getURL()
Gets java.net.URL of the Java source package name.

Returns:
java.net.URL of the Java source package name.

getRootDirURL

public java.net.URL getRootDirURL()
Gets java.net.URL of the Java source root directory.

Returns:
java.net.URL of the Java source root directory.