public class QBPJaxbUtils
extends java.lang.Object
Constructor and Description |
---|
QBPJaxbUtils() |
Modifier and Type | Method and Description |
---|---|
static com.tibco.patterns.qbp.jaxb.AndBuilderConfig |
readAndBuilderConfig(java.lang.String config_name,
java.io.InputStream config_stream,
AQBPLogger logger)
Read in an AND compound builder configuration.
|
static com.tibco.patterns.qbp.jaxb.GeneralBuilderConfig |
readGeneralBuilderConfig(java.lang.String config_name,
java.io.InputStream config_stream,
AQBPLogger logger)
Read in a general query builder configuration.
|
static com.tibco.patterns.qbp.jaxb.MatchCaseBuilderConfig |
readMatchCaseBuilderConfig(java.lang.String config_name,
java.io.InputStream config_stream,
AQBPLogger logger)
Read in a Match Case compound builder configuration.
|
static com.tibco.patterns.qbp.jaxb.RecordMatchingQueryDef |
readRecordMatchingQueryDef(java.lang.String config_name,
java.io.InputStream config_stream,
AQBPLogger logger)
Read in a complete record matching query definition.
|
static com.tibco.patterns.qbp.jaxb.RlinkBuilderConfig |
readRlinkBuilderConfig(java.lang.String config_name,
java.io.InputStream config_stream,
AQBPLogger logger)
Read in a RLink compound builder configuration.
|
static com.tibco.patterns.qbp.jaxb.RunQuery |
readRunQueryConfiguration(java.io.File config_file,
AQBPLogger logger)
Read in a query run configuration.
|
static void |
writeConfigObject(java.lang.Object config,
java.io.File config_file,
AQBPLogger logger)
Write a Query Builder Platform configuration object to a file in XML format.
|
public static com.tibco.patterns.qbp.jaxb.RecordMatchingQueryDef readRecordMatchingQueryDef(java.lang.String config_name, java.io.InputStream config_stream, AQBPLogger logger) throws AQBPLogger.QBPException, AQBPLogger.QBPConfigException, java.lang.IllegalArgumentException
config_name
- a name used to identify the configuration in error messages.config_stream
- stream for reading configuration. This is required.logger
- a logger for reporting all errors. This is required.AQBPLogger.QBPConfigException
- on syntax error in the configuration file.AQBPLogger.QBPException
- on JAXB initialization errors, other errors.java.lang.IllegalArgumentException
- if logger is null.public static com.tibco.patterns.qbp.jaxb.GeneralBuilderConfig readGeneralBuilderConfig(java.lang.String config_name, java.io.InputStream config_stream, AQBPLogger logger) throws AQBPLogger.QBPException, AQBPLogger.QBPConfigException, java.lang.IllegalArgumentException
config_name
- a name used to identify the configuration in error messages.config_stream
- stream for reading configuration. This is required.logger
- a logger for reporting all errors. This is required.AQBPLogger.QBPConfigException
- on syntax error in the configuration file.AQBPLogger.QBPException
- on JAXB initialization errors, other errors.java.lang.IllegalArgumentException
- if logger is null.public static com.tibco.patterns.qbp.jaxb.AndBuilderConfig readAndBuilderConfig(java.lang.String config_name, java.io.InputStream config_stream, AQBPLogger logger) throws AQBPLogger.QBPException, AQBPLogger.QBPConfigException, java.lang.IllegalArgumentException
config_name
- a name used to identify the configuration in error messages.config_stream
- stream for reading configuration. This is required.logger
- a logger for reporting all errors. This is required.AQBPLogger.QBPConfigException
- on syntax error in the configuration file.AQBPLogger.QBPException
- on JAXB initialization errors, other errors.java.lang.IllegalArgumentException
- if logger is null.public static com.tibco.patterns.qbp.jaxb.RlinkBuilderConfig readRlinkBuilderConfig(java.lang.String config_name, java.io.InputStream config_stream, AQBPLogger logger) throws AQBPLogger.QBPException, AQBPLogger.QBPConfigException, java.lang.IllegalArgumentException
config_name
- a name used to identify the configuration in error messages.config_stream
- stream for reading configuration. This is required.logger
- a logger for reporting all errors. This is required.AQBPLogger.QBPConfigException
- on syntax error in the configuration file.AQBPLogger.QBPException
- on JAXB initialization errors, other errors.java.lang.IllegalArgumentException
- if logger is null.public static com.tibco.patterns.qbp.jaxb.MatchCaseBuilderConfig readMatchCaseBuilderConfig(java.lang.String config_name, java.io.InputStream config_stream, AQBPLogger logger) throws AQBPLogger.QBPException, AQBPLogger.QBPConfigException, java.lang.IllegalArgumentException
config_name
- a name used to identify the configuration in error messages.config_stream
- stream for reading configuration. This is required.logger
- a logger for reporting all errors. This is required.AQBPLogger.QBPConfigException
- on syntax error in the configuration file.AQBPLogger.QBPException
- on JAXB initialization errors, other errors.java.lang.IllegalArgumentException
- if logger is null.public static void writeConfigObject(java.lang.Object config, java.io.File config_file, AQBPLogger logger) throws AQBPLogger.QBPException, AQBPLogger.QBPConfigException
config
- the configuration to be written out. This is required.config_file
- where the output file is to be placed. This is required.logger
- logger for reporting all errors.java.lang.IllegalArgumentException
- if the logger is null.AQBPLogger.QBPConfigException
- if the content of the object is not valid.AQBPLogger.QBPException
- if config is not one of the supported configuration
object types, and on all other errors.public static com.tibco.patterns.qbp.jaxb.RunQuery readRunQueryConfiguration(java.io.File config_file, AQBPLogger logger) throws AQBPLogger.QBPException, AQBPLogger.QBPConfigException, java.lang.IllegalArgumentException
config_file
- identifies where the file is. This is required.logger
- a logger for reporting all errors. This is required.AQBPLogger.QBPConfigException
- on syntax error in the configuration file.AQBPLogger.QBPException
- on JAXB initialization errors, other errors.java.lang.IllegalArgumentException
- if logger is null.