@Deprecated
public abstract class XMLComparatorFactory
extends java.lang.Object
An XMLComparatorFactory uses the factory design pattern to create XMLComparators 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.XMLComparatorFactory
. This property names a concrete subclass of the XMLComparatorFactory
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)
Deprecated.
Look up the value of a feature.
|
static XMLComparatorFactory |
newInstance()
Deprecated.
Obtain a new instance of a
XMLComparatorFactory . |
abstract XMLComparator |
newXMLComparator()
Deprecated.
Create a new XMLComparator object.
|
abstract XMLComparatorFilter |
newXMLComparatorFilter()
Deprecated.
Create a new XMLComparatorFilter object.
|
public static XMLComparatorFactory newInstance() throws XMLComparatorFactoryConfigurationError
Obtain a new instance of a XMLComparatorFactory
. This static method creates a new factory instance.
This method uses the following ordered lookup procedure to determine the XMLComparatorFactory
implementation
class to load:
com.deltaxml.api.XMLComparatorFactory
system property.XMLComparatorFactory
implementation.
Once an application has obtained a reference to a
XMLCompatorFactory
it can use the factory to configure and obtain XMLComparator instances.
XMLComparatorFactoryConfigurationError
- If the implementation is not available or cannot be instantiated. May
contain a wrapped exception.public abstract XMLComparator newXMLComparator() throws XMLComparatorConfigurationException
XMLComparatorConfigurationException
- If problems configuring the comparator.public abstract XMLComparatorFilter newXMLComparatorFilter() throws XMLComparatorConfigurationException
XMLComparatorConfigurationException
- if problems configuring the comparatorpublic 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 Comaparator objects. For example, in the current XMLComparator 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.