public static enum EditPage.Editor extends Enum<EditPage.Editor>
Modifier and Type | Method and Description |
---|---|
static EditPage.Editor |
byPrettyName(String prettyName) |
String |
getPrettyName() |
static EditPage.Editor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EditPage.Editor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EditPage.Editor WYSIWYG
public static final EditPage.Editor WIKI
public static final EditPage.Editor RIGHTS
public static final EditPage.Editor OBJECT
public static final EditPage.Editor CLASS
public static EditPage.Editor[] values()
for (EditPage.Editor c : EditPage.Editor.values()) System.out.println(c);
public static EditPage.Editor 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 getPrettyName()
public static EditPage.Editor byPrettyName(String prettyName)
prettyName
- the string used to display the name of the editor on the edit menunull
if no editor matches the given pretty
nameCopyright © 2004–2020 XWiki. All rights reserved.