pl.edu.agh.cast.importer.base.parser.analyzer
Interface IAnalyzer

All Known Implementing Classes:
AbstractDateAnalyzer, DateAnalyzer, DateAndTimeAnalyzer, DirectionAnalyzer, IntegerAnalyzer, StringAnalyzer, TimeAnalyzer

public interface IAnalyzer

Interface for classes responsible for syntactic analysis of a specified type of tokens, which allows for mapping of given Strings to appropriate Objects.

Author:
AGH CAST Team

Method Summary
 List<Object> analyze(String tokenToAnalyze)
          Analyzes a given token and returns an appropriate object.
 IAnalyzer createCopy()
          Creates a copy of the current analyzer.
 List<Class<?>> getReturnTypes()
          Retrieves the return types of the analyze(String) method.
 boolean isComplete()
          Checks whether current analyzer is fully configured - all necessary parameters are present and the the analysis process can be performed.
 void setDefaultValue(String defaultValue)
          Sets the default value for the analyzer.
 

Method Detail

analyze

List<Object> analyze(String tokenToAnalyze)
                     throws UnsupportedTokenException
Analyzes a given token and returns an appropriate object.

Parameters:
tokenToAnalyze - the token to analyze
Returns:
the list of analyzed objects
Throws:
UnsupportedTokenException

getReturnTypes

List<Class<?>> getReturnTypes()
Retrieves the return types of the analyze(String) method.

Returns:
analysis return types

createCopy

IAnalyzer createCopy()
Creates a copy of the current analyzer.

Returns:
analyzer of the same type and parameters set

setDefaultValue

void setDefaultValue(String defaultValue)
Sets the default value for the analyzer.

Parameters:
defaultValue - the analyzer's default value

isComplete

boolean isComplete()
Checks whether current analyzer is fully configured - all necessary parameters are present and the the analysis process can be performed.

Returns:
flag indicating the analyzer's completion state


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