Class HistoryFlavor

    • Constructor Detail

      • HistoryFlavor

        public HistoryFlavor​(java.lang.String uid)
      • HistoryFlavor

        public HistoryFlavor​(java.lang.String uid,
                             java.lang.String subId,
                             java.lang.String descKey)
    • Method Detail

      • typeId

        public java.lang.String typeId()
        This is the broad type id. Different datasinks will look at this to decide if they support the data.
      • subTypeId

        public 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".
      • isCompatible

        public 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.
      • getXmlImportHandler

        public 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.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj,
                              boolean includeSubtype)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object