|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.Transformation
A Transformation takes an xml document as input and transforms it into something other. Transformation serves as a common base class for Stylesheet, TransformationChain and IdentityTransformation.
Constructor Summary | |
Transformation()
|
Method Summary | |
abstract void |
clearParameters()
Clear the value of a all top-level parameters. |
abstract NodeNamePool |
getNodeNamePool()
Return the NodeNamePool of the transformation. |
abstract OutputFormat |
getOutputFormat()
Return the OutputFormat. |
abstract void |
setEntityResolver(EntityResolver entityResolver)
Set a EntityResolver. |
abstract void |
setMessageListener(MessageListener messageListener)
Set a MessageListener. |
abstract boolean |
setParameter(String name,
Object value)
Set the value of a top-level parameter. |
abstract void |
setSecurityManager(XsltSecurityManager securityManager)
Set the SecurityManager. |
abstract void |
setTrace(boolean trace)
Set if transformations should be traced. |
abstract void |
setUriResolver(UriResolver uriResolver)
Set a UriResolver. |
abstract void |
setValidate(boolean validate)
Set if xml documents should be validated. |
void |
setVerbose(boolean verbose)
Turn verbose mode on or off. |
abstract void |
setVerboseLog(VerboseLog log)
Set the verbose log. |
abstract void |
setWarningLevel(int warningLevel)
Set the warning level. |
void |
transform(XmlSource source,
XsltResult result)
Transform the source to the result. |
abstract void |
transform(XmlSource source,
XsltResult result,
int repeat)
Transform the source to the result. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Transformation()
Method Detail |
public final void transform(XmlSource source, XsltResult result) throws IOException, SAXException, XsltException
source
- the transformation sourceresult
- the transformation result
IOException
- if an I/O error occurrs
SAXException
- if the source document cannot be parsed
XsltException
- if a transformation error occurrspublic abstract void transform(XmlSource source, XsltResult result, int repeat) throws IOException, SAXException, XsltException
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 occurrspublic abstract boolean setParameter(String name, Object value)
name
- the parameter namevalue
- the parameter value
public abstract void clearParameters()
public abstract void setWarningLevel(int warningLevel)
public abstract void setValidate(boolean validate)
public abstract void setTrace(boolean trace)
public abstract void setUriResolver(UriResolver uriResolver)
public abstract void setMessageListener(MessageListener messageListener)
public abstract void setEntityResolver(EntityResolver entityResolver)
public abstract OutputFormat getOutputFormat()
public abstract void setSecurityManager(XsltSecurityManager securityManager)
public abstract NodeNamePool getNodeNamePool()
public final void setVerbose(boolean verbose)
public abstract void setVerboseLog(VerboseLog log)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |