org.apache.jdo.impl.enhancer
Class OptionSet.IntOption

java.lang.Object
  extended byorg.apache.jdo.impl.enhancer.OptionSet.Option
      extended byorg.apache.jdo.impl.enhancer.OptionSet.IntOption
Enclosing class:
OptionSet

public static class OptionSet.IntOption
extends OptionSet.Option

An option representing a int value.


Field Summary
 int deflt
          The default value for this option.
 int value
          The value of this option.
 
Fields inherited from class org.apache.jdo.impl.enhancer.OptionSet.Option
abbrev, descr, name, set
 
Constructor Summary
OptionSet.IntOption(java.lang.String name, java.lang.String abbrev, java.lang.String descr)
          Creates an instance.
OptionSet.IntOption(java.lang.String name, java.lang.String abbrev, java.lang.String descr, int deflt)
          Creates an instance.
 
Method Summary
 java.lang.String asNameValue()
          Returns a String representation of this option's value for printing.
 int parse(java.util.Iterator i)
          Parse this option for arguments it may require.
 
Methods inherited from class org.apache.jdo.impl.enhancer.OptionSet.Option
asUsageHelp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deflt

public final int deflt
The default value for this option.


value

public int value
The value of this option.

Constructor Detail

OptionSet.IntOption

public OptionSet.IntOption(java.lang.String name,
                           java.lang.String abbrev,
                           java.lang.String descr)
Creates an instance.


OptionSet.IntOption

public OptionSet.IntOption(java.lang.String name,
                           java.lang.String abbrev,
                           java.lang.String descr,
                           int deflt)
Creates an instance.

Method Detail

parse

public int parse(java.util.Iterator i)
Description copied from class: OptionSet.Option
Parse this option for arguments it may require.

Specified by:
parse in class OptionSet.Option

asNameValue

public java.lang.String asNameValue()
Description copied from class: OptionSet.Option
Returns a String representation of this option's value for printing.

Specified by:
asNameValue in class OptionSet.Option