public class BatchItemContext extends BaseContext implements IBatchItemContext
IBatchItemContext interface.| Constructor and Description |
|---|
BatchItemContext()
Creates a new empty BatchItemContext object.
|
BatchItemContext(RawDocument rawDoc,
URI outputURI,
String outputEncoding)
Creates a new BatchItemContext object and initializes it with a given
RawDocument and additional arguments. |
BatchItemContext(RawDocument rawDoc,
URI outputURI,
String outputEncoding,
RawDocument... rawDocs)
Creates a new BatchItemContext object and initializes it with a given
RawDocument and additional arguments. |
BatchItemContext(URI inputURI,
String defaultEncoding,
String filterConfigId,
URI outputURI,
String outputEncoding,
LocaleId sourceLocale,
LocaleId targetLocale)
Creates a new BatchItemContext object and initializes it based on a given
input URI and additional arguments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(DocumentData data)
Adds a document to the list of inputs for this batch item.
|
void |
add(RawDocument rawDoc,
URI outputURI,
String outputEncoding)
Adds a document to the list of inputs for this batch item
using the provided arguments.
|
String |
getFilterConfigurationId(int index)
Gets the filter configuration identifier for a given input document of
this batch item.
|
String |
getOutputEncoding(int index)
Gets the output encoding for a given input document of this batch item.
|
URI |
getOutputURI(int index)
Gets the output URI for a given input document of this batch item.
|
RawDocument |
getRawDocument(int index)
Gets a RawDocument object from the given input document of this batch item.
|
LocaleId |
getSourceLocale(int index)
Gets the source locale for a given input document of this batch item.
|
LocaleId |
getTargetLocale(int index)
Gets the target locale for a given input document of this batch item.
|
clearAnnotations, clearProperties, getAnnotation, getBoolean, getInteger, getObject, getProperties, getString, removeProperty, setAnnotation, setBoolean, setInteger, setObject, setStringpublic BatchItemContext()
public BatchItemContext(RawDocument rawDoc, URI outputURI, String outputEncoding)
RawDocument and additional arguments.rawDoc - the RawDocument to use as the main input document.outputURI - the output URI of the input document (can be null if not used).outputEncoding - the output encoding (can be null if not used).public BatchItemContext(RawDocument rawDoc, URI outputURI, String outputEncoding, RawDocument... rawDocs)
RawDocument and additional arguments.rawDoc - the RawDocument to use as the main input document.outputURI - the output URI of the input document (can be null if not used).outputEncoding - the output encoding (can be null if not used).rawDocs - one or more RawDocuments to include in this item.public BatchItemContext(URI inputURI, String defaultEncoding, String filterConfigId, URI outputURI, String outputEncoding, LocaleId sourceLocale, LocaleId targetLocale)
inputURI - the URI of the main input documentdefaultEncoding - the default encoding of the input document.filterConfigId - the filter configuration ID (can be null if not used)outputURI - the output URI (can be null if not used).outputEncoding - the output encoding (can be null if not used)sourceLocale - the source locale.targetLocale - the target locale.public void add(DocumentData data)
data - the data of the document.public void add(RawDocument rawDoc, URI outputURI, String outputEncoding)
rawDoc - the RawDocument to use as the main input document.outputURI - the output URI of the input document (can be null if not used).outputEncoding - the output encoding (can be null if not used).public String getFilterConfigurationId(int index)
IBatchItemContextgetFilterConfigurationId in interface IBatchItemContextindex - the zero-based index of the input document.public String getOutputEncoding(int index)
IBatchItemContextgetOutputEncoding in interface IBatchItemContextindex - the zero-based index of the input document.public URI getOutputURI(int index)
IBatchItemContextgetOutputURI in interface IBatchItemContextindex - the zero-based index of the input document.public RawDocument getRawDocument(int index)
IBatchItemContextgetRawDocument in interface IBatchItemContextindex - the zero-based index of the input document.public LocaleId getSourceLocale(int index)
IBatchItemContextgetSourceLocale in interface IBatchItemContextindex - the zero-based index of the input document.public LocaleId getTargetLocale(int index)
IBatchItemContextgetTargetLocale in interface IBatchItemContextindex - the zero-based index of the input document.Copyright © 2022. All rights reserved.