org.norther.tammi.core.info
Class DefaultPackageInfo

java.lang.Object
  extended by org.norther.tammi.core.info.DefaultPackageInfo
All Implemented Interfaces:
PackageInfo

public class DefaultPackageInfo
extends Object
implements PackageInfo

A default implementation of PackageInfo.

Author:
Ilkka Priha

Constructor Summary
DefaultPackageInfo()
          Constructs a new package info.
DefaultPackageInfo(String pckage)
          Constructs a new package info for a named package.
 
Method Summary
 String getImplementationTitle()
          Gets the implementation title of the current package.
 String getImplementationTitle(String packageName)
          Gets the implementation title of the specified package.
 String getImplementationVendor()
          Gets the implementation vendor of the current package.
 String getImplementationVendor(String packageName)
          Gets the implementation vendor of the specified package.
 String getImplementationVersion()
          Gets the implementation version of the current package.
 String getImplementationVersion(String packageName)
          Gets the implementation version of the specified package.
 String getPackageName()
          Gets the name of the current package.
 String getPackageSpecification()
          Gets the package specification.
 String getSpecificationTitle()
          Gets the specification title of the current package.
 String getSpecificationTitle(String packageName)
          Gets the specification title of the specified package.
 String getSpecificationVendor()
          Gets the specification vendor of the current package.
 String getSpecificationVendor(String packageName)
          Gets the specification vendor of the specified package.
 String getSpecificationVersion()
          Gets the specification version of the current package.
 String getSpecificationVersion(String packageName)
          Gets the implementation title of the specified package.
 boolean isCompatibleWith(String desired)
          Compares the specification version of the package.
 boolean isSealed()
          Checks whether the package is sealed.
 List packageList()
          Returns a list of all packages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPackageInfo

public DefaultPackageInfo()
Constructs a new package info.


DefaultPackageInfo

public DefaultPackageInfo(String pckage)
Constructs a new package info for a named package.

Parameters:
pckage - the name of the package.
Method Detail

getPackageName

public String getPackageName()
Description copied from interface: PackageInfo
Gets the name of the current package.

Specified by:
getPackageName in interface PackageInfo
Returns:
the name of the current package.

getImplementationTitle

public String getImplementationTitle()
Description copied from interface: PackageInfo
Gets the implementation title of the current package.

Specified by:
getImplementationTitle in interface PackageInfo
Returns:
the implementation title.

getImplementationVendor

public String getImplementationVendor()
Description copied from interface: PackageInfo
Gets the implementation vendor of the current package.

Specified by:
getImplementationVendor in interface PackageInfo
Returns:
the implementation vendor.

getImplementationVersion

public String getImplementationVersion()
Description copied from interface: PackageInfo
Gets the implementation version of the current package.

Specified by:
getImplementationVersion in interface PackageInfo
Returns:
the implementation version.

getSpecificationTitle

public String getSpecificationTitle()
Description copied from interface: PackageInfo
Gets the specification title of the current package.

Specified by:
getSpecificationTitle in interface PackageInfo
Returns:
the specification title.

getSpecificationVendor

public String getSpecificationVendor()
Description copied from interface: PackageInfo
Gets the specification vendor of the current package.

Specified by:
getSpecificationVendor in interface PackageInfo
Returns:
the specification vendor.

getSpecificationVersion

public String getSpecificationVersion()
Description copied from interface: PackageInfo
Gets the specification version of the current package.

Specified by:
getSpecificationVersion in interface PackageInfo
Returns:
the specification version.

getPackageSpecification

public String getPackageSpecification()
Description copied from interface: PackageInfo
Gets the package specification.

Specified by:
getPackageSpecification in interface PackageInfo
Returns:
the package specification.

isSealed

public boolean isSealed()
Description copied from interface: PackageInfo
Checks whether the package is sealed.

Specified by:
isSealed in interface PackageInfo
Returns:
true, if sealed.

isCompatibleWith

public boolean isCompatibleWith(String desired)
Description copied from interface: PackageInfo
Compares the specification version of the package.

Specified by:
isCompatibleWith in interface PackageInfo
Parameters:
desired - the desired version.
Returns:
true, if compatible.

getImplementationTitle

public String getImplementationTitle(String packageName)
Description copied from interface: PackageInfo
Gets the implementation title of the specified package.

Specified by:
getImplementationTitle in interface PackageInfo
Parameters:
packageName - the package name.
Returns:
the implementation title.

getImplementationVendor

public String getImplementationVendor(String packageName)
Description copied from interface: PackageInfo
Gets the implementation vendor of the specified package.

Specified by:
getImplementationVendor in interface PackageInfo
Parameters:
packageName - the package name.
Returns:
the implementation vendor.

getImplementationVersion

public String getImplementationVersion(String packageName)
Description copied from interface: PackageInfo
Gets the implementation version of the specified package.

Specified by:
getImplementationVersion in interface PackageInfo
Parameters:
packageName - the package name.
Returns:
the implementation version.

getSpecificationTitle

public String getSpecificationTitle(String packageName)
Description copied from interface: PackageInfo
Gets the specification title of the specified package.

Specified by:
getSpecificationTitle in interface PackageInfo
Parameters:
packageName - the package name.
Returns:
the specification title.

getSpecificationVendor

public String getSpecificationVendor(String packageName)
Description copied from interface: PackageInfo
Gets the specification vendor of the specified package.

Specified by:
getSpecificationVendor in interface PackageInfo
Parameters:
packageName - the package name.
Returns:
the specification vendor.

getSpecificationVersion

public String getSpecificationVersion(String packageName)
Description copied from interface: PackageInfo
Gets the implementation title of the specified package.

Specified by:
getSpecificationVersion in interface PackageInfo
Parameters:
packageName - the package name.
Returns:
the implementation title.

packageList

public List packageList()
Description copied from interface: PackageInfo
Returns a list of all packages.

Specified by:
packageList in interface PackageInfo
Returns:
a list of packages.


Copyright © 2004 The Norther Organization. All rights reserved.