@Generated(value="config_generator.py") public class GraphErrorHandlingConfig extends AbstractConfig
Modifier and Type | Class and Description |
---|---|
static class |
GraphErrorHandlingConfig.Field
Fields of PGX Engine Graph Error Handling Config
|
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Gets the charset.
|
OnMismatch |
getOnMissedPropKey()
what to do when missing property key is encountered
|
OnMismatch |
getOnPropConversion()
what to do when different property type is encountered than specified, but coercion is possible
|
OnMismatch |
getOnTypeMismatch()
what to do when different property type is encountered than specified, but coercion is not possible
|
Map<GraphErrorHandlingConfig.Field,Object> |
getValues()
Gets the parsed values.
|
Map<GraphErrorHandlingConfig.Field,Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(GraphErrorHandlingConfig.Field field)
Checks for default value.
|
static GraphErrorHandlingConfig |
parse(InputStream is, boolean strict, File parent)
Parses an input stream.
|
static GraphErrorHandlingConfig |
parse(Map<String,Object> raw, boolean strict, File parent)
Parses a raw key/value mapping.
|
static GraphErrorHandlingConfig |
parse(Properties props, boolean strict)
Parses a properties file.
|
String |
toString() |
setSerializable
public Charset getCharset()
public OnMismatch getOnMissedPropKey()
public OnMismatch getOnPropConversion()
public OnMismatch getOnTypeMismatch()
public Map<GraphErrorHandlingConfig.Field,Object> getValues()
public Map<GraphErrorHandlingConfig.Field,Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(GraphErrorHandlingConfig.Field field)
field
- the fieldpublic static GraphErrorHandlingConfig parse(InputStream is, boolean strict, File parent) throws IOException
is
- the input streamstrict
- if true, parses in strict modeparent
- if not null, resolves relative paths against this parentIOException
- Signals that an I/O exception has occurred.public static GraphErrorHandlingConfig parse(Map<String,Object> raw, boolean strict, File parent)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparent
- if not null, resolves relative paths against this parentpublic static GraphErrorHandlingConfig parse(Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modeCopyright © 2015. All rights reserved.