|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.util.tokenizer.Quote
public class Quote
Created for each quote pattern in the FileTokenizer
keeping
its specifics.
Constructor Summary | |
---|---|
Quote(NodeSettingsRO settings)
Creates a new Quote object and sets its parameters from
the config object. |
|
Quote(String left,
String right)
Creates a new Quote object, without escape character, quotes being removed from the token. |
|
Quote(String left,
String right,
boolean dontRemove)
Creates a new Quote object, without escape character, quotes being removed from the token. |
|
Quote(String left,
String right,
char escape)
Creates a new Quote object. |
|
Quote(String left,
String right,
char escape,
boolean dontRemove)
Creates a new Quote object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
boolean |
getDontRemoveFlag()
|
char |
getEscape()
|
char |
getFirstCharOfLeft()
|
String |
getLeft()
|
String |
getRight()
|
boolean |
hasEscapeChar()
|
int |
hashCode()
|
(package private) void |
saveToConfig(NodeSettingsWO cfg)
Writes the object into a NodeSettings object. |
String |
toString()
Returns "[left]...[right], '[esc]'", with ", [esc]" only printed when an escape char is defined. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Quote(String left, String right, char escape, boolean dontRemove)
FileTokenizerSettings
class.
left
- the left quote patternright
- the right quote patternescape
- the escape character for these quotes.dontRemove
- if set true the quote patterns will not be removed
from, but returned in the token.TokenizerSettings
public Quote(String left, String right, char escape)
FileTokenizerSettings
class.
left
- the left quote patternright
- the right quote patternescape
- the escape character for these quotes.TokenizerSettings
public Quote(String left, String right, boolean dontRemove)
left
- The left quote pattern.right
- The right quote pattern.dontRemove
- if set true quote patterns don't get removed but be
returned in the token.public Quote(String left, String right)
left
- The left quote pattern.right
- The right quote pattern.Quote(NodeSettingsRO settings) throws InvalidSettingsException
Quote
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
IllegalArgument exception
settings
- an object the parameters are read from.
InvalidSettingsException
- when the config stinks.Method Detail |
---|
void saveToConfig(NodeSettingsWO cfg)
NodeSettings
object. If this
config object is then used to construct a new Delimiter
this and the new object should be identical.
cfg
- a config object the internal values of this object will be
stored into.public String getLeft()
public String getRight()
public boolean hasEscapeChar()
true
if an escape character is defined for this
quote pair.public char getEscape()
public boolean getDontRemoveFlag()
public char getFirstCharOfLeft()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |