public class FileInclusion extends ContentElement
| Constructor and Description |
|---|
FileInclusion(java.lang.String docPath,
java.lang.String relativeFilePath,
int sectionLevel,
int startIndex,
int endIndex,
DiagCollector diagCollector,
Location sourceLocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String message,
java.lang.Object... params)
Reports error message.
|
java.lang.String |
getContent()
Returns the content of included file if file path is valid.
|
int |
getEndIndex()
The end index (exclusive) of the content the node represents from the source.
|
java.lang.String |
getFileName()
Returns the included file name.
|
java.lang.String |
getRelativeFilePath()
Returns the included file path relative to the root of data files.
|
int |
getSectionLevel()
Returns the section level the file should be included.
|
int |
getStartIndex()
The start index (inclusive) of the content the node represents from the source.
|
public FileInclusion(java.lang.String docPath,
java.lang.String relativeFilePath,
int sectionLevel,
int startIndex,
int endIndex,
DiagCollector diagCollector,
Location sourceLocation)
public java.lang.String getRelativeFilePath()
public java.lang.String getFileName()
@Nullable public java.lang.String getContent()
getContent in class ContentElementpublic int getSectionLevel()
public int getStartIndex()
public int getEndIndex()
public void error(java.lang.String message,
java.lang.Object... params)