|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nu.staldal.lsp.LSPPageBase
public abstract class LSPPageBase
Base class for compiled LSP pages.
This class is not part of the public API, it should only be used by compiled LSP pages. It is declared public since compiled LSP pages needs to access it.
Field Summary | |
---|---|
protected java.lang.String[] |
compileDependentFiles
|
protected java.lang.String |
compiledVersionName
|
protected int |
compiledVersionNum
|
protected boolean |
compileDynamic
|
protected java.lang.String[] |
extLibsClassNames
|
protected java.lang.String[] |
extLibsURLs
|
protected java.util.Properties |
outputProperties
|
protected java.lang.String |
pageName
|
protected long |
timeCompiled
|
Fields inherited from interface nu.staldal.lsp.LSPPage |
---|
LSP_VERSION_NAME, LSP_VERSION_NUM |
Constructor Summary | |
---|---|
protected |
LSPPageBase(java.lang.String[] extLibsURLs,
java.lang.String[] extLibsClassNames,
java.lang.String[] compileDependentFiles,
boolean compileDynamic,
long timeCompiled,
java.lang.String pageName,
java.lang.String versionName,
int versionNum)
|
Method Summary | |
---|---|
protected abstract void |
_execute(org.xml.sax.ContentHandler sax,
nu.staldal.util.Environment<java.lang.String,java.lang.Object> env,
java.util.Map<java.lang.String,LSPExtLib> extLibs,
org.xml.sax.ContentHandler _sax,
org.xml.sax.helpers.AttributesImpl attrs)
|
protected static boolean |
compareEqual(java.lang.Object left,
java.lang.Object right)
|
protected static java.lang.Object |
convertObjectToLSP(java.lang.Object value)
|
protected static boolean |
convertToBoolean(java.lang.Object _value)
|
protected static boolean |
convertToBooleanAcceptNull(java.lang.Object _value)
|
protected static java.util.Collection<?> |
convertToList(java.lang.Object _value)
|
protected static double |
convertToNumber(java.lang.Object _value)
|
protected static java.lang.String |
convertToString(java.lang.Object _value)
|
protected static java.util.Map<?,?> |
convertToTuple(java.lang.Object _value)
|
protected static java.lang.Double |
doubleValueOf(double d)
|
void |
execute(org.xml.sax.ContentHandler sax,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.Object extContext)
Execute this LSP page and sends the output as SAX2 events to the supplied ContentHandler . |
protected static boolean |
fnContains(java.lang.String a,
java.lang.String b)
|
protected static java.lang.String |
fnNormalizeSpace(java.lang.String a)
|
protected static double |
fnRound(double a)
|
protected static java.util.Collection<java.lang.Double> |
fnSeq(double start,
double end,
double step)
|
protected static java.lang.String |
fnSubstring(java.lang.String a,
double bd)
|
protected static java.lang.String |
fnSubstring(java.lang.String a,
double bd,
double cd)
|
protected static java.lang.String |
fnSubstringAfter(java.lang.String a,
java.lang.String b)
|
protected static java.lang.String |
fnSubstringBefore(java.lang.String a,
java.lang.String b)
|
protected static java.lang.String |
fnTranslate(java.lang.String a,
java.lang.String b,
java.lang.String c)
|
java.lang.String[] |
getCompileDependentFiles()
Get a list of files which was imported with this page was compiled. |
protected static java.lang.Object |
getElementFromTuple(java.util.Map<?,?> tuple,
java.lang.String key)
|
protected static java.lang.Object |
getElementFromTupleAcceptNull(java.util.Map<?,?> tuple,
java.lang.String key)
|
java.util.Properties |
getOutputProperties()
Output properties to use then this page is serialized. |
java.lang.String |
getPageName()
Get the name of this page. |
long |
getTimeCompiled()
When this page was compiled. |
protected static java.lang.Object |
getVariableValue(nu.staldal.util.Environment<java.lang.String,java.lang.Object> env,
java.lang.String varName)
|
protected static java.lang.Object |
getVariableValueAcceptNull(nu.staldal.util.Environment<java.lang.String,java.lang.Object> env,
java.lang.String varName)
|
boolean |
isCompileDynamic()
Currently not used. |
protected static LSPExtLib |
lookupExtensionHandler(java.util.Map<java.lang.String,LSPExtLib> extLibs,
java.lang.String nsURI,
java.lang.String className)
|
protected static void |
outputStringWithoutCR(org.xml.sax.ContentHandler sax,
java.lang.String s,
boolean disableOutputEscaping)
|
protected void |
setOutputProperty(java.lang.String key,
java.lang.String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String[] extLibsURLs
protected final java.lang.String[] extLibsClassNames
protected final java.lang.String[] compileDependentFiles
protected final boolean compileDynamic
protected final long timeCompiled
protected final java.lang.String pageName
protected final java.lang.String compiledVersionName
protected final int compiledVersionNum
protected final java.util.Properties outputProperties
Constructor Detail |
---|
protected LSPPageBase(java.lang.String[] extLibsURLs, java.lang.String[] extLibsClassNames, java.lang.String[] compileDependentFiles, boolean compileDynamic, long timeCompiled, java.lang.String pageName, java.lang.String versionName, int versionNum)
Method Detail |
---|
protected final void setOutputProperty(java.lang.String key, java.lang.String value)
public final java.lang.String[] getCompileDependentFiles()
LSPPage
getCompileDependentFiles
in interface LSPPage
public final boolean isCompileDynamic()
LSPPage
isCompileDynamic
in interface LSPPage
true
if the page is compile dynamicpublic final long getTimeCompiled()
LSPPage
getTimeCompiled
in interface LSPPage
System.currentTimeMillis()
public final java.lang.String getPageName()
LSPPage
getPageName
in interface LSPPage
public final java.util.Properties getOutputProperties()
LSPPage
getOutputProperties
in interface LSPPage
public final void execute(org.xml.sax.ContentHandler sax, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.Object extContext) throws org.xml.sax.SAXException
LSPPage
ContentHandler
.
Does not output startDocument()
/endDocument()
events.
execute
in interface LSPPage
sax
- SAX2 ContentHandler
to send output toparams
- Parameters to the LSP pageextContext
- external context which will be passed to ExtLibs
org.xml.sax.SAXException
- may throw SAXException
protected static final LSPExtLib lookupExtensionHandler(java.util.Map<java.lang.String,LSPExtLib> extLibs, java.lang.String nsURI, java.lang.String className) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected static java.lang.Object convertObjectToLSP(java.lang.Object value)
protected static java.lang.String convertToString(java.lang.Object _value) throws LSPException
LSPException
protected static double convertToNumber(java.lang.Object _value) throws LSPException
LSPException
protected static boolean convertToBoolean(java.lang.Object _value) throws LSPException
LSPException
protected static boolean convertToBooleanAcceptNull(java.lang.Object _value) throws LSPException
LSPException
protected static java.util.Collection<?> convertToList(java.lang.Object _value) throws LSPException
LSPException
protected static java.util.Map<?,?> convertToTuple(java.lang.Object _value) throws LSPException
LSPException
protected static void outputStringWithoutCR(org.xml.sax.ContentHandler sax, java.lang.String s, boolean disableOutputEscaping) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected static java.lang.Double doubleValueOf(double d)
protected static java.lang.Object getElementFromTuple(java.util.Map<?,?> tuple, java.lang.String key) throws LSPException
LSPException
protected static java.lang.Object getElementFromTupleAcceptNull(java.util.Map<?,?> tuple, java.lang.String key)
protected static java.lang.Object getVariableValue(nu.staldal.util.Environment<java.lang.String,java.lang.Object> env, java.lang.String varName) throws LSPException
LSPException
protected static java.lang.Object getVariableValueAcceptNull(nu.staldal.util.Environment<java.lang.String,java.lang.Object> env, java.lang.String varName)
protected static boolean compareEqual(java.lang.Object left, java.lang.Object right) throws LSPException
LSPException
protected static boolean fnContains(java.lang.String a, java.lang.String b)
protected static java.lang.String fnSubstringBefore(java.lang.String a, java.lang.String b)
protected static java.lang.String fnSubstringAfter(java.lang.String a, java.lang.String b)
protected static java.lang.String fnSubstring(java.lang.String a, double bd)
protected static java.lang.String fnSubstring(java.lang.String a, double bd, double cd)
protected static java.lang.String fnNormalizeSpace(java.lang.String a)
protected static java.lang.String fnTranslate(java.lang.String a, java.lang.String b, java.lang.String c)
protected static double fnRound(double a)
protected static java.util.Collection<java.lang.Double> fnSeq(double start, double end, double step)
protected abstract void _execute(org.xml.sax.ContentHandler sax, nu.staldal.util.Environment<java.lang.String,java.lang.Object> env, java.util.Map<java.lang.String,LSPExtLib> extLibs, org.xml.sax.ContentHandler _sax, org.xml.sax.helpers.AttributesImpl attrs) throws org.xml.sax.SAXException, java.lang.IllegalArgumentException
org.xml.sax.SAXException
java.lang.IllegalArgumentException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |