protoj.lang
Class InfoFeature

java.lang.Object
  extended by protoj.lang.InfoFeature

public final class InfoFeature
extends java.lang.Object

Provides support for reporting project information such as help and versioning.

Author:
Ashley Williams

Constructor Summary
InfoFeature(StandardProject project, java.lang.String versionInfo)
          Accepts the owning project and the information to be reported by reportVersion(),
 
Method Summary
 void reportCommandHelp(Command command)
          Reports help on the specified command to stdout.
 void reportProjectHelp()
          Reports general project help information to stdout by iterating over the commands in the CommandStore and properties in the PropertyStore and using their descriptive properties.
 void reportPropertyHelp(PropertyInfo property)
          Reports help on the specified property to stdout.
 void reportVersion()
          Reports version information to stdout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfoFeature

public InfoFeature(StandardProject project,
                   java.lang.String versionInfo)
Accepts the owning project and the information to be reported by reportVersion(),

Parameters:
project -
versionInfo -
Method Detail

reportProjectHelp

public void reportProjectHelp()
Reports general project help information to stdout by iterating over the commands in the CommandStore and properties in the PropertyStore and using their descriptive properties.


reportCommandHelp

public void reportCommandHelp(Command command)
Reports help on the specified command to stdout.

Parameters:
command -

reportPropertyHelp

public void reportPropertyHelp(PropertyInfo property)
Reports help on the specified property to stdout.

Parameters:
property -

reportVersion

public void reportVersion()
Reports version information to stdout.