public static enum TextAreaClass.ContentType extends Enum<TextAreaClass.ContentType>
Indicates what kind of content this field contains (wiki, plain text, etc.).
Enum Constant and Description |
---|
PURE_TEXT
Plain text without any known syntax.
|
VELOCITY_CODE
Velocity content.
|
VELOCITYWIKI
Velocity content producing wiki content.
|
WIKI_TEXT
Wiki content.
|
Modifier and Type | Method and Description |
---|---|
static TextAreaClass.ContentType |
getByValue(String value)
Retreive the
TextAreaClass.ContentType based on its value. |
String |
toString() |
static TextAreaClass.ContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TextAreaClass.ContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TextAreaClass.ContentType PURE_TEXT
public static final TextAreaClass.ContentType WIKI_TEXT
public static final TextAreaClass.ContentType VELOCITY_CODE
public static final TextAreaClass.ContentType VELOCITYWIKI
public static TextAreaClass.ContentType[] values()
for (TextAreaClass.ContentType c : TextAreaClass.ContentType.values()) System.out.println(c);
public static TextAreaClass.ContentType 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 static TextAreaClass.ContentType getByValue(String value)
TextAreaClass.ContentType
based on its value.
The search is case insensitive.
value
- the value of the content typepublic String toString()
toString
in class Enum<TextAreaClass.ContentType>
Copyright © 2004–2022 XWiki. All rights reserved.