org.barracudamvc.taskdefs
Class LocalizeXmlcUtilsImpl

java.lang.Object
  extended byorg.enhydra.xml.xmlc.taskdef.XmlcUtils
      extended byorg.enhydra.xml.xmlc.taskdef.DefaultXmlcUtilsImpl
          extended byorg.barracudamvc.taskdefs.LocalizeXmlcUtilsImpl

public class LocalizeXmlcUtilsImpl
extends org.enhydra.xml.xmlc.taskdef.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.xml.xmlc.taskdef.XmlcUtils
DEFAULT_OPTIONS_FILENAME, DEFAULT_OPTIONS_FILETYPE, DEFAULT_UTILS_CLASS_KEY, DEFAULT_UTILS_CLASS_NAME
 
Constructor Summary
LocalizeXmlcUtilsImpl()
          Construct default LocalizeXmlcUtilsImpl.
 
Method Summary
 String buildClassName(String theFullBaseFileName, String theModifier)
          Build a Java class name out of the specified components.
 
Methods inherited from class org.enhydra.xml.xmlc.taskdef.DefaultXmlcUtilsImpl
buildFullBaseFileName, getOptionFiles, getOptionFiles, getOptionFiles, getOptionFiles, getOptionFiles
 
Methods inherited from class org.enhydra.xml.xmlc.taskdef.XmlcUtils
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizeXmlcUtilsImpl

public LocalizeXmlcUtilsImpl()
Construct default LocalizeXmlcUtilsImpl. This was formerly protected to force the use of XmlcUtils.create() factory method. However, since XmlcUtils is now in a separate package (org.enhydra.xml.xmlc.taskdef), it is necessary to make this constructor public. It should be understood, however, that one should use XmlcUtils.create() rather than using this constructor directly.

Method Detail

buildClassName

public String buildClassName(String theFullBaseFileName,
                             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

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 © 2004 BarracudaMVC.org All Rights Reserved.