Class PrefixParserAction

    • Constructor Summary

      Constructors 
      Constructor Description
      PrefixParserAction​(java.lang.String propertyName, Operation operation, java.lang.String fieldName, java.lang.Class componentType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object apply​(java.util.Properties props)
      For each String s that matches the prefix given by getPropertyName(), apply getOperation() to { suffix( s ), value } and add the result to an Object[] which forms the result of apply.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • componentType

        private java.lang.Class componentType
    • Constructor Detail

      • PrefixParserAction

        public PrefixParserAction​(java.lang.String propertyName,
                                  Operation operation,
                                  java.lang.String fieldName,
                                  java.lang.Class componentType)
    • Method Detail

      • apply

        public java.lang.Object apply​(java.util.Properties props)
        For each String s that matches the prefix given by getPropertyName(), apply getOperation() to { suffix( s ), value } and add the result to an Object[] which forms the result of apply. Returns null if there are no matches.
        Specified by:
        apply in interface ParserAction
        Specified by:
        apply in class ParserActionBase
        Parameters:
        props - properties to apply action to
        Returns:
        result of action