public enum HeaderLevel extends Enum<HeaderLevel>
Enum Constant and Description |
---|
LEVEL1
Header of level 1.
|
LEVEL2
Header of level 2.
|
LEVEL3
Header of level 3.
|
LEVEL4
Header of level 4.
|
LEVEL5
Header of level 5.
|
LEVEL6
Header of level 6.
|
Modifier and Type | Method and Description |
---|---|
int |
getAsInt() |
static HeaderLevel |
parseInt(int value)
Convert provided integer into the corresponding header level enum entry.
|
String |
toString() |
static HeaderLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HeaderLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HeaderLevel LEVEL1
public static final HeaderLevel LEVEL2
public static final HeaderLevel LEVEL3
public static final HeaderLevel LEVEL4
public static final HeaderLevel LEVEL5
public static final HeaderLevel LEVEL6
public static HeaderLevel[] values()
for (HeaderLevel c : HeaderLevel.values()) System.out.println(c);
public static HeaderLevel 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 int getAsInt()
public String toString()
toString
in class Enum<HeaderLevel>
public static HeaderLevel parseInt(int value)
value
- the header level as integerCopyright © 2004–2021 XWiki. All rights reserved.