public class LoaderOptions extends Object
| Constructor and Description |
|---|
LoaderOptions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAllowDuplicateKeys() |
boolean |
isWrappedToRootException() |
void |
setAllowDuplicateKeys(boolean allowDuplicateKeys)
Allow/Reject duplicate map keys in the YAML file.
|
void |
setWrappedToRootException(boolean wrappedToRootException)
Wrap runtime exception to YAMLException during parsing or leave them as they are
Default is to leave original exceptions
|
public boolean isAllowDuplicateKeys()
public void setAllowDuplicateKeys(boolean allowDuplicateKeys)
allowDuplicateKeys - false to reject duplicate mapping keyspublic boolean isWrappedToRootException()
public void setWrappedToRootException(boolean wrappedToRootException)
wrappedToRootException - - true to convert runtime exception to YAMLExceptionCopyright © 2008–2019. All rights reserved.