|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ddtek.xmlconverter.ConverterFactory
public class ConverterFactory
A factory class which is used to create new Converter
,
ConverterResolver
and SchemaGenerator
objects.
Converter objects are used to convert files to and from XML.
The ConverterFactory class allows the user to specify configuration parameters
with getConfiguration()
and
create instances of Converter
, and ConverterResolver
.
An application program which will use DataDirect toXML and fromXML converters
must first create an instance of ConverterFactory.
The application may then specify configuration parameters using getConfiguration()
Finally, the application can create xml converter objects with the
methods newConvertToXML
and newConvertFromXML
An application which uses the "converter:" scheme in a URI in the document() function
of an xslt or xquery, will need to use the
ConverterResolver
class which is an implementation of
URIResolver
.
The application can get an instance of ConverterResolver using the
newResolver()
method.
A SchemaGenerator
object can generate XML Schema files which describe
the xml files used and created by Converter
objects.
Constructor Summary | |
---|---|
ConverterFactory()
Creates a new ConverterFactory. |
Method Summary | |
---|---|
Configuration |
getConfiguration()
Get a reference to the Configuration object in this ConverterFactory. |
static EDIDialect[] |
getDialects()
Get a list of EDI dialects supported by this version of DataDirect XML Converters. |
ConvertFromXML |
newConvertFromXML(String conversion)
Create a new ConvertFromXML which can convert XML data to a non-XML format. |
ConvertToXML |
newConvertToXML(Source conversion)
Create a new ConvertToXML which can perform Custom XML Conversions. |
ConvertToXML |
newConvertToXML(String conversion)
Create a new ConvertToXML which can convert non-XML data to XML. |
ConverterResolver |
newResolver()
Create a new instance of ConverterResolver . |
SampleGenerator |
newSampleGenerator(String conversion)
Create a new SampleGenerator which can produce a sample XML EDI file for a specific
XML Converter. |
SchemaGenerator |
newSchemaGenerator(Source conversion)
Create a new SchemaGenerator which can produce an XML schema file for a specific
Custom XML Conversion. |
SchemaGenerator |
newSchemaGenerator(String conversion)
Create a new SchemaGenerator which can produce an XML schema file for a specific
XML Converter. |
XHTMLGenerator |
newXHTMLGenerator(String conversion)
Create a new XHTMLGenerator which can produce a [X]HTML documentation for a specific
XML Converter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConverterFactory()
Method Detail |
---|
public Configuration getConfiguration()
Configuration
object in this ConverterFactory.
The application may modify the properties of the returned Configuration object.
Those changes will apply to any Converter
or ConverterResolver
objects subsequently created from this ConverterFactory.
public ConverterResolver newResolver()
ConverterResolver
.
public ConvertToXML newConvertToXML(String conversion) throws ConverterException
ConvertToXML
which can convert non-XML data to XML.
conversion
- Specifies the type of conversion to be performed.
The conversion is specified as a converter Uri such as:
ConverterException
public ConvertToXML newConvertToXML(Source conversion) throws ConverterException
ConvertToXML
which can perform Custom XML Conversions.
If the user has built a Custom XML Conversion using Stylus Studio,
then this method may
be used to create a Converter object to run the custom XML conversion.
Source
for the .conv file.
This method will read the source data into memory
and use it to create a new ConvertToXML
object.
conversion
- The source of the Custom XML Conversion definition.
ConverterException
public ConvertFromXML newConvertFromXML(String conversion) throws ConverterException
ConvertFromXML
which can convert XML data to a non-XML format.
conversion
- Specifies the type of conversion to be performed.
The conversion is specified as a converter Uri such as:
ConverterException
public SchemaGenerator newSchemaGenerator(String conversion) throws ConverterException
SchemaGenerator
which can produce an XML schema file for a specific
XML Converter.
conversion
- Specifies the type of XML Converter.
The conversion is specified as a converter Uri such as:
ConverterException
public SchemaGenerator newSchemaGenerator(Source conversion) throws ConverterException
SchemaGenerator
which can produce an XML schema file for a specific
Custom XML Conversion.
If the user has built a Custom XML Conversion using Stylus Studio,
then this method may
be used to create a SchemaGenerator object for that Custom XML Conversion.
Source
for the .conv file.
This method will read the source data into memory
and use it to create a new SchemaGenerator
object.
conversion
- The source of the Custom XML Conversion definition.
ConverterException
public XHTMLGenerator newXHTMLGenerator(String conversion) throws ConverterException
XHTMLGenerator
which can produce a [X]HTML documentation for a specific
XML Converter.
conversion
- Specifies the type of XML Converter.
The conversion is specified as a converter Uri such as:
ConverterException
public SampleGenerator newSampleGenerator(String conversion) throws ConverterException
SampleGenerator
which can produce a sample XML EDI file for a specific
XML Converter.
conversion
- Specifies the type of XML Converter.
The conversion is specified as a converter Uri such as:
ConverterException
public static EDIDialect[] getDialects()
EDIDialect
objects representing the supported dialects.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |