com.ibm.commons.iloader.node.lookups
Class BooleanLookup

java.lang.Object
  extended by com.ibm.commons.iloader.node.lookups.api.AbstractLookup
      extended by com.ibm.commons.iloader.node.lookups.BooleanLookup
All Implemented Interfaces:
ILookup
Direct Known Subclasses:
InvertedBooleanLookup

public class BooleanLookup
extends com.ibm.commons.iloader.node.lookups.api.AbstractLookup

A lookup that only has two values: true & false.


Field Summary
protected static java.lang.String UNKNOWN_VALUE
           
 
Constructor Summary
BooleanLookup()
          Creates a new instance of this class.
 
Method Summary
 java.lang.String getCode(int index)
          Return the code or model value for this index.
 java.lang.String getLabel(int index)
          Return the label displayed to the user for this index.
 int size()
          Returns the size of the number of items in the lookup.
 
Methods inherited from class com.ibm.commons.iloader.node.lookups.api.AbstractLookup
addLookupListener, addNotify, getImage, getLabelFromCode, getLabelFromCodeIgnoreCase, notifyLookupChanged, removeLookupListener, removeNotify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN_VALUE

protected static final java.lang.String UNKNOWN_VALUE
See Also:
Constant Field Values
Constructor Detail

BooleanLookup

public BooleanLookup()
Creates a new instance of this class.

Method Detail

size

public int size()
Returns the size of the number of items in the lookup.

Returns:
always returns true

getCode

public java.lang.String getCode(int index)
Description copied from interface: ILookup
Return the code or model value for this index.


getLabel

public java.lang.String getLabel(int index)
Description copied from interface: ILookup
Return the label displayed to the user for this index.