Interface StringSubstitutor

  • All Known Implementing Classes:
    StringSubstitutionEngine

    public interface StringSubstitutor
    An object which allows to set the custom behavior for string substitution operation and facilitate String substitution process.

    String substitution is a process of substituting a string in a file with another string.

    • Method Detail

      • setAttributePreprocessor

        void setAttributePreprocessor​(AttributePreprocessor attributePreprocessor)
        Set's the AttributePreprocessor to customize the substitution process. Attribute preprocessor takes care to retrieve the value of substitutable key.
        Parameters:
        attributePreprocessor - Custom implementation of AttributePreprocessor
      • setFileBackupLocation

        void setFileBackupLocation​(File backupLocation)
        TODO: Missing Implementation
        Parameters:
        backupLocation -
      • getDefaultProperties

        List<Property> getDefaultProperties​(PropertyType type)
        Get's the default Property for the given PropertyType, If the property type is null then all the default properties will be returned.
        Parameters:
        type - The type for which default properties has to be retrieved.
        Returns:
        List of default properties or empty list if no property found.
      • getStringSubsDefinition

        StringsubsDefinition getStringSubsDefinition()
        Get's the string-subs definition object. A StringSubsDefiniton object contains the details of component, groups and files used in substitution.

        NOTE: This object is updatable.

        Returns:
        Parsed string-subs configuration object.