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

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

public final class ConverterMatchingUtil
extends Object

A utility class for converter matching routines.

Author:
AGH CAST Team

Constructor Summary
ConverterMatchingUtil()
           
 
Method Summary
static boolean matchesDataSets(ConverterSpecification spec, List<? extends IDataSet<? extends IElement>> dataSets)
          Checks if the given list of data sets meets the converter specification.
static boolean matchesInputEntities(ConverterSpecification spec, MultiMap<ConverterInputEntry,? extends IDataSet<? extends IElement>> dataSets)
          Checks if the given map of data sets meets the converter specification.
static boolean matchesTypes(ConverterSpecification spec, List<Type> types)
          Checks if given list of types meets the converter specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterMatchingUtil

public ConverterMatchingUtil()
Method Detail

matchesTypes

public static boolean matchesTypes(ConverterSpecification spec,
                                   List<Type> types)
Checks if given list of types meets the converter specification.

Parameters:
spec - converter specification
types - list of data set types
Returns:
true if specification requirements are fulfilled

matchesDataSets

public static boolean matchesDataSets(ConverterSpecification spec,
                                      List<? extends IDataSet<? extends IElement>> dataSets)
Checks if the given list of data sets meets the converter specification.

Parameters:
spec - converter specification
dataSets - list of data sets
Returns:
true if specification requirements are fulfilled

matchesInputEntities

public static boolean matchesInputEntities(ConverterSpecification spec,
                                           MultiMap<ConverterInputEntry,? extends IDataSet<? extends IElement>> dataSets)
Checks if the given map of data sets meets the converter specification.

Parameters:
spec - converter specification
dataSets - map of data sets indexed by input entries
Returns:
true if specification requirements are fulfilled


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