org.enhydra.barracuda.taskdefs
Class DummyXmlcUtils

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

public synchronized class DummyXmlcUtils
extends XmlcUtils


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
DummyXmlcUtils()
           
 
Method Summary
 java.lang.String buildClassName(java.lang.String, java.lang.String)
          Build a Java class name out of the specified components.
 java.lang.String buildFullBaseFileName(java.lang.String, java.lang.String, java.lang.String)
          Build a full base file name (i.e. with no file type) out of the specified components.
 java.lang.String[] getOptionFiles(java.io.File)
          Get a list of options files for the specified directory.
 java.lang.String[] getOptionFiles(java.io.File[], java.lang.String)
          Get a list of options files for the specified directories, having the specified name.
 java.lang.String[] getOptionFiles(java.io.File[], java.lang.String[])
          Get a list of options files for the specified directories, having the specified names.
 java.lang.String[] getOptionFiles(java.io.File, java.lang.String)
          Get a list of options files for the specified directory, having the specified name.
 java.lang.String[] getOptionFiles(java.io.File, java.lang.String[])
          Get a list of options files for the specified directory, having the specified names.
 
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

DummyXmlcUtils

public DummyXmlcUtils()
Method Detail

getOptionFiles

public java.lang.String[] getOptionFiles(java.io.File)
Description copied from class: XmlcUtils
Get a list of options files for the specified directory. This method will search for the default options file name (options.xmlc) in the specified directory and the user.dir directory as well. It will return them in that order.

Specified by:
getOptionFiles in class XmlcUtils
Parameters:
- The directory to look in for the options file.
Returns:
An array of options files with absolute paths. An empty array if none found.

getOptionFiles

public java.lang.String[] getOptionFiles(java.io.File,
                                         java.lang.String)
Description copied from class: XmlcUtils
Get a list of options files for the specified directory, having the specified name. This method will search for the specified options file name and the default options file name (options.xmlc) in the specified directory and the user.dir directory as well. It will return them in that order.

Specified by:
getOptionFiles in class XmlcUtils
Parameters:
- The directory to look in for the options file.
- The name of the options file to look for.
Returns:
An array of options files with absolute paths. An empty array if none found.

getOptionFiles

public java.lang.String[] getOptionFiles(java.io.File,
                                         java.lang.String[])
Description copied from class: XmlcUtils
Get a list of options files for the specified directory, having the specified names. This method will search for the specified options file names and the default options file name (options.xmlc) in the specified directory and the user.dir directory as well. It will return them in that order.

Specified by:
getOptionFiles in class XmlcUtils
Parameters:
- The directory to look in for the options file.
- The list of names of the options file to look for.
Returns:
An array of options files with absolute paths. An empty array if none found.

getOptionFiles

public java.lang.String[] getOptionFiles(java.io.File[],
                                         java.lang.String)
Description copied from class: XmlcUtils
Get a list of options files for the specified directories, having the specified name. This method will search for the specified options file name and the default options file name (options.xmlc) in the specified directories and the user.dir directory as well. It will return them in that order.

Specified by:
getOptionFiles in class XmlcUtils
Parameters:
- The list of directories to look in for the options files.
- The name of the options file to look for.
Returns:
An array of options files with absolute paths. An empty array if none found.

getOptionFiles

public java.lang.String[] getOptionFiles(java.io.File[],
                                         java.lang.String[])
Description copied from class: XmlcUtils
Get a list of options files for the specified directories, having the specified names. This method will search for the specified options file names and the default options file name (options.xmlc) in the specified directories and the user.dir directory as well. It will return them in that order.

Specified by:
getOptionFiles in class XmlcUtils
Parameters:
- The list of directories to look in for the options files.
- The list of names of the options file to look for.
Returns:
An array of options files with absolute paths. An empty array if none found.

buildFullBaseFileName

public java.lang.String buildFullBaseFileName(java.lang.String,
                                              java.lang.String,
                                              java.lang.String)
Description copied from class: XmlcUtils
Build a full base file name (i.e. with no file type) out of the specified components. Note that any directory prefix on the theBaseFileName file is stripped before thePackageDir is applied. So that the following call : buildFullBaseFileName("a.b.c", "foo/resources", "config/test.html"); will return a string of "a/b/c/foo/resources/test" and this call : buildFullBaseFileName("a.b.c", "", "config/test.html"); will return a string of "a/b/c/config/test"

Specified by:
buildFullBaseFileName in class XmlcUtils
Parameters:
- The name of the package to prepend to the file name. This should be specified using the Java naming convention i.e. org.enhydra.xmlc
- The name of the directory to prepend to the file name. This is a directory path that can be specified using either '/' or '\' i.e. foo/resources
- The base file name that the preceding strings are prepended to.
Returns:
A string representing the full path resulting from the specified components with all separators set to '/'

buildClassName

public java.lang.String buildClassName(java.lang.String,
                                       java.lang.String)
Description copied from class: XmlcUtils
Build a Java class name out of the specified components.

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


Copyright © 2001 Enhydra.org