Class DocumentIndex
- java.lang.Object
- 
- com.inductiveautomation.ignition.common.DocumentIndex
 
- 
- All Implemented Interfaces:
- SubIndex,- java.io.Serializable
 
 public class DocumentIndex extends java.lang.Object implements SubIndex - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description DocumentIndex(JsonPath path)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)protected java.lang.ObjectextractValue(DocumentElement element)QualifiedValueextractValue(java.lang.Object source)Pulls the value out of a qualified value.JsonPathgetPath()inthashCode()booleanisCompatible(java.lang.Class<?> dataClazz)Returns whether this sub index can be used with the incoming value type.static booleanisDocumentIndex(java.lang.String value)static DocumentIndexparse(java.lang.String value)A very simple parse mechanism.java.lang.StringtoEncodedString()Returns the index in a way that can be appended to a path.java.lang.StringtoString()QualityCodeupdateValue(java.lang.Object sourceValue, java.lang.Object elementValue)
 
- 
- 
- 
Constructor Detail- 
DocumentIndexpublic DocumentIndex(JsonPath path) 
 
- 
 - 
Method Detail- 
isDocumentIndexpublic static boolean isDocumentIndex(java.lang.String value) 
 - 
getPathpublic JsonPath getPath() 
 - 
parsepublic static DocumentIndex parse(java.lang.String value) A very simple parse mechanism. Allows: "[x]", "[x,y]", "x", "x,y"
 - 
isCompatiblepublic boolean isCompatible(java.lang.Class<?> dataClazz) Description copied from interface:SubIndexReturns whether this sub index can be used with the incoming value type.- Specified by:
- isCompatiblein interface- SubIndex
 
 - 
extractValuepublic QualifiedValue extractValue(java.lang.Object source) Description 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
 
 - 
updateValuepublic QualityCode updateValue(java.lang.Object sourceValue, java.lang.Object elementValue) - Specified by:
- updateValuein interface- SubIndex
 
 - 
extractValueprotected java.lang.Object extractValue(DocumentElement element) throws java.lang.IllegalStateException - Throws:
- java.lang.IllegalStateException
 
 - 
toEncodedStringpublic java.lang.String toEncodedString() Description 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
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-