public class LoaderOptions extends Object
Constructor and Description |
---|
LoaderOptions() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowRecursiveKeys() |
int |
getMaxAliasesForCollections() |
boolean |
isAllowDuplicateKeys() |
boolean |
isWrappedToRootException() |
void |
setAllowDuplicateKeys(boolean allowDuplicateKeys)
Allow/Reject duplicate map keys in the YAML file.
|
void |
setAllowRecursiveKeys(boolean allowRecursiveKeys) |
void |
setMaxAliasesForCollections(int maxAliasesForCollections) |
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 YAMLExceptionpublic int getMaxAliasesForCollections()
public void setMaxAliasesForCollections(int maxAliasesForCollections)
public void setAllowRecursiveKeys(boolean allowRecursiveKeys)
public boolean getAllowRecursiveKeys()
Copyright © 2008–2020 JBoss by Red Hat. All rights reserved.