org.jxbeans
Class AbstractTransformerJXBean

java.lang.Object
org.jxbeans.AbstractJXBean
org.jxbeans.AbstractDocumentSource
org.jxbeans.AbstractTransformerJXBean
- All Implemented Interfaces:
- DocumentSource, java.io.Serializable
- public abstract class AbstractTransformerJXBean
- extends AbstractDocumentSource
The AbstractTransformerJXBean class provides a framework for creating
other JXBeans that require the use of an XSLT transformer.
The source of the XSLT tranformation sheet can be set in one of three
ways, including:
- A
File object
- A file name (as a
String object)
- A
URL object
The precedence of usage of the transformation sheet source is:
File (if the Writer is null)
- file name (if the
File is null)
URL (if the file name is null)
- Since:
- 1.0
- Version:
- 1.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
transformationFile
private java.io.File transformationFile
transformationFileName
private java.lang.String transformationFileName
transformationURL
private java.net.URL transformationURL
transformerFactory
private transient javax.xml.transform.TransformerFactory transformerFactory
transformer
private transient javax.xml.transform.Transformer transformer
AbstractTransformerJXBean
public AbstractTransformerJXBean()
getTransformer
protected javax.xml.transform.Transformer getTransformer()
throws JXBeanException
- A method for subclasses to obtain a
Transformer, using the
rules described in this classes description.
- Since:
- 1.0
setTransformationFile
public void setTransformationFile(java.io.File aTransformationFile)
- Sets the
File of the XSLT transformation file or "style sheet"
to be used in transforming the incoming XML document.
- Since:
- 1.0
getTransformationFile
public java.io.File getTransformationFile()
- Since:
- 1.0
setTransformationFileName
public void setTransformationFileName(java.lang.String aTransformationFileName)
- Sets the file name of the XSLT transformation file or "style sheet"
to be used in transforming the incoming XML document.
- Since:
- 1.0
getTransformationFileName
public java.lang.String getTransformationFileName()
- Since:
- 1.0
setTransformationURL
public void setTransformationURL(java.net.URL aTransformationURL)
- Sets the
URL of the XSLT transformation file or "style sheet"
to be used in transforming the incoming XML document.
- Since:
- 1.0
getTransformationURL
public java.net.URL getTransformationURL()
- Since:
- 1.0