Fish & Chips Club 4.10.0.0

hirondelle.fish.translate.unknown
Class UnknownBaseTextRecorder

Object
  extended by ActionImpl
      extended by hirondelle.fish.translate.unknown.UnknownBaseTextRecorder
All Implemented Interfaces:
Action

public final class UnknownBaseTextRecorder
extends ActionImpl

Toggle the recording of unknown BaseText.

See Translator for a definition of BaseText.

When a particular text snippet is first encountered by various translation tools, it is categorized as "unknown" BaseText. Such unknown items can be collected by calling this Action, which will start to 'record' such items as they are found. Later, the items are evaluated one by one, to determine if they should be treated as translatable items.

Operations performed :TranslatorImpl.startRecordingUnknowns() and TranslatorImpl.stopRecordingUnknowns().

View :

Field Summary
static RequestParameter SupportedOperation
          RequestParameter defining the operations supported by this template.
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
UnknownBaseTextRecorder(RequestParser aRequestParser)
          Constructor.
 
Method Summary
 ResponsePage execute()
          Toggle the recording of unknown BaseText, according to the value of SupportedOperation.
 
Methods inherited from class ActionImpl
addError, addError, addError, addMessage, addMessage, addToRequest, addToSession, copyFromSessionToRequest, createSessionAndCsrfToken, endSession, getErrors, getExistingSession, getFromSession, getIdParam, getIdParams, getLocale, getLoggedInUserName, getMessages, getOperation, getOrderBy, getParam, getParamUnsafe, getRequestParser, getResponsePage, getTimeZone, getUserId, hasErrors, removeFromSession, setResponsePage
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SupportedOperation

public static final RequestParameter SupportedOperation
RequestParameter defining the operations supported by this template.

The underlying request must contain a parameter named 'Operation', whose single value can be parsed successfully by Operation.valueOf(java.lang.String) into one of the following supported operations :

Constructor Detail

UnknownBaseTextRecorder

public UnknownBaseTextRecorder(RequestParser aRequestParser)
Constructor.

Method Detail

execute

public ResponsePage execute()
                     throws AppException
Toggle the recording of unknown BaseText, according to the value of SupportedOperation.

Uses TranslatorImpl.startRecordingUnknowns() and TranslatorImpl.stopRecordingUnknowns().

Specified by:
execute in interface Action
Specified by:
execute in class ActionImpl
Throws:
AppException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26