uk.ac.ebi.intenz.tools.sib.writer
Class LineWrapperFactory
java.lang.Object
uk.ac.ebi.intenz.tools.sib.writer.LineWrapperFactory
public class LineWrapperFactory
- extends Object
This class provides a factory method to retrieve the adequate LineWrapper
implementation.
- Version:
- $Revision: 1.3 $ $Date: 2008/11/18 17:01:10 $
- Author:
- Michael Darsow
Method Summary |
static LineWrapper |
create(String wholeText,
LineType lineType)
Returns a LineWrapper implementation which will be chosen according to the needs of the text to be
wrapped. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineWrapperFactory
public LineWrapperFactory()
create
public static LineWrapper create(String wholeText,
LineType lineType)
- Returns a
LineWrapper
implementation which will be chosen according to the needs of the text to be
wrapped.
- Parameters:
wholeText
- The text to be wrapped.lineType
- The LineType
- Returns:
- a concrete
LineWrapper
implementation.
- Throws:
NullPointerException
- if any of the parameters is null
.
Copyright © 2013 EMBL-EBI. All Rights Reserved.