Class ParserActionBase

    • Constructor Summary

      Constructors 
      Constructor Description
      ParserActionBase​(java.lang.String propertyName, boolean prefix, Operation operation, java.lang.String fieldName)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.Object apply​(java.util.Properties props)
      Apply this action to props and return the result.
      boolean equals​(java.lang.Object obj)  
      java.lang.String getFieldName()
      Return the field name in an object that is set with the result
      protected Operation getOperation()  
      java.lang.String getPropertyName()
      Return the property name or prefix for which this action is applied.
      int hashCode()  
      boolean isPrefix()
      Return whether this action is for an exact match or a prefix match (true).
      • Methods inherited from class java.lang.Object

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

      • propertyName

        private java.lang.String propertyName
      • prefix

        private boolean prefix
      • fieldName

        private java.lang.String fieldName
    • Constructor Detail

      • ParserActionBase

        public ParserActionBase​(java.lang.String propertyName,
                                boolean prefix,
                                Operation operation,
                                java.lang.String fieldName)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getPropertyName

        public java.lang.String getPropertyName()
        Description copied from interface: ParserAction
        Return the property name or prefix for which this action is applied.
        Specified by:
        getPropertyName in interface ParserAction
        Returns:
        the property name or prefix.
      • isPrefix

        public boolean isPrefix()
        Description copied from interface: ParserAction
        Return whether this action is for an exact match or a prefix match (true).
        Specified by:
        isPrefix in interface ParserAction
        Returns:
        true if this action is for an exact or prefix match.
      • getFieldName

        public java.lang.String getFieldName()
        Description copied from interface: ParserAction
        Return the field name in an object that is set with the result
        Specified by:
        getFieldName in interface ParserAction
        Returns:
        the field name
      • apply

        public abstract java.lang.Object apply​(java.util.Properties props)
        Description copied from interface: ParserAction
        Apply this action to props and return the result.
        Specified by:
        apply in interface ParserAction
        Parameters:
        props - properties to apply action to
        Returns:
        result of action
      • getOperation

        protected Operation getOperation()