org.knime.base.node.io.filereader
Class SmilesTypeHelper

java.lang.Object
  extended by org.knime.base.node.io.filereader.SmilesTypeHelper

final class SmilesTypeHelper
extends Object

This a a little helper class that enables the FileReader to create SmilesCells if the chem-Plugin is available. Because it is not visible from the base plugin, the necessary classes and fields are loaded via reflection.

Author:
Thorsten Meinl, University of Konstanz

Field Summary
static SmilesTypeHelper INSTANCE
          The one and only instance of this class.
 
Method Summary
 DataType getSmilesType()
          Returns the Smiles type.
 boolean isSmilesAvailable()
          Returns if SmilesCells are available.
 DataCell newInstance(String smiles)
          Creates a new SmilesCell using the given String as Smiles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SmilesTypeHelper INSTANCE
The one and only instance of this class.

Method Detail

newInstance

public DataCell newInstance(String smiles)
Creates a new SmilesCell using the given String as Smiles.

Parameters:
smiles - a Smiles string
Returns:
a SmilesCell

getSmilesType

public DataType getSmilesType()
Returns the Smiles type.

Returns:
the Smiles type

isSmilesAvailable

public boolean isSmilesAvailable()
Returns if SmilesCells are available.

Returns:
true if SmilesCells are available, false otherwise


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.