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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanextractValue(Object source) Pulls the value out of a qualified value.Class<?>Returns the class associated at the location for this ArrayIndexintgetCol()intgetRow()booleanhasCol()inthashCode()static booleanisArrayIndex(String value) booleanisCompatible(Class<?> dataClazz) Returns whether this sub index can be used with the incoming value type.static ArrayIndexA 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- 
ArrayIndexpublic ArrayIndex(int row) 
- 
ArrayIndexpublic ArrayIndex(int row, int col) 
 
- 
- 
Method Details- 
isArrayIndex
- 
getRowpublic int getRow()
- 
getColpublic int getCol()
- 
hasColpublic boolean hasCol()
- 
parseA very simple parse mechanism. Allows: "[x]", "[x,y]", "x", "x,y"
- 
getClassReturns the class associated at the location for this ArrayIndex
- 
isCompatibleDescription copied from interface:SubIndexReturns whether this sub index can be used with the incoming value type.- Specified by:
- isCompatiblein interface- SubIndex
 
- 
extractValueDescription copied from interface:SubIndexPulls 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:
- extractValuein interface- SubIndex
 
- 
updateValue- Specified by:
- updateValuein interface- SubIndex
 
- 
toEncodedStringDescription copied from interface:SubIndexReturns 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:
- toEncodedStringin interface- SubIndex
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-