public class Options extends Object
Exporter.execute(Node, Options) options. If an option is not found, the default value will be used.| Modifier and Type | Class and Description |
|---|---|
static interface |
Options.PropertyFilter
Filters the properties that will be exported.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_INDENT_AMOUNT
The default option value for the number of spaces for each indent level of the output.
|
static boolean |
DEFAULT_PRETTY_PRINT
The default option value for if pretty printing the output is desired.
|
static Options.PropertyFilter |
DEFAULT_PROPERTY_FILTER
A default property filter that filters out properties of these namespaces:
|
static String |
INDENT_AMOUNT_PROPERTY
The option name for the number of spaces for each indent level of the output.
|
static String |
PRETTY_PRINT_PROPERTY
The option name for if pretty printing the output is desired.
|
static String |
PROPERTY_FILTER_PROPERTY
The option name for the properties filter.
|
| Constructor and Description |
|---|
Options() |
public static final int DEFAULT_INDENT_AMOUNT
public static final boolean DEFAULT_PRETTY_PRINT
public static final Options.PropertyFilter DEFAULT_PROPERTY_FILTER
Options.PropertyFilterpublic static final String INDENT_AMOUNT_PROPERTY
public static final String PRETTY_PRINT_PROPERTY
public static final String PROPERTY_FILTER_PROPERTY
Options.PropertyFilter,
Constant Field Valuespublic Object get(String name) throws RuntimeException
name - the option name (cannot be null or empty)null if not found)RuntimeException - if option name is null or emptypublic Object get(String name, Object defaultValue) throws RuntimeException
name - the option name (cannot be null or empty)defaultValue - the value to return if the option is not found (cannot be null)null)RuntimeException - if option name or default value is null or emptypublic Object set(String name, Object value)
null or an empty String.name - the option name (cannot be null or empty)value - the current value (can be null)null)public String toString()
toString in class ObjectObject.toString()Copyright © 2018 JBoss by Red Hat. All rights reserved.