| Modifier and Type | Field and Description |
|---|---|
static String |
CDATA_END |
static String |
CDATA_START |
static String |
EXACT_MATCH |
static String |
FINAL |
static String |
FUZZY_MATCH |
static String |
ID_MATCH |
static String |
LEVERAGED_INHERITED |
static String |
LEVERAGED_MT |
static String |
LEVERAGED_TM |
static String |
MT_SUGGESTION |
static String |
NEW |
static String |
PROP_BUILDNUM |
static String |
PROP_EXTRADATA |
static String |
PROP_REPETITION |
static String |
PROP_WASSEGMENTED |
static String |
PROP_XLIFF_FLAVOR
On StartDocument to indicate that the "flavor" of the document is possible
|
static String |
SIGNED_OFF |
static String |
STATE_QUALIFIER |
static String |
TM_SUGGESTION |
static String |
TRANSLATED |
static String |
XLIFF_FLAVOR_DEFAULT |
static String |
XLIFF_FLAVOR_SDLXLIFF |
static String |
XLIFF_FLAVOR_XTM |
SUB_FILTER| Constructor and Description |
|---|
XLIFFFilter() |
| Modifier and Type | Method and Description |
|---|---|
String |
buildStartCode(XMLStreamReader reader) |
void |
cancel()
Cancels the current process.
|
void |
close()
Closes the input document.
|
IFilterWriter |
createFilterWriter()
Creates a new IFilterWriter object from the most appropriate class to
use with this filter.
|
ISkeletonWriter |
createSkeletonWriter()
Creates a new ISkeletonWriter object that corresponds to the type of skeleton
this filter uses.
|
InputStreamReader |
createStreamReader(RawDocument input,
String charset) |
ITSAnnotatorsRefContext |
getAnnotatorsRefContext()
Gets the ITS annotators references context object.
|
List<FilterConfiguration> |
getConfigurations()
Gets the list of all predefined configurations for this filter.
|
SdlFileInfo |
getCurrentSdlFileInfo() |
LocaleId |
getCurrentSourceLocale() |
LocaleId |
getCurrentTargetLocale() |
String |
getDisplayName()
Gets the localizable display name of this filter.
|
EncoderManager |
getEncoderManager()
Gets the EncoderManager object for this filter.
|
String |
getMimeType()
Gets the MIME type of the format supported by this filter.
|
String |
getName()
Gets the name/identifier of this filter.
|
Parameters |
getParameters()
Gets the current parameters for this filter.
|
boolean |
hasNext()
Indicates if there is an event to process.
|
Event |
next()
Gets the next event available.
|
void |
open(RawDocument input)
Opens the input document described in a give RawDocument object.
|
void |
open(RawDocument input,
boolean generateSkeleton)
Opens the input document described in a give RawDocument object, and
optionally creates skeleton information.
|
void |
open(RawDocument input,
boolean generateSkeleton,
IITSDataStore datastore)
Opens the input document described in a give RawDocument object, optionally creates skeleton information,
and set the default data store to use to harvest ITS standoff annotations.
|
List<Object> |
processSub(XMLStreamReader reader)
Process the content of a sub element.
|
void |
setFilterConfigurationMapper(IFilterConfigurationMapper filterConfigurationMapper)
Sets the filter configuration mapper for this filter.
|
void |
setParameters(IParameters params)
Sets new parameters for this filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic static final String PROP_BUILDNUM
public static final String PROP_EXTRADATA
public static final String PROP_WASSEGMENTED
public static final String PROP_REPETITION
public static final String PROP_XLIFF_FLAVOR
public static final String XLIFF_FLAVOR_DEFAULT
public static final String XLIFF_FLAVOR_SDLXLIFF
public static final String XLIFF_FLAVOR_XTM
public static final String FINAL
public static final String SIGNED_OFF
public static final String NEW
public static final String TRANSLATED
public static final String EXACT_MATCH
public static final String FUZZY_MATCH
public static final String ID_MATCH
public static final String LEVERAGED_MT
public static final String LEVERAGED_TM
public static final String MT_SUGGESTION
public static final String TM_SUGGESTION
public static final String LEVERAGED_INHERITED
public static final String STATE_QUALIFIER
public static final String CDATA_START
public static final String CDATA_END
public void cancel()
IFilterpublic void close()
IFilterclose in interface AutoCloseableclose in interface IFilterpublic String getName()
IFilterpublic String getDisplayName()
IFiltergetDisplayName in interface IFilterpublic String getMimeType()
IFiltergetMimeType in interface IFilterpublic List<FilterConfiguration> getConfigurations()
IFiltergetConfigurations in interface IFilterpublic EncoderManager getEncoderManager()
IFiltergetEncoderManager in interface IFilterpublic Parameters getParameters()
IFiltergetParameters in interface IFilterpublic boolean hasNext()
IFilterImplementer Note: The caller must be able to call this method several times without changing state.
public LocaleId getCurrentSourceLocale()
public LocaleId getCurrentTargetLocale()
public SdlFileInfo getCurrentSdlFileInfo()
public Event next()
IFilterpublic void open(RawDocument input)
IFilterpublic void open(RawDocument input, boolean generateSkeleton)
IFilterpublic void open(RawDocument input, boolean generateSkeleton, IITSDataStore datastore)
input - the RawDocument object to use to open the document.generateSkeleton - true to generate the skeleton data, false otherwise.datastore - the data store to use for the ITS standoff annotations (cannot be null).public void setFilterConfigurationMapper(IFilterConfigurationMapper filterConfigurationMapper)
IFiltersetFilterConfigurationMapper in interface IFilterfilterConfigurationMapper - the mapper to set.public void setParameters(IParameters params)
IFiltersetParameters in interface IFilterparams - The new parameters to use.public ISkeletonWriter createSkeletonWriter()
IFiltercreateSkeletonWriter in interface IFilterpublic IFilterWriter createFilterWriter()
IFiltercreateFilterWriter in interface IFilterpublic InputStreamReader createStreamReader(RawDocument input, String charset)
public String buildStartCode(XMLStreamReader reader)
public List<Object> processSub(XMLStreamReader reader) throws XMLStreamException
reader - - XmlStreamReader passed in. We assumeXMLStreamException - if a read error occurs.public ITSAnnotatorsRefContext getAnnotatorsRefContext()
Copyright © 2021. All rights reserved.