com.ds.fw.parse
Class FwStingParser

java.lang.Object
  |
  +--com.ds.fw.parse.FwStingParser

public class FwStingParser
extends java.lang.Object


Field Summary
 java.lang.String ch1
           
 java.lang.String ch2
           
 java.lang.String str
           
 
Constructor Summary
FwStingParser()
           
FwStingParser(java.lang.String s)
           
 
Method Summary
 java.lang.String add(java.lang.String name, java.lang.String value)
          Adds an item (at the end of the string)
 java.lang.String del(int item)
          Deletes an item
 int getCount()
          Gets the count of the items
 int getItem(java.lang.String name)
           
 java.lang.String getName(int item)
          Gets the parameter name
 java.lang.String getSplitString()
           
 java.lang.String getSplitString1()
           
 java.lang.String getString()
           
 java.lang.String getValue(int item)
          Gets the value of an parameter
 java.lang.String getValue(java.lang.String name)
           
 java.lang.String insert(int item, java.lang.String name, java.lang.String value)
          Inserts an item
 void setSplitString(java.lang.String s)
           
 void setSplitString1(java.lang.String s)
           
 void setString(java.lang.String s)
           
 int size()
           
 java.lang.String update(int item, java.lang.String value)
          update an item
 java.lang.String update(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ch1

public java.lang.String ch1

ch2

public java.lang.String ch2

str

public java.lang.String str
Constructor Detail

FwStingParser

public FwStingParser()

FwStingParser

public FwStingParser(java.lang.String s)
Method Detail

getString

public java.lang.String getString()

setString

public void setString(java.lang.String s)

getSplitString

public java.lang.String getSplitString()

setSplitString

public void setSplitString(java.lang.String s)

getSplitString1

public java.lang.String getSplitString1()

setSplitString1

public void setSplitString1(java.lang.String s)

getValue

public java.lang.String getValue(int item)
Gets the value of an parameter

Parameters:
item - - the number of the parameter(starting from zero), which value we want to get
Returns:
the value of a parameter as string

getValue

public java.lang.String getValue(java.lang.String name)

getName

public java.lang.String getName(int item)
Gets the parameter name

Parameters:
item - - the number of the parameter we want to get
Returns:
the parameter name

getItem

public int getItem(java.lang.String name)

getCount

public int getCount()
Gets the count of the items

Returns:
the item counts

size

public int size()

del

public java.lang.String del(int item)
Deletes an item

Parameters:
item - - the number of the item we want to delete
Returns:
the string str , after deleting the wanted item

update

public java.lang.String update(int item,
                               java.lang.String value)
update an item

Parameters:
item - - the position in which we insert
value - - the value of the item
Returns:
the new value of the str , after inserting the item

update

public java.lang.String update(java.lang.String name,
                               java.lang.String value)

insert

public java.lang.String insert(int item,
                               java.lang.String name,
                               java.lang.String value)
Inserts an item

Parameters:
item - - the position in which we insert
name - - the name of the item
value - - the value of the item
Returns:
the new value of the str , after inserting the item

add

public java.lang.String add(java.lang.String name,
                            java.lang.String value)
Adds an item (at the end of the string)

Parameters:
name - - the name of the item
value - - the value of the item
Returns:
the new value of the str, after inserting the item