Package net.sf.okapi.filters.its.html5
Class HTML5SkeletonWriter
- java.lang.Object
-
- net.sf.okapi.common.skeleton.GenericSkeletonWriter
-
- net.sf.okapi.filters.its.html5.HTML5SkeletonWriter
-
- All Implemented Interfaces:
ISkeletonWriter
public class HTML5SkeletonWriter extends GenericSkeletonWriter
Implements ISkeletonWriter for the ITS filters
-
-
Field Summary
-
Fields inherited from class net.sf.okapi.common.skeleton.GenericSkeletonWriter
allowEmptyOutputTarget, ALLOWEMPTYOUTPUTTARGET, encoderManager, inputLoc, isMultilingual, outputEncoding, outputLoc, storageStack, useDisplayTextForCodes
-
-
Constructor Summary
Constructors Constructor Description HTML5SkeletonWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent(TextFragment tf, LocaleId locToUse, EncoderContext context)Gets the original content of a TextFragment.StringprocessDocumentPart(DocumentPart resource)Processes the DOCUMENT_PART event.StringprocessTextUnit(ITextUnit resource)Processes the TEXT_UNIT event.-
Methods inherited from class net.sf.okapi.common.skeleton.GenericSkeletonWriter
_processEndGroup, _processStartGroup, addToReferents, close, expandCodeContent, getContent, getEncoderManager, getInputLoc, getOutputEncoding, getOutputLoc, getPropertyValue, getReference, getReferentCopies, getReferents, getSfWriter, getString, getString, getString, getString, getString, getStringFromSubfilter, isAllowEmptyOutputTarget, isCodeThatDisablesEncoding, isMultilingual, peekReference, processEndDocument, processEndGroup, processEndSubDocument, processEndSubfilter, processStartDocument, processStartGroup, processStartSubDocument, processStartSubfilter, setAllowEmptyOutputTarget, setEncoderManager, setMultilingual, setOutputEncoding, setOutputLoc, setReferentCopies, setReferents
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.skeleton.ISkeletonWriter
processTextUnit
-
-
-
-
Method Detail
-
getContent
public String getContent(TextFragment tf, LocaleId locToUse, EncoderContext context)
Gets the original content of a TextFragment.- Overrides:
getContentin classGenericSkeletonWriter- Parameters:
tf- the TextFragment to process.locToUse- locale to output. Use null for the source, or the locale for the target locales. This is used for referenced content in inline codes.context- Context flag: 0=text, 1=skeleton, 2=inline.- Returns:
- The string representation of the text unit content.
-
processTextUnit
public String processTextUnit(ITextUnit resource)
Description copied from interface:ISkeletonWriterProcesses the TEXT_UNIT event.- Specified by:
processTextUnitin interfaceISkeletonWriter- Overrides:
processTextUnitin classGenericSkeletonWriter- Parameters:
resource- the TextUnit resource associated with the event.- Returns:
- the string output corresponding to this event.
-
processDocumentPart
public String processDocumentPart(DocumentPart resource)
Description copied from interface:ISkeletonWriterProcesses the DOCUMENT_PART event.- Specified by:
processDocumentPartin interfaceISkeletonWriter- Overrides:
processDocumentPartin classGenericSkeletonWriter- Parameters:
resource- the DocumentPart resource associated with the event.- Returns:
- the string output corresponding to this event.
-
-