net.sourceforge.argval.packageinfo
Class AbstractPackageInfo

java.lang.Object
  extended by net.sourceforge.argval.packageinfo.AbstractPackageInfo
All Implemented Interfaces:
PackageInfo, PackageInfoVisitorAcceptor
Direct Known Subclasses:
ManifestInfoAsPackageInfo, PackageInfoImpl

public abstract class AbstractPackageInfo
extends Object
implements PackageInfo

Author:
T. Verhagen

Field Summary
 
Fields inherited from interface net.sourceforge.argval.packageinfo.PackageInfo
UNKNOWN_PACKAGE_TITLE, UNKNOWN_VERSION
 
Constructor Summary
AbstractPackageInfo()
           
 
Method Summary
 void accept(PackageInfoVisitor visitor)
          Called through the client, which send the visitor along.
 String getTitle()
          Returns the specification title, when it is known.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.argval.packageinfo.PackageInfo
addPackageName, getImplementationTitle, getImplementationVendor, getImplementationVersion, getNameSet, getSpecificationTitle, getSpecificationVendor, getSpecificationVersion
 

Constructor Detail

AbstractPackageInfo

public AbstractPackageInfo()
Method Detail

getTitle

public 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 PackageInfo.UNKNOWN_PACKAGE_TITLE is returned.

Specified by:
getTitle in interface PackageInfo
Returns:
The title of the specification, or the implementation or just PackageInfo.UNKNOWN_PACKAGE_TITLE.

accept

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

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


Copyright © 2013 Verhagen Software. All Rights Reserved.