public class XLIFFITSFilterExtension extends Object
| Constructor and Description |
|---|
XLIFFITSFilterExtension(XMLInputFactory xmlFactory,
IITSDataStore datastore,
URI docURI,
XLIFFFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getFragmentIdPart(String uriRef) |
ITSStandoffManager |
getITSStandoffManager()
Gets the standoff manager object for this helper object.
|
protected static String |
getResourcePart(String uriRef)
Separates the fragment ID from the URI reference.
|
void |
parseInDocumentITSStandoff(XMLEventReader eventReader,
String inStreamCharset) |
static int[] |
parseXLQIPos(String data,
org.slf4j.Logger logger)
Parse a four value lqiPos attribute.
|
protected GenericAnnotations |
readInlineCodeITSAttributes() |
protected GenericAnnotation |
readITSAllowedCharacters() |
protected GenericAnnotation |
readITSExternalResource() |
protected GenericAnnotation |
readITSLocaleFilter() |
protected ITSLQIAnnotations |
readITSLQI()
Resolves standoff and on-element ITS Language Quality Issue data
attached to the current element being processed by the
XMLStreamReader.
|
protected GenericAnnotation |
readITSLQR() |
protected GenericAnnotation |
readITSMtConfidence() |
protected ITSProvenanceAnnotations |
readITSProvenance()
Resolves ITS Provenance standoff data attached to the current element
being processed by the XMLStreamReader.
|
protected GenericAnnotation |
readITSStorageSize() |
protected GenericAnnotations |
readTextContainerITSAttributes() |
protected void |
readTextUnitITSAttributes(ITextUnit resource) |
void |
setXLIFFReader(XMLStreamReader reader)
Sets the reader for this object.
|
public XLIFFITSFilterExtension(XMLInputFactory xmlFactory, IITSDataStore datastore, URI docURI, XLIFFFilter filter)
public void parseInDocumentITSStandoff(XMLEventReader eventReader, String inStreamCharset) throws XMLStreamException
XMLStreamExceptionpublic static int[] parseXLQIPos(String data, org.slf4j.Logger logger)
data - the value to parse.logger - the logger to use for warnings.public void setXLIFFReader(XMLStreamReader reader)
public ITSStandoffManager getITSStandoffManager()
protected void readTextUnitITSAttributes(ITextUnit resource) throws IOException
IOExceptionprotected GenericAnnotations readTextContainerITSAttributes() throws IOException
IOExceptionprotected GenericAnnotations readInlineCodeITSAttributes() throws IOException
IOExceptionprotected ITSLQIAnnotations readITSLQI() throws IOException
IOExceptionprotected ITSProvenanceAnnotations readITSProvenance() throws IOException
IOExceptionprotected GenericAnnotation readITSAllowedCharacters()
protected GenericAnnotation readITSMtConfidence()
protected GenericAnnotation readITSLQR()
protected GenericAnnotation readITSStorageSize()
protected GenericAnnotation readITSExternalResource()
protected GenericAnnotation readITSLocaleFilter()
protected static String getResourcePart(String uriRef)
uriRef - the URI to process.Copyright © 2022. All rights reserved.