Class PropertiesConfigParser<F extends ConfigField>

  • Type Parameters:
    F - the field enum this parsers uses

    public class PropertiesConfigParser<F extends ConfigField>
    extends AbstractConfigParser<F>
    A graph configuration parser which reads Java Properties format.
    • Method Detail

      • parse

        public static <F extends ConfigFieldParseResult<F> parse​(java.util.Properties props,
                                                                   F[] fields,
                                                                   boolean strict)
        Parses a Properties file into a ParseResult object.
        Type Parameters:
        F - the field enum to use for parsing
        Parameters:
        props - the props the input Properties object
        fields - the fields the fields to use for parsing
        strict - 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