Class ArrayIndex
java.lang.Object
com.inductiveautomation.ignition.common.ArrayIndex
- All Implemented Interfaces:
SubIndex
,Serializable
A simple structure that holds an index into a single or double column array.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
extractValue
(Object source) Pulls the value out of a qualified value.Class<?>
Returns the class associated at the location for this ArrayIndexint
getCol()
int
getRow()
boolean
hasCol()
int
hashCode()
static boolean
isArrayIndex
(String value) boolean
isCompatible
(Class<?> dataClazz) Returns whether this sub index can be used with the incoming value type.static ArrayIndex
A very simple parse mechanism.Returns the index in a way that can be appended to a path.toString()
updateValue
(Object sourceValue, Object elementValue)
-
Constructor Details
-
ArrayIndex
public ArrayIndex(int row) -
ArrayIndex
public ArrayIndex(int row, int col)
-
-
Method Details
-
isArrayIndex
-
getRow
public int getRow() -
getCol
public int getCol() -
hasCol
public boolean hasCol() -
parse
A very simple parse mechanism. Allows: "[x]", "[x,y]", "x", "x,y" -
getClass
Returns the class associated at the location for this ArrayIndex -
isCompatible
Description copied from interface:SubIndex
Returns whether this sub index can be used with the incoming value type.- Specified by:
isCompatible
in interfaceSubIndex
-
extractValue
Description copied from interface:SubIndex
Pulls the value out of a qualified value. The resulting value will have the same timestamp and quality as the source, unless a new quality is generated as a result of trying to extract the. Returns any errors as quality on the value.- Specified by:
extractValue
in interfaceSubIndex
-
updateValue
- Specified by:
updateValue
in interfaceSubIndex
-
toEncodedString
Description copied from interface:SubIndex
Returns the index in a way that can be appended to a path. Should return a value that can be read by a static parse function on the implementation.- Specified by:
toEncodedString
in interfaceSubIndex
-
equals
-
hashCode
public int hashCode() -
toString
-