net.sf.saxon.option.jdom2

## Class JDOM2Transform

- java.lang.Object
- - net.sf.saxon.Transform
  - - net.sf.saxon.option.jdom2.JDOM2Transform

-     public class JDOM2Transform
      extends Transform

  Variant of command line net.sf.saxon.Transform do build the source document in JDOM2 and then proceed with the transformation. This class is provided largely for testing purposes.

- - ### Field Summary

    - ### Fields inherited from class net.sf.saxon.Transform

      `compilerInfo, config, repeat, showTime, useURLs`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `JDOM2Transform()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(String[] args)`
    `List` | `preprocess(List sources)` Preprocess the list of sources.

    - ### Methods inherited from class net.sf.saxon.Transform

      `applyLocalOptions, badUsage, doTransform, getConfiguration, initializeConfiguration, newController, quit, setFactoryConfiguration, setPermittedOptions`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JDOM2Transform

          public JDOM2Transform()

  - ### Method Detail

    - #### preprocess

          public List preprocess(List sources)
                          throws XPathException

      Description copied from class: `Transform`
      Preprocess the list of sources. This method exists so that it can be overridden in a subclass
      Overrides:
        `preprocess` in class `Transform`
      Parameters:
        `sources` - the list of Source objects
      Returns:
        a revised list of Source objects
      Throws:
        `XPathException`

    - #### main

          public static void main(String[] args)

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.