public class HTPartStringFromPath extends AbstractHTMLTransformerFromPath
Constructor and Description |
---|
HTPartStringFromPath(String keyword)
Attention: when using this constructor, you have to call
setFiles() or setCodeFileContent() manually.
|
HTPartStringFromPath(String keyword,
File folder)
Initializes given folder.
|
HTPartStringFromPath(String keyword,
File[] files_or_folders)
Initializes given files or folders.
|
HTPartStringFromPath(String keyword,
String folder)
Initializes given folder.
|
HTPartStringFromPath(String keyword,
String[] files_or_folders)
Initializes given files or folders.
|
Modifier and Type | Method and Description |
---|---|
Map<String,ArrayList<String>> |
getCodeFileContent()
Returns codeFileContent, which holds the line-wise content of the
source code files specified by every node.
|
ArrayList<String> |
getCodeFileContentForKey(String sourceCodeFile)
Returns line-wise content of the specified file.
|
String |
getHTMLforNode(Node node)
Takes some code positions from the given node and extracts the
corresponding string from a file specified by 'SourceCodeFile'
in the node.
|
void |
setCodeFileContent(Map<String,ArrayList<String>> codeFileContent)
Sets codeFileContent, which holds the line-wise content of the
source code files specified by every node.
|
getFiles, setFiles
getKeyword
public HTPartStringFromPath(String keyword)
keyword
- the keyword, as it should appear in the table.public HTPartStringFromPath(String keyword, String[] files_or_folders)
keyword
- the keyword, as it should appear in the table.files_or_folders
- Paths to source code files or
a directory/directories containing such files.public HTPartStringFromPath(String keyword, String folder)
keyword
- the keyword, as it should appear in the table.folder
- Paths a directory containing such source code files.public HTPartStringFromPath(String keyword, File[] files_or_folders)
keyword
- the keyword, as it should appear in the table.files_or_folders
- Source code files or
a directory/directories containing such files.public ArrayList<String> getCodeFileContentForKey(String sourceCodeFile)
sourceCodeFile
- File whose content should be returned.public Map<String,ArrayList<String>> getCodeFileContent()
public void setCodeFileContent(Map<String,ArrayList<String>> codeFileContent)
codeFileContent
- the new CodeFileContent that will be used.public String getHTMLforNode(Node node)
getHTMLforNode
in interface SpecialHTMLTransformer
getHTMLforNode
in class AbstractHTMLTransformerFromPath
node
- a node from some sequence that can be transformed according
to this ExternalContent.Copyright © 2014. All rights reserved.