public abstract class PIParserBase extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
PIParserBase(String target)
Creates the PI parser with the specified target name.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAttribute(ProcessingInstruction pi,
String name,
boolean required)
Extracts an attribute from a processing instruction's data where the data is formatted as a
space-delimited list of key-value pairs.
|
String |
getTarget()
Returns the processing instruction's target.
|
abstract void |
parse(ProcessingInstruction pi,
PageElement element)
Parses a processing instruction.
|
protected PIParserBase(String target)
target - This is the name of the target of the processing instruction.public String getTarget()
public abstract void parse(ProcessingInstruction pi, PageElement element)
pi - The processing instruction.element - The enclosing page element.protected String getAttribute(ProcessingInstruction pi, String name, boolean required)
pi - The processing instruction.name - The attribute's key.required - If true and the attributes is not found, an exception is throw.required parameter is true, in which case an exception is thrown.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.