public static enum RequestContext.OutputMode extends Enum<RequestContext.OutputMode>
Enum Constant and Description |
---|
ATTACHMENT |
DEFAULT |
EMAIL |
PORTLET |
PRINTABLE |
WEB_CRAWLER |
Modifier and Type | Method and Description |
---|---|
static RequestContext.OutputMode |
fromId(String id)
Returns the OutputMode isntance of
null if no id matches. |
String |
id() |
String |
toString() |
static RequestContext.OutputMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestContext.OutputMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestContext.OutputMode DEFAULT
public static final RequestContext.OutputMode PORTLET
public static final RequestContext.OutputMode PRINTABLE
public static final RequestContext.OutputMode EMAIL
public static final RequestContext.OutputMode ATTACHMENT
public static final RequestContext.OutputMode WEB_CRAWLER
public static RequestContext.OutputMode[] values()
for (RequestContext.OutputMode c : RequestContext.OutputMode.values()) System.out.println(c);
public static RequestContext.OutputMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String id()
public String toString()
toString
in class Enum<RequestContext.OutputMode>
public static RequestContext.OutputMode fromId(String id)
null
if no id matches.id
- of OutputMode to returnNullPointerException
- if id
is null.IllegalArgumentException
- if there is no enum with the specified name.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.