net.sourceforge.nite.meta.impl
Class NiteCallableProgram.Argument

java.lang.Object
  extended by net.sourceforge.nite.meta.impl.NiteCallableProgram.Argument
All Implemented Interfaces:
NCallableProgram.Argument
Enclosing class:
NiteCallableProgram

public class NiteCallableProgram.Argument
extends java.lang.Object
implements NCallableProgram.Argument


Field Summary
 
Fields inherited from interface net.sourceforge.nite.meta.NCallableProgram.Argument
ANNOTATOR_NAME, CORPUS_NAME, OBSERVATION_NAME, UNKNOWN
 
Constructor Summary
NiteCallableProgram.Argument(java.lang.String flag, java.lang.String type, java.lang.String defaultValue)
           
 
Method Summary
 java.lang.String getDefaultValue()
          get the default value if one is available
 java.lang.String getFlagName()
          get the flag for this argument should not include the '-'
 int getType()
          get the type of the argument - returns CORPUS_NAME or OBSERVATION_NAME if that is listed in the metadata, or UNKNOWN if not.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiteCallableProgram.Argument

public NiteCallableProgram.Argument(java.lang.String flag,
                                    java.lang.String type,
                                    java.lang.String defaultValue)
Method Detail

getFlagName

public java.lang.String getFlagName()
get the flag for this argument should not include the '-'

Specified by:
getFlagName in interface NCallableProgram.Argument

getDefaultValue

public java.lang.String getDefaultValue()
get the default value if one is available

Specified by:
getDefaultValue in interface NCallableProgram.Argument

getType

public int getType()
get the type of the argument - returns CORPUS_NAME or OBSERVATION_NAME if that is listed in the metadata, or UNKNOWN if not.

Specified by:
getType in interface NCallableProgram.Argument