Class AbstractDSLMappingEntry

    • Constructor Detail

      • AbstractDSLMappingEntry

        public AbstractDSLMappingEntry()
    • Method Detail

      • getMappingKey

        public java.lang.String getMappingKey()
        Description copied from interface: DSLMappingEntry
        Returns the key of this mapping, i.e., the source that needs to be translated
        Specified by:
        getMappingKey in interface DSLMappingEntry
        Returns:
      • setMappingKey

        public void setMappingKey​(java.lang.String key)
        Specified by:
        setMappingKey in interface DSLMappingEntry
        Parameters:
        key - the key to set
      • setMappingValue

        public void setMappingValue​(java.lang.String value)
        Specified by:
        setMappingValue in interface DSLMappingEntry
        Parameters:
        value - the value to set
      • setKeyPattern

        public void setKeyPattern​(java.util.regex.Pattern keyPattern)
      • getKeyPattern

        public java.util.regex.Pattern getKeyPattern()
        Description copied from interface: DSLMappingEntry
        Returns the compiled pattern based on the given MappingKey
        Specified by:
        getKeyPattern in interface DSLMappingEntry
        Returns:
        the keyPattern
      • getValuePattern

        public java.lang.String getValuePattern()
        Description copied from interface: DSLMappingEntry
        Returns the transformed mapping value using place holders for variables
        Specified by:
        getValuePattern in interface DSLMappingEntry
        Returns:
        the valuePattern
      • setValuePattern

        public void setValuePattern​(java.lang.String valuePattern)
      • getVariables

        public java.util.Map<java.lang.String,​java.lang.Integer> getVariables()
        Description copied from interface: DSLMappingEntry
        Returns the list of variables found in the given pattern key in the same order they were found
        Specified by:
        getVariables in interface DSLMappingEntry
        Returns:
        the variables
      • setVariables

        public void setVariables​(java.util.Map<java.lang.String,​java.lang.Integer> variables)
      • toPatternString

        public java.lang.String toPatternString()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • 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
      • getErrors

        public java.util.List getErrors()
        Description copied from interface: DSLMappingEntry
        Returns a list of errors found in this mapping
        Specified by:
        getErrors in interface DSLMappingEntry
        Returns: