|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pz.platypus.commands.UrlWithCoverText
public abstract class UrlWithCoverText
Abstract portion of command for URL with cover text
| Field Summary | |
|---|---|
private java.lang.String |
root
|
private int |
tokensToSkip
how many tokens do we consume reading the cover text? Should generally be 2. |
| Constructor Summary | |
|---|---|
UrlWithCoverText()
|
|
| Method Summary | |
|---|---|
(package private) java.lang.String |
getCoverText(OutputContextable context,
int startingNum)
Go down the list of tokens looking for text and a [-url] token pair. |
java.lang.String |
getRoot()
get the root of the command. |
protected abstract void |
outputUrl(OutputContextable context,
java.lang.String url,
java.lang.String coverText)
|
int |
process(OutputContextable context,
Token tok,
int tokNum)
method for processing this command in the output plugin. |
private void |
showNoCoverTextlErrorMsg(Token tok,
OutputContextable context)
|
private void |
showNullUrlErrorMsg(Token tok,
OutputContextable context)
Show error message, giving location in Platypus input file |
private void |
showUnclosedUrlCoverTextErrorMsg(Token tok,
GDD gdd)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.lang.String root
private int tokensToSkip
| Constructor Detail |
|---|
public UrlWithCoverText()
| Method Detail |
|---|
protected abstract void outputUrl(OutputContextable context,
java.lang.String url,
java.lang.String coverText)
public int process(OutputContextable context,
Token tok,
int tokNum)
OutputCommandable
process in interface OutputCommandablecontext - the context/state of the output documenttok - the command token as found in the token streamtokNum - the number of the token in the token list
java.lang.String getCoverText(OutputContextable context,
int startingNum)
context - the PDF document datastartingNum - the number of the current token in the list
public java.lang.String getRoot()
OutputCommandable
getRoot in interface OutputCommandable
private void showNullUrlErrorMsg(Token tok,
OutputContextable context)
tok - contains the location datacontext - contains the location of the logger and literals file
private void showNoCoverTextlErrorMsg(Token tok,
OutputContextable context)
private void showUnclosedUrlCoverTextErrorMsg(Token tok,
GDD gdd)
|
Platypus | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||