Class PrefixFileMapper

  • All Implemented Interfaces:
    FileMapper

    public class PrefixFileMapper
    extends AbstractFileMapper
    A file mapper, which maps by adding a prefix.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ROLE_HINT
      The merge mappers role-hint: "prefix".
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMappedFileName​(java.lang.String name)
      Checks the input and returns it without modifications.
      static java.lang.String getMappedFileName​(java.lang.String prefix, java.lang.String name)
      Performs the mapping of a file name by adding a prefix.
      java.lang.String getPrefix()
      Returns the prefix to add.
      void setPrefix​(java.lang.String prefix)
      Sets the prefix to add.
      • Methods inherited from class java.lang.Object

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

      • ROLE_HINT

        public static final java.lang.String ROLE_HINT
        The merge mappers role-hint: "prefix".
        See Also:
        Constant Field Values
    • Constructor Detail

      • PrefixFileMapper

        public PrefixFileMapper()
    • Method Detail

      • getPrefix

        public java.lang.String getPrefix()
        Returns the prefix to add.
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
        Sets the prefix to add.
      • getMappedFileName

        public static java.lang.String getMappedFileName​(java.lang.String prefix,
                                                         java.lang.String name)
        Performs the mapping of a file name by adding a prefix.