Package oracle.pgx.config
Class PropertiesConfigParser<F extends ConfigField>
- java.lang.Object
-
- oracle.pgx.config.AbstractConfigParser<F>
-
- oracle.pgx.config.PropertiesConfigParser<F>
-
- Type Parameters:
F
- the field enum this parsers uses
public class PropertiesConfigParser<F extends ConfigField> extends AbstractConfigParser<F>
A graph configuration parser which reads JavaProperties
format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParseResult<F>
parse()
Starts parsing.static <F extends ConfigField>
ParseResult<F>parse(java.util.Properties props, F[] fields, boolean strict)
Parses aProperties
file into aParseResult
object.
-
-
-
Method Detail
-
parse
public static <F extends ConfigField> ParseResult<F> parse(java.util.Properties props, F[] fields, boolean strict)
Parses aProperties
file into aParseResult
object.- Type Parameters:
F
- the field enum to use for parsing- Parameters:
props
- the props the inputProperties
objectfields
- the fields the fields to use for parsingstrict
- if true, parses in strict mode- Returns:
- the parsing result
- Throws:
java.lang.IllegalArgumentException
- if any input errors are encountered during parsing. Non-critical errors won't resolve in an exception if not parsing in strict mode.
-
parse
public ParseResult<F> parse()
Starts parsing.- Returns:
- parsing result
-
-