|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.Transformation
jd.xml.xslt.AbstractStylesheet
A XSLT stylesheet base class.
Field Summary | |
protected Hashtable |
decimalFormatSymbols_
|
protected Hashtable |
keys_
|
protected MessageListener |
messageListener_
|
protected NodeNamePool |
nodeNamePool_
|
protected OutputFormat |
outputFormat_
|
protected XsltSecurityManager |
securityManager_
|
protected VerboseLog |
verboseLog_
|
protected int |
warningLevel_
|
Constructor Summary | |
AbstractStylesheet()
Create a Stylesheet. |
Method Summary | |
NodeNamePool |
getNodeNamePool()
Return the NodeNamePool of the stylesheet. |
OutputFormat |
getOutputFormat()
Return the OutputFormat. |
protected abstract boolean |
isSetup()
Test if the stylesheet has been initialized. |
void |
setMessageListener(MessageListener listener)
Specify a message listener that gets invoked if a xsl:message instruction is processed. |
boolean |
setParameter(String name,
Object value)
Set the value of a top-level parameter. |
boolean |
setParameter(String namespaceUri,
String name,
Object value)
Set the value of a top-level parameter with a qualified name. |
protected abstract boolean |
setParameterInternal(String name,
XObject value)
Set the value of an global parameter. |
void |
setSecurityManager(XsltSecurityManager manager)
Set the security manager of the stylesheet. |
void |
setVerboseLog(VerboseLog log)
Set the verbose log. |
void |
setWarningLevel(int warningLevel)
Set the warning level. |
void |
transform(XmlSource source,
XsltResult result,
int repeat)
Transform the source to the result. |
protected abstract void |
transformInternal(XmlSource source,
XsltResult result,
int repeat)
|
Methods inherited from class jd.xml.xslt.Transformation |
clearParameters, setEntityResolver, setTrace, setUriResolver, setValidate, setVerbose, transform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Hashtable keys_
protected Hashtable decimalFormatSymbols_
protected MessageListener messageListener_
protected NodeNamePool nodeNamePool_
protected VerboseLog verboseLog_
protected int warningLevel_
protected XsltSecurityManager securityManager_
protected OutputFormat outputFormat_
Constructor Detail |
public AbstractStylesheet()
Method Detail |
protected abstract boolean isSetup()
public void setWarningLevel(int warningLevel)
setWarningLevel
in class Transformation
public void setVerboseLog(VerboseLog log)
setVerboseLog
in class Transformation
public void setMessageListener(MessageListener listener)
setMessageListener
in class Transformation
public boolean setParameter(String name, Object value)
setParameter
in class Transformation
name
- the parameter namevalue
- the parameter value
public boolean setParameter(String namespaceUri, String name, Object value)
name
- the namespace uri of the parameter name.value
- the parameter value
protected abstract boolean setParameterInternal(String name, XObject value)
public OutputFormat getOutputFormat()
getOutputFormat
in class Transformation
public void setSecurityManager(XsltSecurityManager manager)
setSecurityManager
in class Transformation
SecurityException
- thrown if the manager can not be replaced.public NodeNamePool getNodeNamePool()
getNodeNamePool
in class Transformation
public void transform(XmlSource source, XsltResult result, int repeat) throws SAXException, IOException, XsltException
transform
in class Transformation
source
- the transformation sourceresult
- the transformation resultrepeat
- repeat the transformation n times. A repeat value greater
1 is used for timing purpose and may not be supported
by the transformation
IOException
- if an I/O error occurrs
SAXException
- if the source document cannot be parsed
XsltException
- if a transformation error occurrsprotected abstract void transformInternal(XmlSource source, XsltResult result, int repeat) throws Exception
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |