|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.xml.WcmXSLUtil
Base class for UI Modules that do XSLT transformations.
Nested Class Summary | |
static class |
WcmXSLUtil.NodeSet
NodeSet is an implementation of the org.w3c.dom.NodeList interface, representing a collection of XML DOM Nodes. |
Constructor Summary | |
WcmXSLUtil()
|
|
WcmXSLUtil(java.util.Locale locale)
|
Method Summary | |
static org.w3c.dom.NodeList |
convertToNodeList(java.util.List values)
Converts a List with String objects into a NodeList with text nodes. |
static org.w3c.dom.NodeList |
convertToNodeList(java.lang.String[] valuesArray)
Converts String array into a NodeList with text nodes. |
java.lang.Object |
getXML()
Returns the source XML in the format it was orignially set in setXML() method. |
java.lang.Object |
getXSLParameter(java.lang.String key)
Returns previously set XSL Parameter. |
void |
setClientLocale(java.util.Locale clientLocale)
Sets clientLocale parameter |
static void |
setRefreshInterval(long value)
Sets the update interval for XSL files |
void |
setXML(org.w3c.dom.Document document)
Sets the source XML as Document. |
void |
setXML(java.io.InputStream inputStream)
Sets the source XML as InputStream |
void |
setXML(java.io.Reader reader)
Sets the source XML as Reader |
void |
setXML(java.lang.String str)
Sets the source XML as String. |
void |
setXSL(java.lang.String xslFile)
Sets the XSL File to use for the transformation. |
void |
setXSLParameter(java.lang.String key,
boolean value)
Sets XSL Parameter as boolean. |
void |
setXSLParameter(java.lang.String key,
double value)
Sets XSL Parameter as double. |
void |
setXSLParameter(java.lang.String key,
org.w3c.dom.Node node)
Sets XSL Parameter as Node. |
void |
setXSLParameter(java.lang.String key,
org.w3c.dom.NodeList nodes)
Sets XSL Parameter as NodeList. |
void |
setXSLParameter(java.lang.String key,
java.lang.Object value)
Sets XSL Parameter as Object. |
void |
setXSLParameter(java.lang.String key,
java.lang.String value)
Sets XSL Parameter as String. |
void |
setXSLRelative(java.lang.String xslFile)
Sets the XSL File to use for the transformation. |
void |
tranform(java.io.Writer w)
Deprecated. Use transform(Writer w) |
void |
transform(java.io.Writer w)
Writes out the results of the transformation. |
org.w3c.dom.Document |
transformToDom()
Writes out the results of the transformation to XML DOM. |
java.lang.String |
transformToString()
Writes out the results of the transformation to a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WcmXSLUtil()
public WcmXSLUtil(java.util.Locale locale)
Method Detail |
public static void setRefreshInterval(long value)
value
- value in millisecondspublic final java.lang.Object getXML()
public final void setXSL(java.lang.String xslFile) throws java.lang.Exception
xslFile
- The fully qualified path to the XSL file.
java.lang.Exception
public final void setXSLRelative(java.lang.String xslFile) throws java.lang.Exception
xslFile
- The path to the XSL file as a resource within the web application (relative to the application root).
java.lang.Exception
public final void setXML(java.lang.String str)
str
- Source XML in a Stringpublic final void setXML(org.w3c.dom.Document document)
document
- Source XML in DOM Documentpublic final void setXML(java.io.InputStream inputStream)
inputStream
- InputStream object with the source XMLpublic final void setXML(java.io.Reader reader)
reader
- Reader object with the source XMLpublic void tranform(java.io.Writer w) throws java.lang.Exception
w
- Writer object where the results will be written
java.lang.Exception
- If there are any errors in the transformationpublic void transform(java.io.Writer w) throws java.lang.Exception
w
- Writer object where the results will be written
java.lang.Exception
- If there are any errors in the transformationpublic org.w3c.dom.Document transformToDom() throws java.lang.Exception
java.lang.Exception
- If there were any errors in the transformation.public java.lang.String transformToString() throws java.lang.Exception
java.lang.Exception
- If there were any errors in the transformation.public final void setXSLParameter(java.lang.String key, boolean value)
key
- Keyvalue
- Boolean valuepublic final void setXSLParameter(java.lang.String key, double value)
key
- Keyvalue
- Double valuepublic final void setXSLParameter(java.lang.String key, org.w3c.dom.NodeList nodes)
key
- Keynodes
- NodeList valuepublic final void setXSLParameter(java.lang.String key, org.w3c.dom.Node node)
key
- Keynode
- Node valuepublic final void setXSLParameter(java.lang.String key, java.lang.Object value)
key
- Keyvalue
- Object valuepublic final void setXSLParameter(java.lang.String key, java.lang.String value)
key
- Keyvalue
- String valuepublic final java.lang.Object getXSLParameter(java.lang.String key)
key
- parameter name
public final void setClientLocale(java.util.Locale clientLocale)
clientLocale
- objectpublic static final org.w3c.dom.NodeList convertToNodeList(java.lang.String[] valuesArray)
valuesArray
- A string array to be converted
public static final org.w3c.dom.NodeList convertToNodeList(java.util.List values)
values
- A List of String objects to be converted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |