hudson.plugins.testabilityexplorer.parser.selectors
Class DefaultConverterSelector

java.lang.Object
  extended by hudson.plugins.testabilityexplorer.parser.selectors.DefaultConverterSelector
All Implemented Interfaces:
ConverterSelector

public class DefaultConverterSelector
extends java.lang.Object
implements ConverterSelector

Returns ElementConverter's based on the given XML element tag names.

Author:
reik.schatz

Constructor Summary
DefaultConverterSelector()
          Initializes the DefaultConverterSelector with four ElementConverters.
 
Method Summary
 ElementConverter getConverter(java.lang.String elementName)
          Returns a ElementConverter that is mapped to the given elementName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConverterSelector

public DefaultConverterSelector()
Initializes the DefaultConverterSelector with four ElementConverters. The converters to be added are of type and will be returned if you call getConverter(String) with one of these String's

Method Detail

getConverter

public ElementConverter getConverter(java.lang.String elementName)
Returns a ElementConverter that is mapped to the given elementName. This ConverterSelector will return a ElementConverter for the following elementName's: If called with null or any other String, this method returns nuĺl.

Specified by:
getConverter in interface ConverterSelector
Parameters:
elementName - String
Returns:
ElementConverter or null


Copyright © 2008. All Rights Reserved.