org.knime.base.node.io.filetokenizer
Class Comment

java.lang.Object
  extended by org.knime.base.node.io.filetokenizer.Comment

Deprecated. use Comment instead. Will be removed in Ver3.0.

@Deprecated
public class Comment
extends Object


Constructor Summary
Comment(NodeSettingsRO settings)
          Deprecated. Creates a new Comment object and sets its parameters from the config object.
Comment(String left, String right, boolean returnAsToken, boolean includeInToken)
          Deprecated. Creates a new Comment object.
 
Method Summary
 String getBegin()
          Deprecated.  
 String getEnd()
          Deprecated.  
 char getFirstCharOfBegin()
          Deprecated.  
 boolean includeInToken()
          Deprecated.  
 boolean returnAsSeparateToken()
          Deprecated.  
(package private)  void saveToConfig(NodeSettingsWO cfg)
          Deprecated. Writes the object into a NodeSettings object.
 String toString()
          Deprecated. Returns "[begin]...[end], i, r" for block comments, or "[begin] SL, i, r" for single line comments, with 'i' only printed when flag "indcludeInToken" is set, and 'r' only printed when flag "returnAsSeparateToken is set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comment

public Comment(String left,
               String right,
               boolean returnAsToken,
               boolean includeInToken)
Deprecated. 
Creates a new Comment object. Only created by the FileTokenizerSettings class.

Parameters:
left - The comment start pattern.
right - The comment end pattern.
returnAsToken - boolean flag.
includeInToken - boolean flag.
See Also:
FileTokenizerSettings

Comment

Comment(NodeSettingsRO settings)
  throws InvalidSettingsException
Deprecated. 
Creates a new Comment object and sets its parameters from the config object. If config doesn't contain all necessary parameters or contains inconsistent settings it will throw an IllegalArguments exception

Parameters:
settings - an object the parameters are read from.
Throws:
InvalidSettingsException - if the config is not valid. Huh.
Method Detail

saveToConfig

void saveToConfig(NodeSettingsWO cfg)
Deprecated. 
Writes the object into a NodeSettings object. If this config object is then used to construct a new Comment this and the new object should be identical.

Parameters:
cfg - a config object the internal values of this object will be stored into.

getBegin

public String getBegin()
Deprecated. 
Returns:
The begin pattern of this comment.

getEnd

public String getEnd()
Deprecated. 
Returns:
The end pattern of this comment.

getFirstCharOfBegin

public char getFirstCharOfBegin()
Deprecated. 
Returns:
The first character of the begin pattern of this comment.

includeInToken

public boolean includeInToken()
Deprecated. 
Returns:
true if this comment will be included in the current token.

returnAsSeparateToken

public boolean returnAsSeparateToken()
Deprecated. 
Returns:
true if this comment will be returned as separate token.

toString

public String toString()
Deprecated. 
Returns "[begin]...[end], i, r" for block comments, or "[begin] SL, i, r" for single line comments, with 'i' only printed when flag "indcludeInToken" is set, and 'r' only printed when flag "returnAsSeparateToken is set.

Overrides:
toString in class Object


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.