Class PropertyParser


  • public class PropertyParser
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<ParserAction> actions  
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PropertyParser add​(java.lang.String propName, Operation action, java.lang.String fieldName)  
      PropertyParser addPrefix​(java.lang.String propName, Operation action, java.lang.String fieldName, java.lang.Class<?> componentType)  
      java.util.Iterator<ParserAction> iterator()  
      java.util.Map<java.lang.String,​java.lang.Object> parse​(java.util.Properties props)
      Return a map from field name to value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropertyParser

        public PropertyParser()
    • Method Detail

      • addPrefix

        public PropertyParser addPrefix​(java.lang.String propName,
                                        Operation action,
                                        java.lang.String fieldName,
                                        java.lang.Class<?> componentType)
      • parse

        public java.util.Map<java.lang.String,​java.lang.Object> parse​(java.util.Properties props)
        Return a map from field name to value.
        Parameters:
        props - properties to convert
        Returns:
        unsynchonized Map
      • iterator

        public java.util.Iterator<ParserAction> iterator()