net.sourceforge.argval.packageinfo.impl
Class PackageInfoImpl

java.lang.Object
  extended by net.sourceforge.argval.packageinfo.AbstractPackageInfo
      extended by net.sourceforge.argval.packageinfo.impl.PackageInfoImpl
All Implemented Interfaces:
PackageInfo, PackageInfoVisitorAcceptor

public class PackageInfoImpl
extends AbstractPackageInfo

A helper class which stores once the Package details and contains a Set containing all the related Java language package names (the dot separated package name like net.sourceforge.argval.packageinfo ).

Author:
T. Verhagen

Field Summary
 
Fields inherited from interface net.sourceforge.argval.packageinfo.PackageInfo
UNKNOWN_PACKAGE_TITLE, UNKNOWN_VERSION
 
Constructor Summary
PackageInfoImpl()
          Default constructor.
PackageInfoImpl(Package pckg)
          Creates PackageInfo based on the given Package, and adds the package name to the internal Set of package names.
PackageInfoImpl(String specTitle, String specVendor, String specVersion, String implTitle, String implVendor, String implVersion)
          Main constructor.
 
Method Summary
 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.
 Set<String> getNameSet()
          Returns all the package names assosiated with this Package.
 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

PackageInfoImpl

public PackageInfoImpl()
Default constructor.


PackageInfoImpl

public PackageInfoImpl(String specTitle,
                       String specVendor,
                       String specVersion,
                       String implTitle,
                       String implVendor,
                       String implVersion)
Main constructor.

Parameters:
specTitle - The specification title.
specVendor - The specification vendor.
specVersion - The specification version.
implTitle - The implementation title.
implVendor - The implementation vendor.
implVersion - The implementation version.

PackageInfoImpl

public PackageInfoImpl(Package pckg)
Creates PackageInfo based on the given Package, and adds the package name to the internal Set of package names.

Parameters:
pckg - The Package instance.
Method Detail

getImplementationTitle

public String getImplementationTitle()
Returns the implementation title.

Returns:
The implementation title.

getImplementationVendor

public String getImplementationVendor()
Returns the implementation vendor.

Returns:
The implementation vendor.

getImplementationVersion

public String getImplementationVersion()
Returns the implementation version.

Returns:
The implementation version.

getSpecificationTitle

public String getSpecificationTitle()
Returns the specification title.

Returns:
The specification title.

getSpecificationVendor

public String getSpecificationVendor()
Returns the specification vendor.

Returns:
The specification vendor.

getSpecificationVersion

public String getSpecificationVersion()
Returns the specification version.

Returns:
The specification version.

getNameSet

public Set<String> getNameSet()
Returns all the package names assosiated with this Package.

Returns:
The set with all package names assosiated with this Package.

addPackageName

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

Parameters:
name - The name of the package.


Copyright © 2013 Verhagen Software. All Rights Reserved.