Package com.inductiveautomation.snap.web
Class MapString
java.lang.Object
com.inductiveautomation.snap.web.MapString
A class for working with parameter strings as found in a URL query part or fragment id, typically with the format:
 field1=value1&field2=value2
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringCreates the string from fields/values.getField(int anIndex) Returns the individual field at given index.intReturns the number of fields.intgetFieldIndex(String aName) Returns a field index for given field string.Returns the fields list.Returns the string.getValue(int anIndex) Returns the individual value at given index.Returns a field value string for given field string.protected voidCreates the fields list.Sets a field value for given field name and value.toString()Standard toString implementation.
- 
Constructor Details- 
MapStringCreates a new MapString for given string.
 
- 
- 
Method Details- 
getStringReturns the string.
- 
createStringCreates the string from fields/values.
- 
getFieldCountpublic int getFieldCount()Returns the number of fields.
- 
getFieldReturns the individual field at given index.
- 
getValueReturns the individual value at given index.
- 
getFieldsReturns the fields list.
- 
getFieldIndexReturns a field index for given field string.
- 
getValueReturns a field value string for given field string.
- 
setValueSets a field value for given field name and value.
- 
loadFieldsprotected void loadFields()Creates the fields list.
- 
toStringStandard toString implementation.
 
-