org.asciidoctor
public enum SafeMode extends Enum<SafeMode>
| Enum Constant and Description |
|---|
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).
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final SafeMode UNSAFE
public static final SafeMode SAFE
public static final SafeMode SERVER
public static final SafeMode SECURE
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 nameNullPointerException - if the argument is nullpublic int getLevel()
Copyright © 2013. All Rights Reserved.