Class TokenValueMapFactory
- java.lang.Object
-
- com.google.code.maven_replacer_plugin.TokenValueMapFactory
-
public class TokenValueMapFactory extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
COMMENT_PREFIX
private FileUtils
fileUtils
private static char
SEPARATOR
private static char
SEPARATOR_ESCAPER
-
Constructor Summary
Constructors Constructor Description TokenValueMapFactory(FileUtils fileUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendReplacement(java.util.List<Replacement> replacements, java.lang.String fragment, boolean unescape, java.lang.String encoding)
private java.lang.String
getNoValueErrorMsgFor(java.lang.String line)
private boolean
ignoreFragment(java.lang.String line, boolean commentsEnabled)
private boolean
isSeparatorAt(int i, java.lang.String line)
java.util.List<Replacement>
replacementsForFile(java.lang.String tokenValueMapFile, boolean commentsEnabled, boolean unescape, java.lang.String encoding)
java.util.List<Replacement>
replacementsForVariable(java.lang.String variable, boolean commentsEnabled, boolean unescape, java.lang.String encoding)
-
-
-
Field Detail
-
SEPARATOR_ESCAPER
private static final char SEPARATOR_ESCAPER
- See Also:
- Constant Field Values
-
SEPARATOR
private static final char SEPARATOR
- See Also:
- Constant Field Values
-
COMMENT_PREFIX
private static final java.lang.String COMMENT_PREFIX
- See Also:
- Constant Field Values
-
fileUtils
private final FileUtils fileUtils
-
-
Constructor Detail
-
TokenValueMapFactory
public TokenValueMapFactory(FileUtils fileUtils)
-
-
Method Detail
-
replacementsForVariable
public java.util.List<Replacement> replacementsForVariable(java.lang.String variable, boolean commentsEnabled, boolean unescape, java.lang.String encoding)
-
replacementsForFile
public java.util.List<Replacement> replacementsForFile(java.lang.String tokenValueMapFile, boolean commentsEnabled, boolean unescape, java.lang.String encoding) throws java.io.IOException
- Throws:
java.io.IOException
-
appendReplacement
private void appendReplacement(java.util.List<Replacement> replacements, java.lang.String fragment, boolean unescape, java.lang.String encoding)
-
isSeparatorAt
private boolean isSeparatorAt(int i, java.lang.String line)
-
getNoValueErrorMsgFor
private java.lang.String getNoValueErrorMsgFor(java.lang.String line)
-
ignoreFragment
private boolean ignoreFragment(java.lang.String line, boolean commentsEnabled)
-
-