fr.ifremer.isisfish.types
Class RangeOfValues

java.lang.Object
  extended by fr.ifremer.isisfish.types.RangeOfValues
All Implemented Interfaces:
Serializable, Cloneable

public class RangeOfValues
extends Object
implements Cloneable, Serializable

RangeOfValues.java Created: 7 mars 2006 17:16:20

Version:
$Revision: 3124 $ Last update: $Date: 2010-11-29 19:14:09 +0100 (lun., 29 nov. 2010) $ by : $Author: chatellier $
Author:
poussin
See Also:
Serialized Form

Field Summary
protected  boolean continueRange
           
protected  List possibleValues
           
protected  String type
           
static String[] TYPES
           
protected  String values
           
 
Constructor Summary
RangeOfValues(String typeValue)
           
RangeOfValues(String type, String value)
           
 
Method Summary
 boolean contains(float val)
           
 boolean contains(int val)
           
 boolean contains(String val)
           
 String getAsString()
           
static String[] getPossibleTypes()
           
 List getPossibleValues()
           
 String getType()
           
 String getValues()
           
 boolean isContinueRange()
           
protected  void setType(String type)
           
protected  void setTypeValues(String typeValues)
          Change type and values.
protected  void setValues(String values)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPES

public static final String[] TYPES

type

protected String type

continueRange

protected boolean continueRange

values

protected String values

possibleValues

protected List possibleValues
Constructor Detail

RangeOfValues

public RangeOfValues(String typeValue)

RangeOfValues

public RangeOfValues(String type,
                     String value)
Method Detail

getPossibleTypes

public static String[] getPossibleTypes()

getType

public String getType()
Returns:
Returns the type.

setType

protected void setType(String type)
Parameters:
type - The type to set.

getValues

public String getValues()
Returns:
Returns the values.

setValues

protected void setValues(String values)
Parameters:
values - The values to set.

isContinueRange

public boolean isContinueRange()

setTypeValues

protected void setTypeValues(String typeValues)
Change type and values. String must be something like Integer[1;3;4]

Parameters:
typeValues -

contains

public boolean contains(String val)

contains

public boolean contains(int val)

contains

public boolean contains(float val)

getPossibleValues

public List getPossibleValues()

getAsString

public String getAsString()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2011 CodeLutin. All Rights Reserved.