Class SubFilterSkeletonWriter

    • Method Detail

      • getStartResourceId

        public String getStartResourceId()
      • processStartDocument

        public String processStartDocument​(LocaleId outputLocale,
                                           String outputEncoding,
                                           EncoderManager encoderManager,
                                           StartDocument resource)
        Description copied from interface: ISkeletonWriter
        Processes the START_DOCUMENT event.
        Specified by:
        processStartDocument in interface ISkeletonWriter
        Parameters:
        outputLocale - the output locale.
        outputEncoding - the name of the output charset encoding.
        encoderManager - the encoder manager to use.
        resource - the StartDocument resource associated with the event.
        Returns:
        the string output corresponding to this event.
      • processEndDocument

        public String processEndDocument​(Ending resource)
        Get output created by this skeleton writer from a sequence of events. This method is useful when only an ISkeletonWriter reference is available.
        Specified by:
        processEndDocument in interface ISkeletonWriter
        Parameters:
        resource - can be with the GET_OUTPUT_TOKEN_ID ID (to return the overall output of this skeleton writer), or any other Ending resource.
        Returns:
        output of this skeleton writer if the resource is with the GET_OUTPUT_TOKEN_ID ID or an empty string otherwise.
      • processStartSubDocument

        public String processStartSubDocument​(StartSubDocument resource)
        Description copied from interface: ISkeletonWriter
        Processes a START_SUBDOCUMENT event.
        Specified by:
        processStartSubDocument in interface ISkeletonWriter
        Parameters:
        resource - the StartSubDocument resource associated with the event.
        Returns:
        the string output corresponding to this event.
      • processEndSubDocument

        public String processEndSubDocument​(Ending resource)
        Description copied from interface: ISkeletonWriter
        Processes the END_SUBDOCUMENT event.
        Specified by:
        processEndSubDocument in interface ISkeletonWriter
        Parameters:
        resource - the Ending resource associated with the event.
        Returns:
        the string output corresponding to this event.
      • processStartGroup

        public String processStartGroup​(StartGroup resource)
        Description copied from interface: ISkeletonWriter
        Processes the START_GROUP event.
        Specified by:
        processStartGroup in interface ISkeletonWriter
        Parameters:
        resource - the StartGroup resource associated with the event.
        Returns:
        the string output corresponding to this event.
      • processEndGroup

        public String processEndGroup​(Ending resource)
        Description copied from interface: ISkeletonWriter
        Processes the END_GROUP event.
        Specified by:
        processEndGroup in interface ISkeletonWriter
        Parameters:
        resource - the Ending resource associated with the event.
        Returns:
        the string output corresponding to this event.
      • processTextUnit

        public String processTextUnit​(ITextUnit resource)
        Description copied from interface: ISkeletonWriter
        Processes the TEXT_UNIT event.
        Specified by:
        processTextUnit in interface ISkeletonWriter
        Parameters:
        resource - the TextUnit resource associated with the event.
        Returns:
        the string output corresponding to this event.
      • processTextUnit

        public String processTextUnit​(ITextUnit resource,
                                      boolean isMultilingual)
        Description copied from interface: ISkeletonWriter
        Used for multilingual skeleton writers. Processes the TEXT_UNIT event.
        Specified by:
        processTextUnit in interface ISkeletonWriter
        Parameters:
        resource - the TextUnit resource associated with the event.
        isMultilingual - true if the ITextUnit is multilingual.
        Returns:
        the string output corresponding to this event.
      • processDocumentPart

        public String processDocumentPart​(DocumentPart resource)
        Description copied from interface: ISkeletonWriter
        Processes the DOCUMENT_PART event.
        Specified by:
        processDocumentPart in interface ISkeletonWriter
        Parameters:
        resource - the DocumentPart resource associated with the event.
        Returns:
        the string output corresponding to this event.
      • getEncodedOutput

        public String getEncodedOutput​(LocaleId locToUse)
      • getSourceOutput

        public String getSourceOutput()
      • getOutput

        public String getOutput()
      • updateTargetOutputs

        public void updateTargetOutputs​(String text)