Package com.saxonica.config
Class EnterpriseTransformerFactory
- java.lang.Object
- 
- javax.xml.transform.TransformerFactory
- 
- javax.xml.transform.sax.SAXTransformerFactory
- 
- net.sf.saxon.jaxp.SaxonTransformerFactory
- 
- net.sf.saxon.TransformerFactoryImpl
- 
- com.saxonica.config.ProfessionalTransformerFactory
- 
- com.saxonica.config.EnterpriseTransformerFactory
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- Configuration.ApiProvider
 - Direct Known Subclasses:
- StreamingTransformerFactory
 
 public class EnterpriseTransformerFactory extends ProfessionalTransformerFactory The is the JAXP TransformerFactory implementation for the enterprise edition of Saxon. It can be invoked by setting the system property javax.xml.transform.TransformerFactory to the value com.saxonica.EnterpriseTransformerFactory, and calling TransformerFactory.newInstance(), or it can be instantiated directly.
- 
- 
Constructor SummaryConstructors Constructor Description EnterpriseTransformerFactory()Create an EnterpriseTransformerFactory.EnterpriseTransformerFactory(EnterpriseConfiguration config)Construct a TransformerFactory using an existing Configuration.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSchema(javax.xml.transform.Source schemaSource)Load a schema, which will be available for use by all subsequent operations using this TransformerFactory.voidsetAttribute(java.lang.String name, java.lang.Object value)Allows the user to set specific attributes on the underlying implementation.- 
Methods inherited from class net.sf.saxon.jaxp.SaxonTransformerFactorygetAssociatedStylesheet, getAttribute, getConfiguration, getErrorListener, getFeature, getProcessor, getURIResolver, newTemplates, newTemplates, newTemplatesHandler, newTransformer, newTransformer, newTransformerHandler, newTransformerHandler, newTransformerHandler, newXMLFilter, newXMLFilter, setConfiguration, setErrorListener, setFeature, setURIResolver
 
- 
 
- 
- 
- 
Constructor Detail- 
EnterpriseTransformerFactorypublic EnterpriseTransformerFactory() Create an EnterpriseTransformerFactory. An EnterpriseConfiguration will be created automatically.
 - 
EnterpriseTransformerFactorypublic EnterpriseTransformerFactory(EnterpriseConfiguration config) Construct a TransformerFactory using an existing Configuration.- Parameters:
- config- the configuration to be used. This must be an EnterpriseConfiguration.
 
 
- 
 - 
Method Detail- 
addSchemapublic void addSchema(javax.xml.transform.Source schemaSource) throws javax.xml.transform.TransformerExceptionLoad a schema, which will be available for use by all subsequent operations using this TransformerFactory.- Parameters:
- schemaSource- the JAXP Source object identifying the schema document to be loaded
- Throws:
- javax.xml.transform.TransformerException- if the schema cannot be read or parsed or if it is invalid
 
 - 
setAttributepublic void setAttribute(java.lang.String name, java.lang.Object value) throws java.lang.IllegalArgumentExceptionAllows the user to set specific attributes on the underlying implementation. An attribute in this context is defined to be an option that the implementation provides.- Overrides:
- setAttributein class- ProfessionalTransformerFactory
- Parameters:
- name- The name of the attribute. This must be one of the constants defined in class- FeatureKeys.
- value- The value of the attribute.
- Throws:
- java.lang.IllegalArgumentException- thrown if Saxon doesn't recognize the attribute.
- See Also:
- FeatureKeys
 
 
- 
 
-