atg.projects.store.search
Class LanguageParserOptions

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.logging.LoggingSupport
          extended by atg.projects.store.search.LanguageParserOptions
All Implemented Interfaces:
atg.nucleus.logging.ApplicationLogging, atg.nucleus.logging.TraceApplicationLogging, atg.nucleus.logging.VariableArgumentApplicationLogging

public class LanguageParserOptions
extends atg.nucleus.logging.LoggingSupport

This class builds language constraint for search query.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
static java.lang.String REQUEST_LOCALE_PATH
          Default request locale path
 
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging
DEFAULT_LOG_TRACE_STATUS
 
Fields inherited from interface atg.nucleus.logging.ApplicationLogging
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
 
Constructor Summary
LanguageParserOptions()
           
 
Method Summary
protected  java.util.Locale getCurrentLocale()
           
 atg.search.routing.utils.Language getLanguage()
          Returns a Language for the locale's language that is appropriate for display to the user.
 java.lang.String getRequestLocalePath()
          Returns path to the RequestLocale component.
 void setRequestLocalePath(java.lang.String pRequestLocalePath)
          Sets new path to the RequestLocale component.
 
Methods inherited from class atg.nucleus.logging.LoggingSupport
getLogger, getLoggingForVlogging, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, setLogger, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values

REQUEST_LOCALE_PATH

public static final java.lang.String REQUEST_LOCALE_PATH
Default request locale path

See Also:
Constant Field Values
Constructor Detail

LanguageParserOptions

public LanguageParserOptions()
Method Detail

setRequestLocalePath

public void setRequestLocalePath(java.lang.String pRequestLocalePath)
Sets new path to the RequestLocale component.

Parameters:
pRequestLocalePath - path to the RequestLocale component.

getRequestLocalePath

public java.lang.String getRequestLocalePath()
Returns path to the RequestLocale component.

Returns:
path to the RequestLocale component.

getLanguage

public atg.search.routing.utils.Language getLanguage()
Returns a Language for the locale's language that is appropriate for display to the user. Actual Locale object retireves from the current request.

Returns:
language that used by ATG Search

getCurrentLocale

protected java.util.Locale getCurrentLocale()
Returns:
locale from current request