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 JavaPropertiesformat.
-
-
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 aPropertiesfile into aParseResultobject.
-
-
-
Method Detail
-
parse
public static <F extends ConfigField> ParseResult<F> parse(java.util.Properties props, F[] fields, boolean strict)
Parses aPropertiesfile into aParseResultobject.- Type Parameters:
F- the field enum to use for parsing- Parameters:
props- the props the inputPropertiesobjectfields- 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
-
-