|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.xsl.Processor
public abstract class Processor
Abstract class Processor
This class impelements the interface stylesheets. Additional 2 constructors
and a method convert2jdom is provided
| Field Summary | |
|---|---|
protected URL |
baseURI
the baseURI used to resolve relative URI's the baseURI for the stylesheets |
protected static boolean |
hasGeneratedSymbolImports
|
protected static Logger |
thisLogCat
Description of the Field |
| Constructor Summary | |
|---|---|
Processor()
Constructor set baseURI to the Manager's one |
|
Processor(String base)
Constructor |
|
Processor(URL baseURI)
Constructor |
|
| Method Summary | |
|---|---|
String |
getBaseURI()
get the baseURI stylesheets can be relative to |
abstract Templates |
loadTemplate(String stylesheet)
get a template for the given stylesheet if the wanted one already exists then return this one else create a new one an return it |
abstract void |
loadTemplateAsync(String stylesheet)
Loads a template asynchronously. |
void |
setBaseURI(String base)
set the baseURI stylesheets can be relative to |
void |
setBaseURI(URL base)
Sets the baseURI attribute of the Processor object |
abstract void |
transform(org.jdom.Document document,
OutputStream outStream,
String stylesheet,
Hashtable params)
transform a JDOM document by the given Stylesheet |
abstract void |
transform(org.jdom.Document document,
Result result,
String stylesheet,
Hashtable params)
transform a JDOM document by the given Stylesheet |
abstract void |
transform(org.jdom.Document document,
Writer writer,
String stylesheet,
Hashtable params)
transform a JDOM document by the given Stylesheet |
abstract void |
transform(InputStream inStream,
OutputStream outStream,
String stylesheet,
Hashtable params)
Deprecated. use transform(new StreamSource(inStream), new StreamResult(outStream), stylesheet, params)
instead |
abstract void |
transform(Source inputSource,
Result outputResult,
String stylesheet,
Hashtable params)
transform a xml document by the given Stylesheet |
abstract org.jdom.Document |
transform2Jdom(org.jdom.Document document,
String stylesheet,
Hashtable params)
transform a jdom document by the given Stylesheet Be aware that the resulting document has to be XML code to output a JDOOM document |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger thisLogCat
protected URL baseURI
the baseURI for the stylesheets
protected static boolean hasGeneratedSymbolImports
| Constructor Detail |
|---|
public Processor()
throws MalformedURLException
set baseURI to the Manager's one
MalformedURLException - Description of Exceptionpublic Processor(URL baseURI)
baseURI - Description of Parameter
public Processor(String base)
throws MalformedURLException
base - the base URI of the stylesheets
to use
MalformedURLException - Description of Exception| Method Detail |
|---|
public void setBaseURI(String base)
throws MalformedURLException
setBaseURI in interface Stylesheetsbase - the base URI of the stylesheets to use
MalformedURLException - If the base URI is malformedpublic void setBaseURI(URL base)
base - The new baseURI valuepublic String getBaseURI()
getBaseURI in interface Stylesheetsnull if the baseURI isn't set
yet.
public abstract Templates loadTemplate(String stylesheet)
throws TransformerException
if the wanted one already exists then return this one else create a new one an return it
loadTemplate in interface Stylesheetsstylesheet - the URI of the
stylesheet to use for loading (may be absolute or relative to the
baseURI)
TransformerException - If anything happens, look for wrapped ones.public abstract void loadTemplateAsync(String stylesheet)
Stylesheets
loadTemplateAsync in interface Stylesheets
public abstract org.jdom.Document transform2Jdom(org.jdom.Document document,
String stylesheet,
Hashtable params)
throws TransformerException
Be aware that the resulting document has to be XML code to output a JDOOM document
document - the jdom document to
transformstylesheet - the URI of the
stylesheet used for transformationparams - the parameters used
during transformation (as Hashtable) - may be null
TransformerException - Description of
Exception
public abstract void transform(org.jdom.Document document,
Result result,
String stylesheet,
Hashtable params)
throws TransformerException
transform in interface Stylesheetsdocument - the JDOM document to
transformresult - the Result
of the transformation (that means: the transformed document)stylesheet - the URI of the
stylesheet used for transformationparams - the parameters used
during transformation (as Hashtable) - may be null
TransformerException - Description of
Exception
public abstract void transform(org.jdom.Document document,
OutputStream outStream,
String stylesheet,
Hashtable params)
throws TransformerException
transform in interface Stylesheetsdocument - the JDOM document to
transformoutStream - the resultingOutputStream
of the transformationstylesheet - the URI of the
stylesheet used for transformationparams - the parameters used
during transformation (as Hashtable) - may be null
TransformerException - Description of
Exception
public abstract void transform(org.jdom.Document document,
Writer writer,
String stylesheet,
Hashtable params)
throws TransformerException
transform in interface Stylesheetsdocument - the JDOM document to
transformstylesheet - the URI of the
stylesheet used for transformationparams - the parameters used
during transformation (as Hashtable) - may be nullwriter - Description of
Parameter
TransformerException - Description of
Exception
public abstract void transform(Source inputSource,
Result outputResult,
String stylesheet,
Hashtable params)
throws TransformerException
transform in interface StylesheetsinputSource - the Source
of the xml document to transformoutputResult - the Result
of the transformation (that means: the transformed document)stylesheet - the URI of the
stylesheet used for transformationparams - the parameters used
during transformation (as Hashtable) - may be null
TransformerException - Description of
Exception
public abstract void transform(InputStream inStream,
OutputStream outStream,
String stylesheet,
Hashtable params)
throws TransformerException
transform(new StreamSource(inStream), new StreamResult(outStream), stylesheet, params)
instead
transform in interface StylesheetsinStream - the InputStream
of the xml document to transformoutStream - the resultingOutputStream
of the transformationstylesheet - the URI of the
stylesheet used for transformationparams - the parameters used
during transformation (as Hashtable) - may be null
TransformerException - Description of
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||