edu.mayo.informatics.lexgrid.convert.validator.resolution
Class AbstractResolver<T>

java.lang.Object
  extended by edu.mayo.informatics.lexgrid.convert.validator.resolution.AbstractResolver<T>
All Implemented Interfaces:
Resolver
Direct Known Subclasses:
EntityBatchInsertResolver, NullNamespaceResolver

public abstract class AbstractResolver<T>
extends java.lang.Object
implements Resolver

The Class AbstractResolver.

Author:
Kevin Peterson

Field Summary
static java.lang.String UNRESOLVED_DETAILS
          The UNRESOLVE d_ details.
 
Constructor Summary
AbstractResolver()
           
 
Method Summary
protected abstract  java.util.List<java.lang.String> doGetValidErrorCodes()
          Do get valid error codes.
abstract  ErrorResolutionReport.ResolutionStatus doResolveError(T errorObject)
          Do resolve error.
abstract  java.lang.String getResolutionDetails()
          Gets the resolution details.
 java.lang.String getUnresolvedDetails()
          Gets the unresolved details.
 boolean isResolverValidForError(java.lang.String errorCode)
          Checks if is resolver valid for error.
 ResolvedLoadValidationError resolveError(LoadValidationError error)
          Resolve error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNRESOLVED_DETAILS

public static java.lang.String UNRESOLVED_DETAILS
The UNRESOLVE d_ details.

Constructor Detail

AbstractResolver

public AbstractResolver()
Method Detail

isResolverValidForError

public boolean isResolverValidForError(java.lang.String errorCode)
Description copied from interface: Resolver
Checks if is resolver valid for error.

Specified by:
isResolverValidForError in interface Resolver
Parameters:
errorCode - the error code
Returns:
true, if is resolver valid for error

doGetValidErrorCodes

protected abstract java.util.List<java.lang.String> doGetValidErrorCodes()
Do get valid error codes.

Returns:
the list< string>

resolveError

public ResolvedLoadValidationError resolveError(LoadValidationError error)
Description copied from interface: Resolver
Resolve error.

Specified by:
resolveError in interface Resolver
Parameters:
error - the error
Returns:
the resolved load validation error

doResolveError

public abstract ErrorResolutionReport.ResolutionStatus doResolveError(T errorObject)
Do resolve error.

Parameters:
errorObject - the error object
Returns:
true, if successful

getResolutionDetails

public abstract java.lang.String getResolutionDetails()
Gets the resolution details.

Returns:
the resolution details

getUnresolvedDetails

public java.lang.String getUnresolvedDetails()
Gets the unresolved details.

Returns:
the unresolved details

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.