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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Creates the string from fields/values.getField
(int anIndex) Returns the individual field at given index.int
Returns the number of fields.int
getFieldIndex
(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 void
Creates the fields list.Sets a field value for given field name and value.toString()
Standard toString implementation.
-
Constructor Details
-
MapString
Creates a new MapString for given string.
-
-
Method Details
-
getString
Returns the string. -
createString
Creates the string from fields/values. -
getFieldCount
public int getFieldCount()Returns the number of fields. -
getField
Returns the individual field at given index. -
getValue
Returns the individual value at given index. -
getFields
Returns the fields list. -
getFieldIndex
Returns a field index for given field string. -
getValue
Returns a field value string for given field string. -
setValue
Sets a field value for given field name and value. -
loadFields
protected void loadFields()Creates the fields list. -
toString
Standard toString implementation.
-