Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jxbeans
Class AbstractTransformerJXBean  view AbstractTransformerJXBean download AbstractTransformerJXBean.java

java.lang.Object
  extended byorg.jxbeans.AbstractJXBean
      extended byorg.jxbeans.AbstractDocumentSource
          extended byorg.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:

The precedence of usage of the transformation sheet source is:

  1. File (if the Writer is null)
  2. file name (if the File is null)
  3. URL (if the file name is null)

Since:
1.0
Version:
1.0

Field Summary
private  java.io.File transformationFile
           
private  java.lang.String transformationFileName
           
private  java.net.URL transformationURL
           
private  javax.xml.transform.Transformer transformer
           
private  javax.xml.transform.TransformerFactory transformerFactory
           
 
Fields inherited from class org.jxbeans.AbstractDocumentSource
listeners
 
Fields inherited from class org.jxbeans.AbstractJXBean
 
Constructor Summary
AbstractTransformerJXBean()
           
 
Method Summary
 java.io.File getTransformationFile()
           
 java.lang.String getTransformationFileName()
           
 java.net.URL getTransformationURL()
           
protected  javax.xml.transform.Transformer getTransformer()
          A method for subclasses to obtain a Transformer, using the rules described in this classes description.
 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.
 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.
 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.
 
Methods inherited from class org.jxbeans.AbstractDocumentSource
addDocumentReadyListener, forwardDocument, forwardDocument, getDocumentReadyListeners, logDocument, removeDocumentReadyListener
 
Methods inherited from class org.jxbeans.AbstractJXBean
getName, logErrorAndRaiseException, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AbstractTransformerJXBean

public AbstractTransformerJXBean()
Method Detail

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