|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.adobe.idml.PackageTransformer
public class PackageTransformer
Contains overloaded transform methods. This class is used to perform all XSL transformations for the IDML Tools samples.
| Constructor Summary | |
|---|---|
PackageTransformer()
|
|
| Method Summary | |
|---|---|
protected void |
afterTransform(java.lang.String idmlInput,
java.io.File inputDir)
A hook method into the XSL transformation with the String, String, String, ArrayList signature which is called after the transforms take place. |
protected void |
beforeTransform(java.lang.String idmlInput,
java.io.File inputDir)
A hook method into the XSL transformation with the String, String, String, ArrayList signature which is called before the transforms take place. |
protected boolean |
isInExcludeList(java.lang.String xmlFile)
A hook method into the XSL transformation with the String, String, String, ArrayList signature. |
void |
transform(PackageXslLocator xslLoc,
PackageXmlLocator xmlLoc,
java.util.ArrayList<XslParam> params)
Performs XSL transformations on all XML files in the IDML input file. |
void |
transform(java.lang.String xslDir,
java.lang.String idmlInput,
java.lang.String idmlOutput,
java.util.ArrayList<XslParam> params)
Performs a set of XSL transformations on an IDML input file or directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PackageTransformer()
| Method Detail |
|---|
public void transform(java.lang.String xslDir,
java.lang.String idmlInput,
java.lang.String idmlOutput,
java.util.ArrayList<XslParam> params)
throws java.lang.Exception
xslDir - Contains the XSL StyleSheets needed to transform the IDML file.idmlInput - The IDML file or directory to be transformed.idmlOutput - The path to the IDML file to which the transformations changes should be written. Or null if no changes should be written.params - A list of key/value pairs containing parameter values required by the XSL StyleSheets.
java.lang.Exception
public void transform(PackageXslLocator xslLoc,
PackageXmlLocator xmlLoc,
java.util.ArrayList<XslParam> params)
throws java.io.IOException,
javax.xml.transform.TransformerFactoryConfigurationError,
javax.xml.transform.TransformerException
xslLoc - The PackageXslLocator object used to find the XSL files needed in the transformation.xmlLoc - The PackageXmlLocator object used to find the XML files needed in the transformation.params - A list of key/value pairs containing parameter values required by the XSL StyleSheets.
java.io.IOException
javax.xml.transform.TransformerException
javax.xml.transform.TransformerFactoryConfigurationErrorprotected boolean isInExcludeList(java.lang.String xmlFile)
xmlFile - The XML file to be tested.
protected void beforeTransform(java.lang.String idmlInput,
java.io.File inputDir)
throws java.lang.Exception
idmlInput - The path to the IDML file being transformed.inputDir - The file representing the expanded IDML directory.
java.lang.Exception
protected void afterTransform(java.lang.String idmlInput,
java.io.File inputDir)
throws java.io.IOException
inputDir - The file representing the expanded IDML directory.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||