XDC - v. 0.6.1

net.sf.xdc.processing
Class DialectHandler

java.lang.Object
  extended bynet.sf.xdc.processing.DialectHandler

public class DialectHandler
extends java.lang.Object

This class is used for determining the XML dialect of an input XML file in order to be able to apply the correct XSLT stylesheet to the input file.

Since:
0.5
Version:
0.5
Author:
Jens Voß

Constructor Summary
protected DialectHandler(java.lang.String name, java.lang.String xslPath)
          Protected constructor.
 
Method Summary
static DialectHandler getDialectHandler(java.io.File file, java.lang.String packageName, org.apache.commons.cli.CommandLine commandLine)
          Static getter method for the correct DialectHandler object.
 java.lang.String getName()
          Getter method for this DialectHandler's name.
 java.lang.String getXslResourcePath()
          Getter method for this DialectHandler's resource path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialectHandler

protected DialectHandler(java.lang.String name,
                         java.lang.String xslPath)
Protected constructor. Invoked in static initializer of this class.

Parameters:
name - The name of this DialectHandler
xslPath - The relative path (within the classpath) of this DialectHandler
Method Detail

getDialectHandler

public static DialectHandler getDialectHandler(java.io.File file,
                                               java.lang.String packageName,
                                               org.apache.commons.cli.CommandLine commandLine)
Static getter method for the correct DialectHandler object.

Parameters:
file - The input file for which the correct DialectHandler is retrieved
packageName -
commandLine - The CommandLine object which may contain additional elements controlling which DialectHandler to return
Returns:
The correct DialectHandler for the input file depending on the command line settings

getName

public java.lang.String getName()
Getter method for this DialectHandler's name.

Returns:
The name of this DialectHandler

getXslResourcePath

public java.lang.String getXslResourcePath()
Getter method for this DialectHandler's resource path.

Returns:
The resource path of this DialectHandler

XDC - v. 0.6.1