org.expasy.jpl.commons.base.builder
Interface StringBasedFactory<T>

Type Parameters:
T - the built class.
All Known Implementing Classes:
AbstractStringBasedComparator, ChainedStringCodedComparator, NumberStringBasedComparator, StringCodedComparatorFactory, StringStringBasedComparator

public interface StringBasedFactory<T>

The StringBasedFactory interface should be implemented by any factory building T type instance from a given string.

Version:
1.0
Author:
nikitin

Method Summary
 T createFromString(String code)
          Create an instance of T-type object from string if code is null or empty, T will have to be have an default status
 

Method Detail

createFromString

T createFromString(String code)
                   throws ParseException
Create an instance of T-type object from string if code is null or empty, T will have to be have an default status

Throws:
ParseException


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.