Class HistoryFlavor
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.history.HistoryFlavor
 
- 
- Direct Known Subclasses:
- AnnotationHistoricalData.AnnotationHistoryFlavor,- BasicHistoricalRecord.HistoricalRecordFlavor,- TagHistoryFlavor
 
 public class HistoryFlavor extends java.lang.ObjectThe HistoryFlavor is used to distinguish different types of historical data. Different data sinks will specialize in handling different flavors.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classHistoryFlavor.Base64XmlReader
 - 
Field SummaryFields Modifier and Type Field Description static HistoryFlavorSQLTAG
 - 
Constructor SummaryConstructors Constructor Description HistoryFlavor(java.lang.String uid)HistoryFlavor(java.lang.String uid, java.lang.String subId, java.lang.String descKey)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleanequals(java.lang.Object obj, boolean includeSubtype)LocalizedStringgetDescription()SimpleXMLReader<HistoricalData>getXmlImportHandler(GatewayContext context)Gets the XML reader that can decode the output from writeToXml.booleanisCompatible(HistoryFlavor flavor)Kind of like equals, tells whether the incoming flavor is compatible with this one.java.lang.StringsubTypeId()This id is used as a finer grained identifying under the root flavor id.java.lang.StringtoString()java.lang.StringtypeId()This is the broad type id.voidwriteToXml(SimpleXMLWriter writer, HistoricalData data)
 
- 
- 
- 
Field Detail- 
SQLTAGpublic static final HistoryFlavor SQLTAG 
 
- 
 - 
Method Detail- 
typeIdpublic java.lang.String typeId() This is the broad type id. Different datasinks will look at this to decide if they support the data.
 - 
subTypeIdpublic java.lang.String subTypeId() This id is used as a finer grained identifying under the root flavor id. This will be used to find the correct codec for this type of data. For example, DatasourceData is a generic flavor for things that store to a connection. However, that is not enough information to support import/export, so implementors can register codecs for subtypes, and use those flavors, while still being "DatasourceData".
 - 
getDescriptionpublic LocalizedString getDescription() 
 - 
isCompatiblepublic boolean isCompatible(HistoryFlavor flavor) Kind of like equals, tells whether the incoming flavor is compatible with this one. Necessary because some subclass flavors can encompass other flavors. Base implementation just uses equals.
 - 
writeToXmlpublic void writeToXml(SimpleXMLWriter writer, HistoricalData data) throws java.lang.Exception - Throws:
- java.lang.Exception
 
 - 
getXmlImportHandlerpublic SimpleXMLReader<HistoricalData> getXmlImportHandler(GatewayContext context) Gets the XML reader that can decode the output from writeToXml. The default implementation reads from base64. It is provided with the gateway context in case any special deserialization needs to occur.
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj, boolean includeSubtype)
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-