| Modifier and Type | Class and Description |
|---|---|
| private static class | TransformerFactoryImpl.
The above Map stores objects of this class. |
| Modifier and Type | Field and Description |
|---|---|
| private String | _accessExternalDTD
protocols allowed for external DTD references in source file and/or stylesheet. |
| private String | _accessExternalStylesheet
protocols allowed for external references set by the stylesheet processing instruction, Import and Include element. |
| private boolean | _autoTranslet
If this is set to |
| pack-priv String | |
| pack-priv CatalogFeatures | |
| pack-priv String | |
| pack-priv String | |
| pack-priv String | |
| pack-priv CatalogResolver | |
| pack-priv int | |
| private boolean | _debug
Set to |
| private final ErrorListener | _defaultListener
Default error listener |
| private String | _destinationDirectory
The destination directory for the translet |
| private boolean | _enableInlining
Set to |
| private ErrorListener | _errorListener
This error listener is used only for this factory and is not passed to the Templates or Transformer objects that we create. |
| private JdkProperty | |
| private boolean | _generateTranslet
Set to |
| private boolean | |
| private int | _indentNumber
Number of indent spaces when indentation is turned on. |
| private boolean | _isNotSecureProcessing
State of secure processing feature. |
| private boolean | _isSecureMode
State of secure mode. |
| private String | _jarFileName
The jar file name which the translet classes are packaged into |
| private boolean | _overrideDefaultParser
Indicates whether 3rd party parser may be used to override the system-default Note the default value (false) is the safe option. |
| private String | |
| private Map | _piParams
This Map is used to store parameters for locating <?xml-stylesheet ...? |
| private String | _transletName
The class name of the translet |
| private URIResolver | _uriResolver
This URIResolver is passed to all created Templates and Transformers |
| private boolean | _useClasspath
If this is set to |
| private final JdkXmlFeatures | |
| private XMLSecurityManager | |
| private XMLSecurityPropertyManager | |
| private Map | |
| public static final String | |
| pack-priv CatalogFeatures. | |
| public static final String | |
| private static final String | DEFAULT_TRANSLATE_PACKAGE
The package name prefix for all generated translet classes |
| protected static final String | DEFAULT_TRANSLET_NAME
As Gregor Samsa awoke one morning from uneasy dreams he found himself transformed in his bed into a gigantic insect. |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private CatalogFeatures | buildCatalogFeatures()
Build the CatalogFeatures object when a newTemplates or newTransformer is created. |
| protected final XSLTCDTMManager | |
| public Source | Returns: A Source object suitable for passing to the TransformerFactory.The XML source document. source, String The media attribute to be matched. May be null, in which
case the prefered templates will be used (i.e. alternate = no). media, String The value of the title attribute to match. May be null. title, String The value of the charset attribute to match. May be null. charset)Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public Object | Returns: An object representing the attribute valueThe attribute name name)Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| private byte[][] | Returns: The bytecode arrayThe xsl source source, String The full name of the translet fullClassName)Load the translet classes from local .class files and return the bytecode array. |
| private byte[][] | Returns: The bytecode arrayThe xsl source source, String The full name of the translet fullClassName)Load the translet classes from the jar file and return the bytecode. |
| public ErrorListener | Returns: The error listener used with the TransformerFactoryImplements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public Map | |
| public boolean | Returns: 'true' if feature is supported, 'false' if notThe feature name name)Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public JdkXmlFeatures | |
| pack-priv String | |
| private String | Returns: The file name in the local filesystem, or null if the systemId does not represent a local file.The Source source)Return the local file name from the systemId of the Source object |
| private String | Returns: The name of the translet classThe input Source source)Return the base class name of the translet. |
| public URIResolver | Returns: The URLResolver used for this TransformerFactory and all Templates and Transformer objects created using this factoryImplements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public InputSource | Returns: An InputSource with the loaded documentThe URI of the document to load href, String The URI of the currently loaded document context, XSLTC The compiler that resuests the document xsltc)Implements com. This method implements XSLTC's SourceLoader interface. |
| public Templates | Returns: A Templates object that can be used to create Transformers.The input stylesheet - DOMSource not supported!!! source)Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public TemplatesHandler | Returns: A TemplatesHandler object that can handle SAX eventsImplements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. |
| public Transformer | Returns: A Transformer object that simply copies the source to the result.Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public Transformer | Returns: A Templates object that can be used to create Transformers.Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public TransformerHandler | Returns: A TransformerHandler object that can handle SAX eventsImplements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. |
| public TransformerHandler | Returns: A TransformerHandler object that can handle SAX eventsThe source of the transformation instructions. src)Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. |
| public TransformerHandler | Returns: A TransformerHandler object that can handle SAX eventsRepresents a pre-processed stylesheet templates)Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. |
| public XMLFilter | Returns: An XMLFilter object, or null if this feature is not supported.The source of the transformation instructions. src)Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. |
| public XMLFilter | Returns: An XMLFilter object, or null if this feature is not supported.The source of the transformation instructions. templates)Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. |
| public boolean | |
| private void | passErrorsToListener(List<ErrorMsg> messages)
Pass error messages from the compiler to the error listener |
| private void | passWarningsToListener(List<ErrorMsg> messages)
Pass warning messages from the compiler to the error listener |
| private void | readFromInputStream(byte[]
The byte array to store the input content. bytes, InputStream The input stream. input, int The number of bytes to read. size)Read a given number of bytes from the InputStream into a byte array. |
| private void | |
| public void | setAttribute(String
The attribute name name, Object An object representing the attribute value value)Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public void | setErrorListener(ErrorListener
The error listener to use with the TransformerFactory listener)Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| public void | setFeature(String
Feature name. name, boolean Is feature state value)true or false.Implements abstract javax. Set a feature for this |
| public void | setURIResolver(URIResolver
The URLResolver used for this TransformerFactory and all
Templates and Transformer objects created using this factory resolver)Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. |
| _accessExternalDTD | back to summary |
|---|---|
| private String _accessExternalDTD protocols allowed for external DTD references in source file and/or stylesheet. | |
| _accessExternalStylesheet | back to summary |
|---|---|
| private String _accessExternalStylesheet protocols allowed for external references set by the stylesheet processing instruction, Import and Include element. | |
| _autoTranslet | back to summary |
|---|---|
| private boolean _autoTranslet If this is set to | |
| _catalogDefer | back to summary |
|---|---|
| pack-priv String _catalogDefer | |
| _catalogFeatures | back to summary |
|---|---|
| pack-priv CatalogFeatures _catalogFeatures | |
| _catalogFiles | back to summary |
|---|---|
| pack-priv String _catalogFiles | |
| _catalogPrefer | back to summary |
|---|---|
| pack-priv String _catalogPrefer | |
| _catalogResolve | back to summary |
|---|---|
| pack-priv String _catalogResolve | |
| _catalogUriResolver | back to summary |
|---|---|
| pack-priv CatalogResolver _catalogUriResolver | |
| _cdataChunkSize | back to summary |
|---|---|
| pack-priv int _cdataChunkSize | |
| _debug | back to summary |
|---|---|
| private boolean _debug Set to | |
| _defaultListener | back to summary |
|---|---|
| private final ErrorListener _defaultListener Default error listener | |
| _destinationDirectory | back to summary |
|---|---|
| private String _destinationDirectory The destination directory for the translet | |
| _enableInlining | back to summary |
|---|---|
| private boolean _enableInlining Set to | |
| _errorListener | back to summary |
|---|---|
| private ErrorListener _errorListener This error listener is used only for this factory and is not passed to the Templates or Transformer objects that we create. | |
| _extensionClassLoader | back to summary |
|---|---|
| private JdkProperty<ClassLoader> _extensionClassLoader | |
| _generateTranslet | back to summary |
|---|---|
| private boolean _generateTranslet Set to | |
| _hasUserErrListener | back to summary |
|---|---|
| private boolean _hasUserErrListener | |
| _indentNumber | back to summary |
|---|---|
| private int _indentNumber Number of indent spaces when indentation is turned on. | |
| _isNotSecureProcessing | back to summary |
|---|---|
| private boolean _isNotSecureProcessing State of secure processing feature. | |
| _isSecureMode | back to summary |
|---|---|
| private boolean _isSecureMode State of secure mode. | |
| _jarFileName | back to summary |
|---|---|
| private String _jarFileName The jar file name which the translet classes are packaged into | |
| _overrideDefaultParser | back to summary |
|---|---|
| private boolean _overrideDefaultParser Indicates whether 3rd party parser may be used to override the system-default Note the default value (false) is the safe option. Note same as the old property useServicesMechanism | |
| _packageName | back to summary |
|---|---|
| private String _packageName | |
| _piParams | back to summary |
|---|---|
| private Map<Source, TransformerFactoryImpl. This Map is used to store parameters for locating <?xml-stylesheet ...?> processing instructions in XML docs. | |
| _transletName | back to summary |
|---|---|
| private String _transletName The class name of the translet | |
| _uriResolver | back to summary |
|---|---|
| private URIResolver _uriResolver This URIResolver is passed to all created Templates and Transformers | |
| _useClasspath | back to summary |
|---|---|
| private boolean _useClasspath If this is set to | |
| _xmlFeatures | back to summary |
|---|---|
| private final JdkXmlFeatures _xmlFeatures | |
| _xmlSecurityManager | back to summary |
|---|---|
| private XMLSecurityManager _xmlSecurityManager | |
| _xmlSecurityPropertyMgr | back to summary |
|---|---|
| private XMLSecurityPropertyManager _xmlSecurityPropertyMgr | |
| _xsltcExtensionFunctions | back to summary |
|---|---|
| private Map<String, Class<?>> _xsltcExtensionFunctions | |
| AUTO_TRANSLET | back to summary |
|---|---|
| public static final String AUTO_TRANSLET | |
| cfBuilder | back to summary |
|---|---|
| pack-priv CatalogFeatures. | |
| DEBUG | back to summary |
|---|---|
| public static final String DEBUG | |
| DEFAULT_TRANSLATE_PACKAGE | back to summary |
|---|---|
| private static final String DEFAULT_TRANSLATE_PACKAGE The package name prefix for all generated translet classes | |
| DEFAULT_TRANSLET_NAME | back to summary |
|---|---|
| protected static final String DEFAULT_TRANSLET_NAME As Gregor Samsa awoke one morning from uneasy dreams he found himself transformed in his bed into a gigantic insect. He was lying on his hard, as it were armour plated, back, and if he lifted his head a little he could see his big, brown belly divided into stiff, arched segments, on top of which the bed quilt could hardly keep in position and was about to slide off completely. His numerous legs, which were pitifully thin compared to the rest of his bulk, waved helplessly before his eyes. "What has happened to me?", he thought. It was no dream.... | |
| DESTINATION_DIRECTORY | back to summary |
|---|---|
| public static final String DESTINATION_DIRECTORY | |
| ENABLE_INLINING | back to summary |
|---|---|
| public static final String ENABLE_INLINING | |
| GENERATE_TRANSLET | back to summary |
|---|---|
| public static final String GENERATE_TRANSLET | |
| INDENT_NUMBER | back to summary |
|---|---|
| public static final String INDENT_NUMBER | |
| JAR_NAME | back to summary |
|---|---|
| public static final String JAR_NAME | |
| PACKAGE_NAME | back to summary |
|---|---|
| public static final String PACKAGE_NAME | |
| TRANSLET_NAME | back to summary |
|---|---|
| public static final String TRANSLET_NAME | |
| USE_CLASSPATH | back to summary |
|---|---|
| public static final String USE_CLASSPATH | |
| TransformerFactoryImpl | back to summary |
|---|---|
| public TransformerFactoryImpl() javax.xml.transform.sax.TransformerFactory implementation. | |
| buildCatalogFeatures | back to summary |
|---|---|
| private CatalogFeatures buildCatalogFeatures() Build the CatalogFeatures object when a newTemplates or newTransformer is created. This will read any System Properties for the CatalogFeatures that may have been set. | |
| createNewDTMManagerInstance | back to summary |
|---|---|
| protected final XSLTCDTMManager createNewDTMManagerInstance() Returns a new instance of the XSLTC DTM Manager service. | |
| getAssociatedStylesheet | back to summary |
|---|---|
| public Source getAssociatedStylesheet(Source source, String media, String title, String charset) throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Get the stylesheet specification(s) associated via the xml-stylesheet processing instruction (see http://www.w3.org/TR/xml-stylesheet/) with the document document specified in the source parameter, and that match the given criteria.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) throws IllegalArgumentException Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Returns the value set for a TransformerFactory attribute
| |
| getBytecodesFromClasses | back to summary |
|---|---|
| private byte[][] getBytecodesFromClasses(Source source, String fullClassName) Load the translet classes from local .class files and return the bytecode array. | |
| getBytecodesFromJar | back to summary |
|---|---|
| private byte[][] getBytecodesFromJar(Source source, String fullClassName) Load the translet classes from the jar file and return the bytecode. | |
| getErrorListener | back to summary |
|---|---|
| public ErrorListener getErrorListener() Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Get the error event handler for the TransformerFactory.
| |
| getExternalExtensionsMap | back to summary |
|---|---|
| public Map | |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String name) Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Look up the value of a feature (to see if it is supported). This method must be updated as the various methods and features of this class are implemented.
| |
| getJdkXmlFeatures | back to summary |
|---|---|
public JdkXmlFeatures getJdkXmlFeatures()
| |
| getPackageName | back to summary |
|---|---|
| pack-priv String getPackageName() Returns the package name. | |
| getStylesheetFileName | back to summary |
|---|---|
| private String getStylesheetFileName(Source source) Return the local file name from the systemId of the Source object | |
| getTransletBaseName | back to summary |
|---|---|
| private String getTransletBaseName(Source source) Return the base class name of the translet. The translet name is resolved using the following rules: 1. if the _transletName attribute is set and its value is not "GregorSamsa", then _transletName is returned. 2. otherwise get the translet name from the base name of the system ID 3. return "GregorSamsa" if the result from step 2 is null. | |
| getURIResolver | back to summary |
|---|---|
| public URIResolver getURIResolver() Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Get the object that is used by default during the transformation to resolve URIs used in document(), xsl:import, or xsl:include.
| |
| loadSource | back to summary |
|---|---|
| public InputSource loadSource(String href, String context, XSLTC xsltc) Implements com. This method implements XSLTC's SourceLoader interface. It is used to glue a TrAX URIResolver to the XSLTC compiler's Input and Import classes.
| |
| newTemplates | back to summary |
|---|---|
| public Templates newTemplates(Source source) throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Process the Source into a Templates object, which is a a compiled representation of the source.
| |
| newTemplatesHandler | back to summary |
|---|---|
| public TemplatesHandler newTemplatesHandler() throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TemplatesHandler object that can process SAX ContentHandler events into a Templates object.
| |
| newTransformer | back to summary |
|---|---|
| public Transformer newTransformer() throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Create a Transformer object that copies the input document to the result.
| |
| newTransformer | back to summary |
|---|---|
| public Transformer newTransformer(Source source) throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Process the Source into a Templates object, which is a a compiled representation of the source. Note that this method should not be used with XSLTC, as the time-consuming compilation is done for each and every transformation.
| |
| newTransformerHandler | back to summary |
|---|---|
| public TransformerHandler newTransformerHandler() throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TransformerHandler object that can process SAX ContentHandler events into a Result. This method will return a pure copy transformer.
| |
| newTransformerHandler | back to summary |
|---|---|
| public TransformerHandler newTransformerHandler(Source src) throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
| |
| newTransformerHandler | back to summary |
|---|---|
| public TransformerHandler newTransformerHandler(Templates templates) throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. Get a TransformerHandler object that can process SAX ContentHandler events into a Result, based on the transformation instructions specified by the argument.
| |
| newXMLFilter | back to summary |
|---|---|
| public XMLFilter newXMLFilter(Source src) throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. Create an XMLFilter that uses the given source as the transformation instructions.
| |
| newXMLFilter | back to summary |
|---|---|
| public XMLFilter newXMLFilter(Templates templates) throws TransformerConfigurationException Implements abstract javax. javax.xml.transform.sax.SAXTransformerFactory implementation. Create an XMLFilter that uses the given source as the transformation instructions.
| |
| overrideDefaultParser | back to summary |
|---|---|
| public boolean overrideDefaultParser() Return the state of the services mechanism feature. | |
| passErrorsToListener | back to summary |
|---|---|
| private void passErrorsToListener(List<ErrorMsg> messages) Pass error messages from the compiler to the error listener | |
| passWarningsToListener | back to summary |
|---|---|
| private void passWarningsToListener(List<ErrorMsg> messages) throws TransformerException Pass warning messages from the compiler to the error listener | |
| readFromInputStream | back to summary |
|---|---|
| private void readFromInputStream(byte[] bytes, InputStream input, int size) throws IOException Read a given number of bytes from the InputStream into a byte array.
| |
| resetTransientAttributes | back to summary |
|---|---|
| private void resetTransientAttributes() Reset the per-session attributes to their default values | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) throws IllegalArgumentException Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Sets the value for a TransformerFactory attribute.
| |
| setErrorListener | back to summary |
|---|---|
| public void setErrorListener(ErrorListener listener) throws IllegalArgumentException Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Set the error event listener for the TransformerFactory, which is used for the processing of transformation instructions, and not for the transformation itself.
| |
| setFeature | back to summary |
|---|---|
| public void setFeature(String name, boolean value) throws TransformerConfigurationException Implements abstract javax. Set a feature for this
Feature names are fully qualified See
| |
| setURIResolver | back to summary |
|---|---|
| public void setURIResolver(URIResolver resolver) Implements abstract javax. javax.xml.transform.sax.TransformerFactory implementation. Set the object that is used by default during the transformation to resolve URIs used in document(), xsl:import, or xsl:include. Note that this does not affect Templates and Transformers that are already created with this factory.
| |
| Access | Constructor and Description |
|---|---|
| public |
| _charset | back to summary |
|---|---|
| public String _charset | |
| _media | back to summary |
|---|---|
| public String _media | |
| _title | back to summary |
|---|---|
| public String _title | |
| PIParamWrapper | back to summary |
|---|---|
| public PIParamWrapper(String media, String title, String charset) | |