org.apache.shindig.gadgets.spec
Enum View.ContentType
java.lang.Object
java.lang.Enum<View.ContentType>
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
HTML
public static final View.ContentType HTML
URL
public static final View.ContentType URL
HTML_SANITIZED
public static final View.ContentType HTML_SANITIZED
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.