public class XLIFFSkeletonWriter extends GenericSkeletonWriter
| Modifier and Type | Field and Description |
|---|---|
static String |
ALTTRANSMARKER |
static String |
CONTEXT_GROUP_MARKER |
static String |
ITSNSDECL |
static String |
NOTEMARKER |
static String |
SEGSOURCEMARKER |
allowEmptyOutputTarget, ALLOWEMPTYOUTPUTTARGET, encoderManager, inputLoc, isMultilingual, layer, outputEncoding, outputLoc, storageStack| Constructor and Description |
|---|
XLIFFSkeletonWriter() |
XLIFFSkeletonWriter(Parameters params) |
XLIFFSkeletonWriter(Parameters params,
XLIFFContent fmt,
ITSContent itsCont,
ITSStandoffManager itsStandoffManager,
Map<String,GenericAnnotations> lqiStandoff,
Map<String,GenericAnnotations> provStandoff,
CharsetEncoder chsEnc) |
_processEndGroup, _processStartGroup, addToReferents, close, getContent, getEncoderManager, getInputLoc, getLayer, getOutputEncoding, getOutputLoc, getReference, getReferentCopies, getReferents, getSfWriter, getString, getString, getString, getString, isAllowEmptyOutputTarget, isCodeThatDisablesEncoding, isMultilingual, processDocumentPart, processEndGroup, processEndSubDocument, processEndSubfilter, processStartSubfilter, setAllowEmptyOutputTarget, setEncoderManager, setLayer, setMultilingual, setOutputEncoding, setOutputLoc, setReferentCopies, setReferentspublic static final String SEGSOURCEMARKER
public static final String ALTTRANSMARKER
public static final String ITSNSDECL
public static final String NOTEMARKER
public static final String CONTEXT_GROUP_MARKER
public XLIFFSkeletonWriter()
public XLIFFSkeletonWriter(Parameters params)
public XLIFFSkeletonWriter(Parameters params, XLIFFContent fmt, ITSContent itsCont, ITSStandoffManager itsStandoffManager, Map<String,GenericAnnotations> lqiStandoff, Map<String,GenericAnnotations> provStandoff, CharsetEncoder chsEnc)
public String processStartDocument(LocaleId outputLocale, String outputEncoding, ILayerProvider layer, EncoderManager encoderManager, StartDocument resource)
ISkeletonWriterprocessStartDocument in interface ISkeletonWriterprocessStartDocument in class GenericSkeletonWriteroutputLocale - the output locale.outputEncoding - the name of the output charset encoding.layer - the layer provider to use.encoderManager - the encoder manager to use.resource - the StartDocument resource associated with the event.public String processTextUnit(ITextUnit resource)
ISkeletonWriterprocessTextUnit in interface ISkeletonWriterprocessTextUnit in class GenericSkeletonWriterresource - the TextUnit resource associated with the event.public String processStartSubDocument(StartSubDocument resource)
ISkeletonWriterprocessStartSubDocument in interface ISkeletonWriterprocessStartSubDocument in class GenericSkeletonWriterresource - the StartSubDocument resource associated with the event.public String processStartGroup(StartGroup resource)
ISkeletonWriterprocessStartGroup in interface ISkeletonWriterprocessStartGroup in class GenericSkeletonWriterresource - the StartGroup resource associated with the event.public String processEndDocument(Ending resource)
ISkeletonWriterprocessEndDocument in interface ISkeletonWriterprocessEndDocument in class GenericSkeletonWriterresource - the Ending resource associated with the event.public void addUnusedAnnotations(StringBuilder endDoc, ITSContent itsContent, Collection<String> storedAnns, HashMap<String,GenericAnnotations> standoff, Class<? extends GenericAnnotations> type)
protected String getString(GenericSkeletonPart part, EncoderContext context)
getString in class GenericSkeletonWriterprotected String getContent(ITextUnit tu, LocaleId locToUse, EncoderContext context)
GenericSkeletonWritergetContent in class GenericSkeletonWritertu - The text unit to process.locToUse - locale to output. Use null for the source, or the locale
for the target locales.context - Context flag: 0=text, 1=skeleton, 2=inline.protected String expandCodeContent(Code code, LocaleId locToUse, EncoderContext context)
expandCodeContent in class GenericSkeletonWriterprotected String getPropertyValue(INameable resource, String name, LocaleId locToUse, EncoderContext context)
getPropertyValue in class GenericSkeletonWriterpublic ITSStandoffManager getITSStandoffManager()
public void setITSStandoffManager(ITSStandoffManager itsStandoffManager)
public Parameters getParams()
public XLIFFContent getFmt()
public ITSContent getItsCont()
public Map<String,GenericAnnotations> getLqiStandoff()
public Map<String,GenericAnnotations> getProvStandoff()
public CharsetEncoder getCharsetEncoder()
Copyright © 2021. All rights reserved.