net.sourceforge.argval.manifestinfo.impl
Class ManifestInfoAsPackageInfo

java.lang.Object
  extended by net.sourceforge.argval.packageinfo.AbstractPackageInfo
      extended by net.sourceforge.argval.manifestinfo.impl.ManifestInfoAsPackageInfo
All Implemented Interfaces:
ManifestInfo, ManifestInfoVisitorAcceptor, PackageInfo, PackageInfoVisitorAcceptor

public class ManifestInfoAsPackageInfo
extends AbstractPackageInfo
implements ManifestInfo


Field Summary
 
Fields inherited from interface net.sourceforge.argval.packageinfo.PackageInfo
UNKNOWN_PACKAGE_TITLE, UNKNOWN_VERSION
 
Constructor Summary
ManifestInfoAsPackageInfo(File jarPath, Manifest manifest)
           
 
Method Summary
 void accept(ManifestInfoVisitor visitor)
           
 void addPackageName(String name)
          Adds the name of the package from the Java language dot notation ( net.sourceforge.argval.packageinfo ).
 String getImplementationTitle()
          Returns the implementation title.
 String getImplementationVendor()
          Returns the implementation vendor.
 String getImplementationVersion()
          Returns the implementation version.
 File getJarPath()
           
 String getMainAttribute(Attributes.Name attributeName)
           
 Manifest getManifest()
           
 Set<String> getNameSet()
          Returns all the package names associated with this Package.
 PackageInfo getPackageInfo()
           
 String getSpecificationTitle()
          Returns the specification title.
 String getSpecificationVendor()
          Returns the specification vendor.
 String getSpecificationVersion()
          Returns the specification version.
 
Methods inherited from class net.sourceforge.argval.packageinfo.AbstractPackageInfo
accept, getTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManifestInfoAsPackageInfo

public ManifestInfoAsPackageInfo(File jarPath,
                                 Manifest manifest)
Method Detail

getJarPath

public File getJarPath()
Specified by:
getJarPath in interface ManifestInfo

getManifest

public Manifest getManifest()
Specified by:
getManifest in interface ManifestInfo

getPackageInfo

public PackageInfo getPackageInfo()
Specified by:
getPackageInfo in interface ManifestInfo

addPackageName

public void addPackageName(String name)
Description copied from interface: PackageInfo
Adds the name of the package from the Java language dot notation ( net.sourceforge.argval.packageinfo ).

Specified by:
addPackageName in interface PackageInfo
Parameters:
name - The name of the package.

getSpecificationTitle

public String getSpecificationTitle()
Description copied from interface: ManifestInfo
Returns the specification title.

Specified by:
getSpecificationTitle in interface ManifestInfo
Specified by:
getSpecificationTitle in interface PackageInfo
Returns:
The specification title.

getSpecificationVendor

public String getSpecificationVendor()
Description copied from interface: ManifestInfo
Returns the specification vendor.

Specified by:
getSpecificationVendor in interface ManifestInfo
Specified by:
getSpecificationVendor in interface PackageInfo
Returns:
The specification vendor.

getSpecificationVersion

public String getSpecificationVersion()
Description copied from interface: ManifestInfo
Returns the specification version.

Specified by:
getSpecificationVersion in interface ManifestInfo
Specified by:
getSpecificationVersion in interface PackageInfo
Returns:
The specification version.

getImplementationTitle

public String getImplementationTitle()
Description copied from interface: PackageInfo
Returns the implementation title.

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

getImplementationVendor

public String getImplementationVendor()
Description copied from interface: PackageInfo
Returns the implementation vendor.

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

getImplementationVersion

public String getImplementationVersion()
Description copied from interface: PackageInfo
Returns the implementation version.

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

getNameSet

public Set<String> getNameSet()
Description copied from interface: PackageInfo
Returns all the package names associated with this Package.

Specified by:
getNameSet in interface PackageInfo
Returns:
The set with all package names associated with this Package.

accept

public void accept(ManifestInfoVisitor visitor)
Specified by:
accept in interface ManifestInfoVisitorAcceptor

getMainAttribute

public String getMainAttribute(Attributes.Name attributeName)


Copyright © 2013 Verhagen Software. All Rights Reserved.