fr.tireme.schemadoc.transform
Class XSLTTransformationsManager

java.lang.Object
  extended by fr.tireme.schemadoc.transform.XSLTTransformationsManager

public class XSLTTransformationsManager
extends java.lang.Object

Transformation wrapper for all three XSLT needed transformations

Since:
16 novembre 2003
Version:
2.0
Author:
Pierre Attar pat@tireme.fr Copyright (c) Tireme 2002, 2003, 2004, 2005

Field Summary
static int DOCBOOK2F0_TRANSFORMATION
          Identify transformation from docbook intermediate to FO.
static int DOCBOOK2HTML_TRANSFORMATION
          Identify transformation from docbook intermediate to HTML.
static int DOCBOOK2JAVAHELP_TRANSFORMATION
          Identify transformation from docbook intermediate to javahelp.
static int DOCBOOK2WORD_TRANSFORMATION
          Identify transformation from docbook intermediate to Word ML.
static int ENHENCED_SD2DOCBOOK_TRANSFORMATION
          Identify transformation from schmeaDoc to docbook intermediate.
 
Constructor Summary
XSLTTransformationsManager(SDOneConfigParams gui)
          Prepare an intermediate XSLT transformation from schemadoc to docbook.
XSLTTransformationsManager(SDOneConfigParams gui, int transfoType)
          Prepare all XSLT transformation, either initial for docbook and later for HTML, FO.
 
Method Summary
 org.w3c.dom.Document transform(org.w3c.dom.Document doc)
          Launch the prepared XSLT transformation using a file input
 org.w3c.dom.Document transform(org.w3c.dom.Document doc, MyObservable obs)
           
 org.w3c.dom.Document transform(java.io.File docFile)
          Launch the prepared XSLT transformation using a file input
 org.w3c.dom.Document transform(java.io.File docFile, MyObservable obs)
           
 org.w3c.dom.Document transform(java.lang.String docFile)
          Launch the prepared XSLT transformation using a file input
 org.w3c.dom.Document transform(java.lang.String docFile, MyObservable obs)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENHENCED_SD2DOCBOOK_TRANSFORMATION

public static final int ENHENCED_SD2DOCBOOK_TRANSFORMATION
Identify transformation from schmeaDoc to docbook intermediate.

See Also:
Constant Field Values

DOCBOOK2HTML_TRANSFORMATION

public static final int DOCBOOK2HTML_TRANSFORMATION
Identify transformation from docbook intermediate to HTML.

See Also:
Constant Field Values

DOCBOOK2F0_TRANSFORMATION

public static final int DOCBOOK2F0_TRANSFORMATION
Identify transformation from docbook intermediate to FO.

See Also:
Constant Field Values

DOCBOOK2JAVAHELP_TRANSFORMATION

public static final int DOCBOOK2JAVAHELP_TRANSFORMATION
Identify transformation from docbook intermediate to javahelp.

See Also:
Constant Field Values

DOCBOOK2WORD_TRANSFORMATION

public static final int DOCBOOK2WORD_TRANSFORMATION
Identify transformation from docbook intermediate to Word ML.

See Also:
Constant Field Values
Constructor Detail

XSLTTransformationsManager

public XSLTTransformationsManager(SDOneConfigParams gui)
                           throws SDExcept
Prepare an intermediate XSLT transformation from schemadoc to docbook.

Parameters:
gui - all information coming from the GUI main interface
Throws:
SDExcept - Description of Exception

XSLTTransformationsManager

public XSLTTransformationsManager(SDOneConfigParams gui,
                                  int transfoType)
                           throws SDExcept
Prepare all XSLT transformation, either initial for docbook and later for HTML, FO.

Parameters:
gui - Description of Parameter
transfoType - Description of Parameter
Throws:
SDExcept - Description of Exception
Method Detail

transform

public org.w3c.dom.Document transform(java.io.File docFile)
                               throws SDExcept
Launch the prepared XSLT transformation using a file input

Parameters:
docFile - the file path
Returns:
transformed document
Throws:
SDExcept

transform

public org.w3c.dom.Document transform(java.io.File docFile,
                                      MyObservable obs)
                               throws SDExcept
Parameters:
docFile - File
obs - MyObservable
Returns:
org.w3c.dom.Document
Throws:
SDExcept

transform

public org.w3c.dom.Document transform(java.lang.String docFile)
                               throws SDExcept
Launch the prepared XSLT transformation using a file input

Parameters:
docFile - the file path
Returns:
transformed document
Throws:
SDExcept

transform

public org.w3c.dom.Document transform(java.lang.String docFile,
                                      MyObservable obs)
                               throws SDExcept
Parameters:
docFile - String
obs - MyObservable
Returns:
org.w3c.dom.Document
Throws:
SDExcept

transform

public org.w3c.dom.Document transform(org.w3c.dom.Document doc)
                               throws SDExcept
Launch the prepared XSLT transformation using a file input

Parameters:
doc - the file path
Returns:
transformed document
Throws:
SDExcept

transform

public org.w3c.dom.Document transform(org.w3c.dom.Document doc,
                                      MyObservable obs)
                               throws SDExcept
Parameters:
doc - Document
obs - MyObservable
Returns:
org.w3c.dom.Document
Throws:
SDExcept