Top Description Inners Fields Constructors Methods
org.eclipse.persistence.platform.xml.jaxp

public Class JAXPTransformer

extends Object
implements XMLTransformer
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.platform.xml.XMLTransformer
Imports
java.io.OutputStream, .Writer, java.net.URL, javax.xml.transform.ErrorListener, .OutputKeys, .Result, .Source, .Transformer, .TransformerConfigurationException, .TransformerException, .TransformerFactory, javax.xml.transform.dom.DOMResult, .DOMSource, javax.xml.transform.sax.SAXResult, javax.xml.transform.stream.StreamResult, .StreamSource, org.eclipse.persistence.internal.helper.XMLHelper, org.eclipse.persistence.platform.xml.XMLPlatformException, .XMLTransformer, org.w3c.dom.Document, .Node, org.xml.sax.ContentHandler

Purpose: An implementation of XMLTransformer using JAXP 1.3 APIs.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private String
private boolean
private boolean
private static final String
private Transformer
private String
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
public Transformer
public String
public boolean
public boolean
public void
public void
public void
public void
public void
public void
public void
public void
public void
public void
transform(Document sourceDocument, Node resultParentNode, URL stylesheet)

Implements org.eclipse.persistence.platform.xml.XMLTransformer.transform.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encodingback to summary
private String encoding
formattedback to summary
private boolean formatted
fragmentback to summary
private boolean fragment
NOback to summary
private static final String NO
transformerback to summary
private Transformer transformer
versionback to summary
private String version
YESback to summary
private static final String YES

Constructor Detail

JAXPTransformerback to summary
public JAXPTransformer()

Method Detail

getEncodingback to summary
public String getEncoding()

Implements org.eclipse.persistence.platform.xml.XMLTransformer.getEncoding.

Annotations
@Override
getTransformerback to summary
public Transformer getTransformer()
getVersionback to summary
public String getVersion()

Implements org.eclipse.persistence.platform.xml.XMLTransformer.getVersion.

Annotations
@Override
isFormattedOutputback to summary
public boolean isFormattedOutput()

Implements org.eclipse.persistence.platform.xml.XMLTransformer.isFormattedOutput.

Annotations
@Override
isFragmentback to summary
public boolean isFragment()

Implements org.eclipse.persistence.platform.xml.XMLTransformer.isFragment.

Annotations
@Override
setEncodingback to summary
public void setEncoding(String encoding)

Implements org.eclipse.persistence.platform.xml.XMLTransformer.setEncoding.

Annotations
@Override
setFormattedOutputback to summary
public void setFormattedOutput(boolean shouldFormat)

Implements org.eclipse.persistence.platform.xml.XMLTransformer.setFormattedOutput.

Annotations
@Override
setFragmentback to summary
public void setFragment(boolean fragment)

Implements org.eclipse.persistence.platform.xml.XMLTransformer.setFragment.

Annotations
@Override
setVersionback to summary
public void setVersion(String version)

Implements org.eclipse.persistence.platform.xml.XMLTransformer.setVersion.

Annotations
@Override
transformback to summary
public void transform(Node sourceNode, OutputStream resultOutputStream) throws XMLPlatformException

Implements org.eclipse.persistence.platform.xml.XMLTransformer.transform.

Annotations
@Override
transformback to summary
public void transform(Node sourceNode, ContentHandler resultContentHandler) throws XMLPlatformException

Implements org.eclipse.persistence.platform.xml.XMLTransformer.transform.

Annotations
@Override
transformback to summary
public void transform(Node sourceNode, Result result) throws XMLPlatformException

Implements org.eclipse.persistence.platform.xml.XMLTransformer.transform.

Annotations
@Override
transformback to summary
public void transform(Node sourceNode, Writer resultWriter) throws XMLPlatformException

Implements org.eclipse.persistence.platform.xml.XMLTransformer.transform.

Annotations
@Override
transformback to summary
public void transform(Source source, Result result) throws XMLPlatformException

Implements org.eclipse.persistence.platform.xml.XMLTransformer.transform.

Annotations
@Override
transformback to summary
public void transform(Document sourceDocument, Node resultParentNode, URL stylesheet) throws XMLPlatformException

Implements org.eclipse.persistence.platform.xml.XMLTransformer.transform.

Annotations
@Override
org.eclipse.persistence.platform.xml.jaxp back to summary

private Class JAXPTransformer.TransformerFactoryHelper

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.persistence.platform.xml.jaxp.JAXPTransformer.TransformerFactoryHelper

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static TransformerFactory
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TransformerFactoryHelperback to summary
private TransformerFactoryHelper()

Method Detail

getTransformerFactoryback to summary
pack-priv static TransformerFactory getTransformerFactory()
org.eclipse.persistence.platform.xml.jaxp back to summary

private Class JAXPTransformer.TransformErrorListener

extends Object
implements ErrorListener
Class Inheritance
  • java.lang.Object
  • org.eclipse.persistence.platform.xml.jaxp.JAXPTransformer.TransformErrorListener
All Implemented Interfaces
javax.xml.transform.ErrorListener

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
error(TransformerException
The error information encapsulated in a transformer exception.
exception
)

Implements javax.xml.transform.ErrorListener.error.

Receive notification of a recoverable error.
public void
fatalError(TransformerException
The error information encapsulated in a TransformerException.
exception
)

Implements javax.xml.transform.ErrorListener.fatalError.

Receive notification of a non-recoverable error.

public void
warning(TransformerException
The warning information encapsulated in a transformer exception.
exception
)

Implements javax.xml.transform.ErrorListener.warning.

Receive notification of a warning.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TransformErrorListenerback to summary
private TransformErrorListener()

Method Detail

errorback to summary
public void error(TransformerException exception) throws TransformerException

Implements javax.xml.transform.ErrorListener.error.

Doc from javax.xml.transform.ErrorListener.error.

Receive notification of a recoverable error.

The transformer must continue to try and provide normal transformation after invoking this method. It should still be possible for the application to process the document through to the end if no other errors are encountered.

Parameters
exception:TransformerException

The error information encapsulated in a transformer exception.

Annotations
@Override
Exceptions
TransformerException:
if the application chooses to discontinue the transformation.
fatalErrorback to summary
public void fatalError(TransformerException exception) throws TransformerException

Implements javax.xml.transform.ErrorListener.fatalError.

Doc from javax.xml.transform.ErrorListener.fatalError.

Receive notification of a non-recoverable error.

The processor may choose to continue, but will not normally proceed to a successful completion.

The method should throw an exception if it is unable to process the error, or if it wishes execution to terminate immediately. The processor will not necessarily honor this request.

Parameters
exception:TransformerException

The error information encapsulated in a TransformerException.

Annotations
@Override
Exceptions
TransformerException:
if the application chooses to discontinue the transformation.
warningback to summary
public void warning(TransformerException exception) throws TransformerException

Implements javax.xml.transform.ErrorListener.warning.

Doc from javax.xml.transform.ErrorListener.warning.

Receive notification of a warning.

javax.xml.transform.Transformer can use this method to report conditions that are not errors or fatal errors. The default behaviour is to take no action.

After invoking this method, the Transformer must continue with the transformation. It should still be possible for the application to process the document through to the end.

Parameters
exception:TransformerException

The warning information encapsulated in a transformer exception.

Annotations
@Override
Exceptions
TransformerException:
if the application chooses to discontinue the transformation.