|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.ejen.ext.Properties
Properties utility (static methods).
| Usage (XSL stylesheet) |
|---|
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
...
xmlns:pro="org.ejen.ext.Properties"
exclude-result-prefixes="pro ..."
version="1.0">
<xsl:output method="xml" encoding="iso-8859-1"/>
<xsl:template match="ejen">
<xsl:copy-of select="pro: |
Properties| Constructor Summary | |
protected |
Properties()
Protected constructor (prevents instanciation). |
| Method Summary | |
static NodeSet |
getSystemProperties(ExpressionContext context)
Returns a NodeSet that contains system properties. |
static NodeSet |
load(ExpressionContext context,
String fileName)
Loads a properties file and returns it as a NodeSet. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Properties()
| Method Detail |
public static NodeSet getSystemProperties(ExpressionContext context)
<xsl:value-of select="pro:getSystemProperties()"/> |
Returned NodeSet contains a set of property Nodes with the following format:
<property>
<name><![CDATA[java.runtime.name]]></name>
<value><![CDATA[Java(TM) 2 Runtime Environment, Standard Edition]]></value>
</property>
|
context - automatically passed by the xalan extension mechanism.
WrappedRuntimeException - DOM error or SecurityException.
public static NodeSet load(ExpressionContext context,
String fileName)
<xsl:value-of select="pro:load($file-name)"/> |
Returned NodeSet contains a set of property Nodes with the following format:
<property>
<name><![CDATA[path]]></name>
<value><![CDATA[../../ejen]]></value>
</property>
|
See Properties.load(java.io.InputStream).
context - automatically passed by the xalan extension mechanism.fileName - name of the file.
WrappedRuntimeException - DOM error or SecurityException.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||