org.apache.shindig.gadgets.uri
Enum UriStatus

java.lang.Object
  extended by java.lang.Enum<UriStatus>
      extended by org.apache.shindig.gadgets.uri.UriStatus
All Implemented Interfaces:
Serializable, Comparable<UriStatus>

public enum UriStatus
extends Enum<UriStatus>

Contains all states of a Uri - versioned/unversioned, etc.


Enum Constant Summary
BAD_URI
           
INVALID_DOMAIN
           
INVALID_VERSION
           
VALID_UNVERSIONED
           
VALID_VERSIONED
           
 
Method Summary
static UriStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UriStatus[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VALID_VERSIONED

public static final UriStatus VALID_VERSIONED

VALID_UNVERSIONED

public static final UriStatus VALID_UNVERSIONED

INVALID_VERSION

public static final UriStatus INVALID_VERSION

INVALID_DOMAIN

public static final UriStatus INVALID_DOMAIN

BAD_URI

public static final UriStatus BAD_URI
Method Detail

values

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

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

valueOf

public static UriStatus 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


Copyright © 2007-2012. All Rights Reserved.