public abstract class AbstractReader extends Object implements Reader
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReader() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFilePath(org.seamless.xhtml.XHTMLElement parent,
CitationAnchor citation,
File file)
Appends a new child element containing the file path of the citation.
|
protected void |
appendTitle(org.seamless.xhtml.XHTMLElement parent,
String titleString)
Appends a new child element to the given element, wrapping the title string.
|
org.seamless.xhtml.XHTMLParser |
getParser() |
XPath |
getXPath() |
protected boolean |
isGenerateId(Context context) |
protected File |
resolveFile(String path,
File[] sourceDirectories)
Resolves a file with the given path.
|
public org.seamless.xhtml.XHTMLParser getParser()
public XPath getXPath()
protected File resolveFile(String path, File[] sourceDirectories)
First, the given path is resolved against the given source directories. If no file can be found in any source directory matching the path, a classpath lookup is attempted.
path - The path of the file to be resolved.sourceDirectories - The source directories of any file.protected void appendTitle(org.seamless.xhtml.XHTMLElement parent,
String titleString)
parent - The parent element to which the title child element is appended.titleString - The title string, any XHTML elements within will be parsed.protected void addFilePath(org.seamless.xhtml.XHTMLElement parent,
CitationAnchor citation,
File file)
parent - The parent element to which the file path child element is appended.citation - The anchor is checked for the option if a file path should be added.file - The actual file path.protected boolean isGenerateId(Context context)
Copyright © 2015 4th Line GmbH, Switzerland. All Rights Reserved.