@Generated(value="config_generator.py") public class FilterExpressionConfig extends AbstractConfig
Modifier and Type | Class and Description |
---|---|
static class |
FilterExpressionConfig.Field
Fields of PGX Filter Expression
|
ENV_VARIABLE_PREFIX, SYSTEM_PROPERTY_PREFIX
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getExpression()
the filter expression
|
FilterType |
getType()
the type of the filter
|
java.util.Map<FilterExpressionConfig.Field,java.lang.Object> |
getValues()
Gets the parsed values.
|
java.util.Map<FilterExpressionConfig.Field,java.lang.Object> |
getValuesWithoutDefaults()
Gets the values without defaults.
|
boolean |
hasDefaultValue(FilterExpressionConfig.Field field)
Checks for default value.
|
boolean |
isEmpty()
Checks if it's empty.
|
static FilterExpressionConfig |
parse(java.io.InputStream is, boolean strict, java.lang.String parentPath)
Parses an input stream.
|
static FilterExpressionConfig |
parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
Parses a raw key/value mapping.
|
static FilterExpressionConfig |
parse(java.util.Properties props, boolean strict)
Parses a properties file.
|
java.lang.String |
toString() |
getValueFromEnvironment, getValueFromEnvironment, parseString, setSerializable
public java.lang.String getExpression()
public FilterType getType()
public java.util.Map<FilterExpressionConfig.Field,java.lang.Object> getValues()
public java.util.Map<FilterExpressionConfig.Field,java.lang.Object> getValuesWithoutDefaults()
public boolean hasDefaultValue(FilterExpressionConfig.Field field)
field
- the fieldpublic boolean isEmpty()
public static FilterExpressionConfig parse(java.io.InputStream is, boolean strict, java.lang.String parentPath) throws java.io.IOException
is
- the input streamstrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathjava.io.IOException
- Signals that an I/O exception has occurred.public static FilterExpressionConfig parse(java.util.Map<java.lang.String,java.lang.Object> raw, boolean strict, java.lang.String parentPath)
raw
- the raw key/value mapping to parsestrict
- if true, parses in strict modeparentPath
- if not null, resolves relative paths against this parentPathpublic static FilterExpressionConfig parse(java.util.Properties props, boolean strict)
props
- the properties to parsestrict
- if true, parses in strict modepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2017 Oracle Corp. All Rights Reserved.