|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<SafeMode>
org.asciidoctor.SafeMode
public enum SafeMode
| Enum Constant Summary | |
|---|---|
SAFE
A safe mode level that closely parallels safe mode in AsciiDoc. |
|
SECURE
A safe mode level that disallows the document from attempting to read files from the file system and including the contents of them into the document, in additional to all the security features of SafeMode::SERVER. |
|
SERVER
A safe mode level that disallows the document from setting attributes that would affect the rendering of the document, in addition to all the security features of SafeMode::SAFE. |
|
UNSAFE
A safe mode level that disables any of the security features enforced by Asciidoctor (Ruby is still subject to its own restrictions). |
|
| Method Summary | |
|---|---|
int |
getLevel()
|
static SafeMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SafeMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SafeMode UNSAFE
public static final SafeMode SAFE
public static final SafeMode SERVER
public static final SafeMode SECURE
| Method Detail |
|---|
public static SafeMode[] values()
for (SafeMode c : SafeMode.values()) System.out.println(c);
public static SafeMode valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||