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=value1invalid input: '&field2'=value2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringCreates the string from fields/values.getField(int anIndex) Returns the individual field at given index.intReturns the number of fields.intgetFieldIndex(@NonNull 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.@Nullable StringReturns 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
-
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
-
getFieldIndex
Returns a field index for given field string. -
getValue
-
setValue
-
loadFields
protected void loadFields()Creates the fields list. -
toString
-