com.go.teatools
Class PackageDescriptor

java.lang.Object
  |
  +--com.go.teatools.PackageDescriptor

public class PackageDescriptor
extends java.lang.Object

Wrapper for information retrieved from a package's PackageInfo class or java.lang.Package object.

Version:
1 , 2/20/01
Author:
Mark Masse

Field Summary
protected  java.lang.String mBaseDirectory
           
protected  java.util.Date mBuildDate
           
protected  java.lang.String mBuildLocation
           
protected  java.lang.String mBuildMachine
           
protected  java.lang.String mBuildNumber
           
protected  boolean mExists
           
protected  java.lang.String mGroup
           
protected  java.lang.String mImplementationTitle
           
protected  java.lang.String mImplementationVendor
           
protected  java.lang.String mImplementationVersion
           
protected  java.lang.String mPackageName
           
protected  java.lang.String mProduct
           
protected  java.lang.String mProductVersion
           
protected  java.lang.String mProject
           
protected  java.lang.String mRepository
           
protected  java.lang.String mSpecificationTitle
           
protected  java.lang.String mSpecificationVendor
           
protected  java.lang.String mSpecificationVersion
           
protected  java.lang.String mUsername
           
 
Constructor Summary
PackageDescriptor(java.lang.String packageName)
          Creates a new PackageDescriptor for the specified packageName
 
Method Summary
static PackageDescriptor forName(java.lang.String packageName)
          Creates a PackageDescriptor for the named package.
static PackageDescriptor forName(java.lang.String packageName, java.lang.ClassLoader classLoader)
          Creates a PackageDescriptor for the named package using the specified ClassLoader to load the PackageInfo or Package.
 java.lang.String getBaseDirectory()
           
 java.util.Date getBuildDate()
           
 java.lang.String getBuildLocation()
           
 java.lang.String getBuildMachine()
           
 java.lang.String getBuildNumber()
           
 boolean getExists()
          Returns true if this PackageDescriptor was successfully initialized from PackageInfo or Package data.
 java.lang.String getGroup()
           
 java.lang.String getImplementationTitle()
           
 java.lang.String getImplementationVendor()
           
 java.lang.String getImplementationVersion()
           
 java.lang.String getPackageName()
           
 java.lang.String getProduct()
           
 java.lang.String getProductVersion()
           
 java.lang.String getProject()
           
 java.lang.String getRepository()
           
 java.lang.String getSpecificationTitle()
           
 java.lang.String getSpecificationVendor()
           
 java.lang.String getSpecificationVersion()
           
 java.lang.String getUsername()
           
 void setBaseDirectory(java.lang.String s)
           
 void setBuildDate(java.util.Date d)
           
 void setBuildLocation(java.lang.String s)
           
 void setBuildMachine(java.lang.String s)
           
 void setBuildNumber(java.lang.String s)
           
 void setGroup(java.lang.String s)
           
 void setImplementationTitle(java.lang.String s)
           
 void setImplementationVendor(java.lang.String s)
           
 void setImplementationVersion(java.lang.String s)
           
 void setPackageName(java.lang.String packageName)
           
 void setProduct(java.lang.String s)
           
 void setProductVersion(java.lang.String s)
           
 void setProject(java.lang.String s)
           
 void setRepository(java.lang.String s)
           
 void setSpecificationTitle(java.lang.String s)
           
 void setSpecificationVendor(java.lang.String s)
           
 void setSpecificationVersion(java.lang.String s)
           
 void setUsername(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mPackageName

protected java.lang.String mPackageName

mExists

protected boolean mExists

mSpecificationTitle

protected java.lang.String mSpecificationTitle

mSpecificationVersion

protected java.lang.String mSpecificationVersion

mSpecificationVendor

protected java.lang.String mSpecificationVendor

mImplementationTitle

protected java.lang.String mImplementationTitle

mImplementationVersion

protected java.lang.String mImplementationVersion

mImplementationVendor

protected java.lang.String mImplementationVendor

mBaseDirectory

protected java.lang.String mBaseDirectory

mRepository

protected java.lang.String mRepository

mUsername

protected java.lang.String mUsername

mBuildMachine

protected java.lang.String mBuildMachine

mGroup

protected java.lang.String mGroup

mProject

protected java.lang.String mProject

mBuildLocation

protected java.lang.String mBuildLocation

mProduct

protected java.lang.String mProduct

mProductVersion

protected java.lang.String mProductVersion

mBuildNumber

protected java.lang.String mBuildNumber

mBuildDate

protected java.util.Date mBuildDate
Constructor Detail

PackageDescriptor

public PackageDescriptor(java.lang.String packageName)
Creates a new PackageDescriptor for the specified packageName
Method Detail

forName

public static PackageDescriptor forName(java.lang.String packageName)
Creates a PackageDescriptor for the named package.

forName

public static PackageDescriptor forName(java.lang.String packageName,
                                        java.lang.ClassLoader classLoader)
Creates a PackageDescriptor for the named package using the specified ClassLoader to load the PackageInfo or Package.

setPackageName

public void setPackageName(java.lang.String packageName)

getPackageName

public java.lang.String getPackageName()

getExists

public boolean getExists()
Returns true if this PackageDescriptor was successfully initialized from PackageInfo or Package data.

setSpecificationTitle

public void setSpecificationTitle(java.lang.String s)

getSpecificationTitle

public java.lang.String getSpecificationTitle()

setSpecificationVersion

public void setSpecificationVersion(java.lang.String s)

getSpecificationVersion

public java.lang.String getSpecificationVersion()

setSpecificationVendor

public void setSpecificationVendor(java.lang.String s)

getSpecificationVendor

public java.lang.String getSpecificationVendor()

setImplementationTitle

public void setImplementationTitle(java.lang.String s)

getImplementationTitle

public java.lang.String getImplementationTitle()

setImplementationVersion

public void setImplementationVersion(java.lang.String s)

getImplementationVersion

public java.lang.String getImplementationVersion()

setImplementationVendor

public void setImplementationVendor(java.lang.String s)

getImplementationVendor

public java.lang.String getImplementationVendor()

setBaseDirectory

public void setBaseDirectory(java.lang.String s)

getBaseDirectory

public java.lang.String getBaseDirectory()

setRepository

public void setRepository(java.lang.String s)

getRepository

public java.lang.String getRepository()

setUsername

public void setUsername(java.lang.String s)

getUsername

public java.lang.String getUsername()

setBuildMachine

public void setBuildMachine(java.lang.String s)

getBuildMachine

public java.lang.String getBuildMachine()

setGroup

public void setGroup(java.lang.String s)

getGroup

public java.lang.String getGroup()

setProject

public void setProject(java.lang.String s)

getProject

public java.lang.String getProject()

setBuildLocation

public void setBuildLocation(java.lang.String s)

getBuildLocation

public java.lang.String getBuildLocation()

setProduct

public void setProduct(java.lang.String s)

getProduct

public java.lang.String getProduct()

setProductVersion

public void setProductVersion(java.lang.String s)

getProductVersion

public java.lang.String getProductVersion()

setBuildNumber

public void setBuildNumber(java.lang.String s)

getBuildNumber

public java.lang.String getBuildNumber()

setBuildDate

public void setBuildDate(java.util.Date d)

getBuildDate

public java.util.Date getBuildDate()