public class FileLinkDefinitionLord extends Object
| Constructor and Description |
|---|
FileLinkDefinitionLord() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFileExtension(String extension,
String lineNumberDelimiter)
Call this to add file extensions to look for in the output.
|
void |
addPrefixedFileLink(String name,
String prefix,
String extension,
String lineNumberDelimiter)
Creates a file link definition to find file paths in the output that have a known prefix and extension.
|
List<String> |
getFileExtensions() |
List<FileLinkDefinition> |
getFileLinkDefinitions() |
FileLinkDefinition |
getMatchingFileLinkDefinition(String text)
This returns the FileLinkDefinition whose search pattern 'matches' (as in 'finds', not 'equals') the specified text.
|
Pattern |
getSearchPattern() |
public void addFileExtension(String extension, String lineNumberDelimiter)
extension - the file extensionlineNumberDelimiter - optional delimiter text for line number. Whatever is after this will be assumed to be a line number. We'll only parse the numbers after this so there can be other
stuff after the line number. Pass in null to ignore.public void addPrefixedFileLink(String name, String prefix, String extension, String lineNumberDelimiter)
name - the name of this file link definition. Used by tests mostly.prefix - the text that is before the file path. It should be enough to make it fairly uniqueextension - the expected file extension. If we don't find this extension, we do not consider the text a file's path. If there are multiple extensions, you'll have to add multiples of
these.lineNumberDelimiter - optional delimiter text for line number. Whatever is after this will be assumed to be a line number. We'll only parse the numbers after this so there can be other
stuff after the line number. Pass in null to ignore.public List<String> getFileExtensions()
public List<FileLinkDefinition> getFileLinkDefinitions()
public FileLinkDefinition getMatchingFileLinkDefinition(String text)
text - the text to use to find a match.public Pattern getSearchPattern()
Copyright © 2013. All rights reserved