org.jtheque.films.utils
Enum Constants.Site

java.lang.Object
  extended by java.lang.Enum<Constants.Site>
      extended by org.jtheque.films.utils.Constants.Site
All Implemented Interfaces:
Serializable, Comparable<Constants.Site>
Enclosing class:
Constants

public static enum Constants.Site
extends Enum<Constants.Site>

A properties class for sites.

Author:
Baptiste Wicht

Enum Constant Summary
ALLOCINE
           
CINEMOVIES
           
DVDFR
           
MOVIESCOVERS
           
 
Method Summary
 String toString()
           
 String value()
          Return the string value of the site.
static Constants.Site valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Constants.Site[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CINEMOVIES

public static final Constants.Site CINEMOVIES

ALLOCINE

public static final Constants.Site ALLOCINE

MOVIESCOVERS

public static final Constants.Site MOVIESCOVERS

DVDFR

public static final Constants.Site DVDFR
Method Detail

values

public static Constants.Site[] 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 (Constants.Site c : Constants.Site.values())
    System.out.println(c);

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

valueOf

public static Constants.Site 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

value

public String value()
Return the string value of the site.

Returns:
The string value of the site.

toString

public String toString()
Overrides:
toString in class Enum<Constants.Site>


Copyright © 2010 JTheque. All Rights Reserved.