org.apache.shindig.gadgets.spec
Enum View.ContentType

java.lang.Object
  extended by java.lang.Enum<View.ContentType>
      extended by org.apache.shindig.gadgets.spec.View.ContentType
All Implemented Interfaces:
Serializable, Comparable<View.ContentType>
Enclosing class:
View

public static enum View.ContentType
extends Enum<View.ContentType>

Possible values for Content/@type


Enum Constant Summary
HTML
           
HTML_SANITIZED
           
URL
           
 
Method Summary
static View.ContentType parse(String viewName)
           
 String toString()
           
static View.ContentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static View.ContentType[] 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

HTML

public static final View.ContentType HTML

URL

public static final View.ContentType URL

HTML_SANITIZED

public static final View.ContentType HTML_SANITIZED
Method Detail

values

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

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

valueOf

public static View.ContentType 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

parse

public static View.ContentType parse(String viewName)
Parameters:
viewName -
Returns:
The parsed value (defaults to html)

toString

public String toString()
Overrides:
toString in class Enum<View.ContentType>


Copyright © 2007-2012. All Rights Reserved.