net.sourceforge.argval.packageinfo
Interface PackageInfo

All Superinterfaces:
PackageInfoVisitorAcceptor
All Known Implementing Classes:
AbstractPackageInfo, ManifestInfoAsPackageInfo, PackageInfoImpl

public interface PackageInfo
extends PackageInfoVisitorAcceptor

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
static String UNKNOWN_PACKAGE_TITLE
          If no specification and implementation title is known, the value "Unknown package title" is used.
static String UNKNOWN_VERSION
          If no specification and implementation version is known, the value "Unknown" is used.
 
Method Summary
 void accept(PackageInfoVisitor visitor)
          Called through the client, which send the visitor along.
 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 associated with this Package.
 String getSpecificationTitle()
          Returns the specification title.
 String getSpecificationVendor()
          Returns the specification vendor.
 String getSpecificationVersion()
          Returns the specification version.
 String getTitle()
          Returns the specification title, when it is known.
 

Field Detail

UNKNOWN_PACKAGE_TITLE

static final String UNKNOWN_PACKAGE_TITLE
If no specification and implementation title is known, the value "Unknown package title" is used.

See Also:
Constant Field Values

UNKNOWN_VERSION

static final String UNKNOWN_VERSION
If no specification and implementation version is known, the value "Unknown" is used.

See Also:
Constant Field Values
Method Detail

getImplementationTitle

String getImplementationTitle()
Returns the implementation title.

Returns:
The implementation title.

getImplementationVendor

String getImplementationVendor()
Returns the implementation vendor.

Returns:
The implementation vendor.

getImplementationVersion

String getImplementationVersion()
Returns the implementation version.

Returns:
The implementation version.

getSpecificationTitle

String getSpecificationTitle()
Returns the specification title.

Returns:
The specification title.

getSpecificationVendor

String getSpecificationVendor()
Returns the specification vendor.

Returns:
The specification vendor.

getSpecificationVersion

String getSpecificationVersion()
Returns the specification version.

Returns:
The specification version.

getTitle

String getTitle()
Returns the specification title, when it is known. Or when not the implementation title is returned. Or when that is also not known, the value UNKNOWN_PACKAGE_TITLE is returned.

Returns:
The title of the specification, or the implementation or just UNKNOWN_PACKAGE_TITLE.

getNameSet

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

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

addPackageName

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.

accept

void accept(PackageInfoVisitor visitor)
Called through the client, which send the visitor along..

Specified by:
accept in interface PackageInfoVisitorAcceptor
Parameters:
visitor - The visitor.


Copyright © 2013 Verhagen Software. All Rights Reserved.