org.enhydra.barracuda.taskdefs
Class LocalizeXmlcUtilsImpl

java.lang.Object
  |
  +--org.enhydra.barracuda.taskdefs.XmlcUtils
        |
        +--org.enhydra.barracuda.taskdefs.DefaultXmlcUtilsImpl
              |
              +--org.enhydra.barracuda.taskdefs.LocalizeXmlcUtilsImpl

public class LocalizeXmlcUtilsImpl
extends DefaultXmlcUtilsImpl

Implementation of the XmlcUtils class for use when localizing files

Version:
1.0
Author:
Robert Leftwich

Field Summary
 
Fields inherited from class org.enhydra.barracuda.taskdefs.XmlcUtils
DEFAULT_OPTIONS_FILENAME, DEFAULT_OPTIONS_FILETYPE, DEFAULT_UTILS_CLASS_KEY, DEFAULT_UTILS_CLASS_NAME
 
Constructor Summary
protected LocalizeXmlcUtilsImpl()
          Construct default LocalizeXmlcUtilsImpl (protected to force the use of XmlcUtils.create() factory method).
 
Method Summary
 java.lang.String buildClassName(java.lang.String theFullBaseFileName, java.lang.String theModifier)
          Build a Java class name out of the specified components.
 
Methods inherited from class org.enhydra.barracuda.taskdefs.DefaultXmlcUtilsImpl
buildFullBaseFileName, getOptionFiles, getOptionFiles, getOptionFiles, getOptionFiles, getOptionFiles
 
Methods inherited from class org.enhydra.barracuda.taskdefs.XmlcUtils
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizeXmlcUtilsImpl

protected LocalizeXmlcUtilsImpl()
Construct default LocalizeXmlcUtilsImpl (protected to force the use of XmlcUtils.create() factory method).

Method Detail

buildClassName

public java.lang.String buildClassName(java.lang.String theFullBaseFileName,
                                       java.lang.String theModifier)
Build a Java class name out of the specified components. This implementation checks to see if the file name is localized (i.e. it has a _xx suffix - where xx is a country code). If it does, it adds the modifier prior to the _xx suffix but after the file name. e.g. config_en becomes configHTML_en if the modifier is HTML

Overrides:
buildClassName in class DefaultXmlcUtilsImpl
Parameters:
theFullBaseFileName - The full base file name (specified with '/' separators) and no file type. e.g. "org.enhydra.test"
theModifier - The file modifier to append to the class name e.g. HTML
Returns:
A Java class name string


Copyright © 2001 Enhydra.org