public class TransformProcessor
extends javax.xml.transform.Transformer
Constructor and Description |
---|
TransformProcessor(java.net.URI confFile)
Creates an XBRL transformation processor using the configuration file
provided as a parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
clearParameters() |
javax.xml.transform.ErrorListener |
getErrorListener() |
java.util.Vector<XBRLFactHandlerInterface> |
getFactHandlers(DTSContainer dts)
Gets the fact handlers.
|
java.util.Properties |
getOutputProperties() |
java.lang.String |
getOutputProperty(java.lang.String name) |
java.lang.Object |
getParameter(java.lang.String name) |
javax.xml.transform.URIResolver |
getURIResolver() |
XDTInfosetConsumer |
getXDTInfosetConsumer(DTSContainer dts)
Access to the XDTInfosetConsumer for this DTS.
|
boolean |
isTransformable(javax.xml.transform.Source xmlSource,
int mode)
This method returns true when the document represented by the content of the
xmlSource parameter can be transformed by one of the DTSs loaded by this transformer
object.
|
void |
setErrorListener(javax.xml.transform.ErrorListener listener) |
void |
setOutputProperties(java.util.Properties oformat) |
void |
setOutputProperty(java.lang.String name,
java.lang.String value) |
void |
setParameter(java.lang.String name,
java.lang.Object value) |
void |
setURI(java.net.URI newURI)
Changes or sets this URI new config file.
|
void |
setURIResolver(javax.xml.transform.URIResolver resolver) |
void |
transform(javax.xml.transform.Source xmlSource,
javax.xml.transform.Result outputTarget) |
public TransformProcessor(java.net.URI confFile) throws TransformConfigurationFileException
confFile
- URI of the configuration fileTransformConfigurationFileException
- the transform configuration file exceptionpublic XDTInfosetConsumer getXDTInfosetConsumer(DTSContainer dts)
dts
- the DTSContainerpublic void setURI(java.net.URI newURI)
newURI
- URIpublic void clearParameters()
clearParameters
in class javax.xml.transform.Transformer
public javax.xml.transform.ErrorListener getErrorListener()
getErrorListener
in class javax.xml.transform.Transformer
public java.util.Properties getOutputProperties()
getOutputProperties
in class javax.xml.transform.Transformer
public java.lang.String getOutputProperty(java.lang.String name) throws java.lang.IllegalArgumentException
getOutputProperty
in class javax.xml.transform.Transformer
java.lang.IllegalArgumentException
public java.lang.Object getParameter(java.lang.String name)
getParameter
in class javax.xml.transform.Transformer
public javax.xml.transform.URIResolver getURIResolver()
getURIResolver
in class javax.xml.transform.Transformer
public void setErrorListener(javax.xml.transform.ErrorListener listener) throws java.lang.IllegalArgumentException
setErrorListener
in class javax.xml.transform.Transformer
java.lang.IllegalArgumentException
public void setOutputProperties(java.util.Properties oformat)
setOutputProperties
in class javax.xml.transform.Transformer
public void setOutputProperty(java.lang.String name, java.lang.String value) throws java.lang.IllegalArgumentException
setOutputProperty
in class javax.xml.transform.Transformer
java.lang.IllegalArgumentException
public void setParameter(java.lang.String name, java.lang.Object value)
setParameter
in class javax.xml.transform.Transformer
public void setURIResolver(javax.xml.transform.URIResolver resolver)
setURIResolver
in class javax.xml.transform.Transformer
public boolean isTransformable(javax.xml.transform.Source xmlSource, int mode)
Only Sources that are rewindable can be used in this method. This means. Source must be an instance of SAXSource or StreamSource and the InputStream must be an instance of a ByteArrayInputStream. Other possibilities may work for one DTS but not for more than one DTS in the configuration file.
xmlSource
- Sourcemode
- DTSContainer.FAST or DTSContainer.FULLpublic void transform(javax.xml.transform.Source xmlSource, javax.xml.transform.Result outputTarget) throws javax.xml.transform.TransformerException
transform
in class javax.xml.transform.Transformer
javax.xml.transform.TransformerException
public java.util.Vector<XBRLFactHandlerInterface> getFactHandlers(DTSContainer dts)
dts
- the dtsCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa