com.teraspaces.qwfix
Class FIXMultipleValueString

java.lang.Object
  extended by com.teraspaces.qwfix.FIXMultipleValueString

public final class FIXMultipleValueString
extends Object

The helper class of the MultipleValueString and MultipleCharValue (FIX 5.0+) data type in the FIX protocol. This implementation optimizes the handling of MultipleValueString.

Never directly create the instance of this data type. Use FIXMessageComponent.createMultipleValueString(int) or FIXMessageComponent.createMultipleValueString(int, String) instead.


Method Summary
 void add(char value)
          Adds a new token to the current multiple value string.
 void add(String value)
          Adds a new token to the current multiple value string.
 void clear()
          Removes all tokens in the FIXMultipleValueString.
 boolean contains(char value)
          Determines whether a token is in the FIXMultipleValueString.
 boolean contains(String value)
          Determines whether a token is in the FIXMultipleValueString.
 boolean isEmpty()
          Checks if current string is empty.
 int length()
          Gets the string length of current MultipleValueString
 void remove(String value)
          Removes the specified token from the current string.
 String toString()
           
 void toString(StringBuilder sb)
          Returns the string value of the FIXMultipleValueString.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isEmpty

public boolean isEmpty()
Checks if current string is empty.

Returns:
true, if is empty

add

public void add(char value)
Adds a new token to the current multiple value string.

Parameters:
value - the new token

add

public void add(String value)
Adds a new token to the current multiple value string.

Parameters:
value - the new token

remove

public void remove(String value)
Removes the specified token from the current string.

Parameters:
value - the token

contains

public boolean contains(String value)
Determines whether a token is in the FIXMultipleValueString.

Parameters:
value - the token
Returns:
true if value if found in the FIXMultipleValueString.

contains

public boolean contains(char value)
Determines whether a token is in the FIXMultipleValueString.

Parameters:
value - the token
Returns:
true if value if found in the FIXMultipleValueString.

clear

public void clear()
Removes all tokens in the FIXMultipleValueString.


toString

public String toString()
Overrides:
toString in class Object

toString

public void toString(StringBuilder sb)
Returns the string value of the FIXMultipleValueString.

Parameters:
sb - the StringBuilder

length

public int length()
Gets the string length of current MultipleValueString

Returns:
the length