public abstract class XMLCombinerFactory
extends java.lang.Object
An XMLCombinerFactory uses the factory design pattern to create XMLCombiners in a pluggable manner. The use of this pattern follows the pluggable parsers and pluggable transforms model adopted by the JAXP interface.
The system property that determines which Factory implementation to create is named:
com.deltaxml.api.XMLCombinerFactory
. This property names a concrete subclass of the XMLCombinerFactory abstract
class. If the property is not defined, a platform default is used.
Modifier and Type | Method and Description |
---|---|
abstract boolean |
getFeature(java.lang.String name)
Look up the value of a feature.
|
static XMLCombinerFactory |
newInstance()
Obtain a new instance of a
XMLCombinerFactory . |
abstract XMLCombiner |
newXMLCombiner()
Create a new XMLCombiner object.
|
public static XMLCombinerFactory newInstance() throws XMLCombinerFactoryConfigurationError
Obtain a new instance of a XMLCombinerFactory
. This static method creates a new factory instance.
This method uses the following ordered lookup procedure to determine the XMLCombinerFactory
implementation class
to load:
com.deltaxml.api.XMLCombinerFactory
system property.XMLCombinerFactory
implementation.
Once an application has obtained a reference to a
XMLCombinerFactory
it can use the factory to configure and obtain XMLCombiner instances.
XMLCombinerFactoryConfigurationError
- If the implementation is not available or cannot be instantiated. May contain
a wrapped exception.public abstract XMLCombiner newXMLCombiner() throws XMLCombinerConfigurationException
XMLCombinerConfigurationException
- If problems configuring the combiner.public abstract boolean getFeature(java.lang.String name)
Look up the value of a feature.
A factory feature can be used to obtain information about the features supported by underlying XMLCombiner objects. For example, in the current XMLCombiner implementation:
getFeature("http://javax.xml.transform.sax.SAXSource/feature")
would return true, while:
getFeature("http://javax.xml.transform.sax.DOMResult/feature")
would return false.
name
- The feature name (an absolute URI).Copyright © 2001-2018 DeltaXML Ltd. All Rights Reserved.