org.faktorips.runtime.internal
Class EnumValues

java.lang.Object
  extended by org.faktorips.runtime.internal.EnumValues

public class EnumValues
extends Object

Represents a collection of enum values. This class is used during the process of reading data of enum value sets from an xml representation into memory and create org.faktorips.valueset.EnumValueSet objects.

Author:
Peter Erzberger

Constructor Summary
EnumValues(String[] values, boolean containsNull)
          Creates a new EnumValues object.
 
Method Summary
 boolean containsNull()
           
 int getNumberOfValues()
           
 String getValue(int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumValues

public EnumValues(String[] values,
                  boolean containsNull)
Creates a new EnumValues object.

Method Detail

containsNull

public boolean containsNull()
Returns:
Returns of the value null is contained in the values

getValue

public String getValue(int index)
Returns:
Returns the value at the indexed position

getNumberOfValues

public int getNumberOfValues()
Returns:
Returns the number of values


Copyright © 2015. All rights reserved.