Class ChainrSpec


  • public class ChainrSpec
    extends java.lang.Object
    Helper class that encapsulates the Chainr spec's list. For reference : a Chainr spec should be an array of objects in order that look like this:
     [
         {
             "operation": "[operation-name]",
             // stuff that the specific transform needs go here
         },
         ...
     ]
     
    This class represents the Array, while the ChainrEntry class encompass the individual elements of the array.
    • Constructor Summary

      Constructors 
      Constructor Description
      ChainrSpec​(java.lang.Object chainrSpec)  
      ChainrSpec​(java.lang.Object chainrSpec, java.lang.ClassLoader classLoader)  
    • Field Detail

      • chainrEntries

        private final java.util.List<ChainrEntry> chainrEntries
    • Constructor Detail

      • ChainrSpec

        public ChainrSpec​(java.lang.Object chainrSpec)
        Parameters:
        chainrSpec - Plain vanilla hydrated JSON representation of a Chainr spec .json file.
      • ChainrSpec

        public ChainrSpec​(java.lang.Object chainrSpec,
                          java.lang.ClassLoader classLoader)
    • Method Detail

      • getChainrEntries

        public java.util.List<ChainrEntry> getChainrEntries()
        Returns:
        the list of ChainrEntries from the initialize file