net.noco.dtogen.model
Class SourceUnit

java.lang.Object
  extended bynet.noco.dtogen.model.SourceUnit

public class SourceUnit
extends java.lang.Object

This class incorporates information for a writable java source.

Version:
$Revision: 1.35 $
Author:
the_mindstorm(at)evolva(dot)ro

Field Summary
private  java.lang.String className
           
private  com.thoughtworks.qdox.model.JavaSource jsource
           
private  java.lang.String packageDir
           
private  java.lang.String packageName
           
 
Constructor Summary
SourceUnit()
          No args constructor.
SourceUnit(com.thoughtworks.qdox.model.JavaSource src, java.lang.String pkgName, java.lang.String clsName)
          Constructor with all required info.
 
Method Summary
 java.lang.String getClassName()
           
 com.thoughtworks.qdox.model.JavaSource getJavaSource()
           
 java.lang.String getPackageDir()
          Returns the package name of the source in file system format (the .
 java.lang.String getPackageName()
           
 java.lang.String getSourceName()
          The fully qualified source name in a file system format (the .
 void setClassName(java.lang.String className)
           
 void setJavaSource(com.thoughtworks.qdox.model.JavaSource jsource)
           
 void setPackageName(java.lang.String packageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jsource

private com.thoughtworks.qdox.model.JavaSource jsource

packageName

private java.lang.String packageName

className

private java.lang.String className

packageDir

private java.lang.String packageDir
Constructor Detail

SourceUnit

public SourceUnit()
No args constructor.


SourceUnit

public SourceUnit(com.thoughtworks.qdox.model.JavaSource src,
                  java.lang.String pkgName,
                  java.lang.String clsName)
Constructor with all required info.

Parameters:
src - underlying QDox JavaSource to be written
pkgName - package name of the java source
clsName - class name of the java source
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
Returns the className.

setClassName

public void setClassName(java.lang.String className)
Parameters:
className - The className to set.

getJavaSource

public com.thoughtworks.qdox.model.JavaSource getJavaSource()
Returns:
Returns the jsource.

setJavaSource

public void setJavaSource(com.thoughtworks.qdox.model.JavaSource jsource)
Parameters:
jsource - The jsource to set.

getPackageName

public java.lang.String getPackageName()
Returns:
Returns the packageName.

setPackageName

public void setPackageName(java.lang.String packageName)
Parameters:
packageName - The packageName to set.

getPackageDir

public java.lang.String getPackageDir()
Returns the package name of the source in file system format (the . is replaced by /).

Returns:
package name in file system format

getSourceName

public java.lang.String getSourceName()
The fully qualified source name in a file system format (the . is replaced by /).

Returns:
the fully qualified source name


Copyright © 2004 Alexandru Popescu (a.k.a. the_mindstorm). All Rights Reserved.