com.bowstreet.builders.webapp
Class LocalizedResourceBuilder

java.lang.Object
  extended by com.bowstreet.builders.webapp.LocalizedResourceBuilderBase
      extended by com.bowstreet.builders.webapp.LocalizedResourceBuilder
All Implemented Interfaces:
WebAppBuilder, IExemplar

public class LocalizedResourceBuilder
extends com.bowstreet.builders.webapp.LocalizedResourceBuilderBase
implements WebAppBuilder, IExemplar

Localized Resource Builder WebApp code.


Field Summary
static java.lang.String CURRENT_LOCALE
           
static java.lang.String GET_LOCAL_FROM_ACTION
           
static java.lang.String LOCALE_INFO_VAR_NAME
           
static java.lang.String LOCALIZATION_OBJECT
           
static java.lang.String LOCALIZATION_OBJECTS
           
static java.lang.String RESOURCE_DATA_VAR_NAME
           
static java.lang.String RESOURCE_INFORMATION
           
static java.lang.String RESOURCE_VARIABLE
           
static java.lang.String RESOURCE_VARIABLES
           
static java.lang.String RESOURCE_XML_TOPNAME
           
static java.lang.String RUNTIME_LOCALIZATION_ENABLED
           
static java.lang.String RUNTIME_RESOURCE_HELPER
           
static java.lang.String TRUE
           
static java.lang.String USERS_LOCALE_ACTION
           
 
Fields inherited from class com.bowstreet.builders.webapp.LocalizedResourceBuilderBase
LOCALIZED_RESOURCE_VARIABLE, LOCALIZEDRESOURCE_LOCALINFO_VARIABLE
 
Constructor Summary
LocalizedResourceBuilder()
           
 
Method Summary
 void doBuilderCall(GenContext genContext, WebApp webApp, BuilderCall builderCall, BuilderInputs builderInputs)
          doBuilderCall - WebApp builders do their regen work here, getting inputs from builderInputs and adding/modifying elements in the WebApp.
static java.util.List findLocalizedResources(WebApp webapp)
          Find localized resources
static java.util.List findLocalizedResources(WebApp webapp, java.lang.String skip)
          Find localized resources
static IXml getDefaultLocalizedResourceInfo(WebApp webapp)
          Return the IXml for the default "Info" variable.
static java.lang.String makeXmlElementName(java.lang.String strName)
          Makes a valid XML element's name from the givn string.
 java.lang.Object newInstance()
          IExemplar implementation
 
Methods inherited from class com.bowstreet.builders.webapp.LocalizedResourceBuilderBase
getResourceBundle, getResourceBundle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_LOCALE

public static final java.lang.String CURRENT_LOCALE
See Also:
Constant Field Values

GET_LOCAL_FROM_ACTION

public static final java.lang.String GET_LOCAL_FROM_ACTION
See Also:
Constant Field Values

LOCALE_INFO_VAR_NAME

public static final java.lang.String LOCALE_INFO_VAR_NAME
See Also:
Constant Field Values

LOCALIZATION_OBJECT

public static final java.lang.String LOCALIZATION_OBJECT
See Also:
Constant Field Values

LOCALIZATION_OBJECTS

public static final java.lang.String LOCALIZATION_OBJECTS
See Also:
Constant Field Values

RESOURCE_DATA_VAR_NAME

public static final java.lang.String RESOURCE_DATA_VAR_NAME
See Also:
Constant Field Values

RESOURCE_INFORMATION

public static final java.lang.String RESOURCE_INFORMATION
See Also:
Constant Field Values

RESOURCE_VARIABLE

public static final java.lang.String RESOURCE_VARIABLE
See Also:
Constant Field Values

RESOURCE_VARIABLES

public static final java.lang.String RESOURCE_VARIABLES
See Also:
Constant Field Values

RESOURCE_XML_TOPNAME

public static final java.lang.String RESOURCE_XML_TOPNAME
See Also:
Constant Field Values

RUNTIME_LOCALIZATION_ENABLED

public static final java.lang.String RUNTIME_LOCALIZATION_ENABLED
See Also:
Constant Field Values

RUNTIME_RESOURCE_HELPER

public static final java.lang.String RUNTIME_RESOURCE_HELPER
See Also:
Constant Field Values

TRUE

public static final java.lang.String TRUE
See Also:
Constant Field Values

USERS_LOCALE_ACTION

public static final java.lang.String USERS_LOCALE_ACTION
See Also:
Constant Field Values
Constructor Detail

LocalizedResourceBuilder

public LocalizedResourceBuilder()
Method Detail

doBuilderCall

public void doBuilderCall(GenContext genContext,
                          WebApp webApp,
                          BuilderCall builderCall,
                          BuilderInputs builderInputs)
Description copied from interface: WebAppBuilder
doBuilderCall - WebApp builders do their regen work here, getting inputs from builderInputs and adding/modifying elements in the WebApp.

Specified by:
doBuilderCall in interface WebAppBuilder
Parameters:
genContext - The GenContext for this regen
webApp - The WebApp under construction
builderCall - Use this to set errors, get BuilderDef, etc.
builderInputs - The inputs for this builder call
For Internal Use Only! Internal API, not supported for public consumption. Subject to change at any time.

findLocalizedResources

public static java.util.List findLocalizedResources(WebApp webapp)
Find localized resources

Parameters:
webapp -
Returns:
list of localized resources

findLocalizedResources

public static java.util.List findLocalizedResources(WebApp webapp,
                                                    java.lang.String skip)
Find localized resources

Parameters:
webapp -
skip - this named resource
Returns:
list of localized resources

getDefaultLocalizedResourceInfo

public static IXml getDefaultLocalizedResourceInfo(WebApp webapp)
Return the IXml for the default "Info" variable. Returns null if not found.

Parameters:
webapp -
Returns:
xml

makeXmlElementName

public static java.lang.String makeXmlElementName(java.lang.String strName)
Makes a valid XML element's name from the givn string. This method replaces all characters that are not allowed in the XML element's name with underscore symbols '_'.

Parameters:
strName - string to use as a base for XML element's name.
Returns:
valid XML element's name based on the given string.

newInstance

public java.lang.Object newInstance()
IExemplar implementation

Specified by:
newInstance in interface IExemplar
Overrides:
newInstance in class com.bowstreet.builders.webapp.LocalizedResourceBuilderBase
For Internal Use Only! Internal API, not supported for public consumption. Subject to change at any time.


Copyright © 2009 IBM. All Rights Reserved.