pl.edu.agh.cast.data.converter
Class ConverterRegistry

java.lang.Object
  extended by pl.edu.agh.cast.data.converter.ConverterRegistry

public final class ConverterRegistry
extends Object

A locator and registry of data set converters.

Author:
AGH CAST Team

Method Summary
static ConverterRegistry getInstance()
           
 List<ConverterReference> getMatchingConverters(List<Type> types)
          Returns a list of converter references which match the given list of data set types.
 List<ConverterReference> getMatchingConverters(Type type)
          Returns a list of converter references which match the given data set type.
static boolean isMatching(ConverterSpecification spec, List<Type> types)
          Checks if the given converter specification is matching the given list of data set types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ConverterRegistry getInstance()

getMatchingConverters

public List<ConverterReference> getMatchingConverters(List<Type> types)
Returns a list of converter references which match the given list of data set types.

Parameters:
types - list of data set types
Returns:
list of matching converter references

getMatchingConverters

public List<ConverterReference> getMatchingConverters(Type type)
Returns a list of converter references which match the given data set type.

Parameters:
type - the data set type
Returns:
list of matching converter references

isMatching

public static boolean isMatching(ConverterSpecification spec,
                                 List<Type> types)
Checks if the given converter specification is matching the given list of data set types.

Parameters:
spec - converter specification to check
types - list of data set types
Returns:
true if given converter specification matches the given list of data set types


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.