fr.ybo.opendata.rennes.modele.votes
Enum Nature

java.lang.Object
  extended by java.lang.Enum<Nature>
      extended by fr.ybo.opendata.rennes.modele.votes.Nature
All Implemented Interfaces:
Serializable, Comparable<Nature>

public enum Nature
extends Enum<Nature>

Nature d'un bureaux de vote.


Enum Constant Summary
CENTRE_CULTUREL
          Centre culturel.
COLLEGE
          Collège.
ELEMENTAIRE
          Ecole élémentaire.
GROUPE_SCOLAIRE
          Groupe scolaire.
GYMNASE_MOYEN
          Gymnase moyen.
 
Method Summary
static Nature fromValue(String value)
          Renvoie l'enum en fonction de la valeur dans le xml.
static Nature valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Nature[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ELEMENTAIRE

public static final Nature ELEMENTAIRE
Ecole élémentaire.


GROUPE_SCOLAIRE

public static final Nature GROUPE_SCOLAIRE
Groupe scolaire.


CENTRE_CULTUREL

public static final Nature CENTRE_CULTUREL
Centre culturel.


COLLEGE

public static final Nature COLLEGE
Collège.


GYMNASE_MOYEN

public static final Nature GYMNASE_MOYEN
Gymnase moyen.

Method Detail

values

public static Nature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Nature c : Nature.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Nature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

fromValue

public static Nature fromValue(String value)
Renvoie l'enum en fonction de la valeur dans le xml.

Parameters:
value - valeur dans le xml.
Returns:
l'enum.


Copyright © 2012. All Rights Reserved.