Class ExAttributeComponent

java.lang.Object
io.horizon.spi.component.ExAttributeComponent

public abstract class ExAttributeComponent extends Object
Author:
Lang
  • Constructor Details

    • ExAttributeComponent

      public ExAttributeComponent()
  • Method Details

    • source

      public ConcurrentMap<String,io.vertx.core.json.JsonArray> source(io.vertx.core.json.JsonObject definition)
      Here are json format of `definition` ```json //
      
           {
               "sourceConsumer": {
                   "source": "Consume Source",
                   "in": "In Field",
                   "out": "Out Field"
               },
               "sourceDict": {
                    "comments": "Source Dict Definition Here"
               },
               "source": "Related to `source` field of M_ATTRIBUTE",
               "sourceField": "Related to `sourceField` field of M_ATTRIBUTE",
               "sourceData": {
                   "comments": "The final dictionary data store"
               }
           }
       // 
      ```
      Parameters:
      definition - JsonObject The input definition
      Returns:
      ConcurrentMap The dict source map ( key = JsonArray )
    • translateTo

      protected Object translateTo(Object value, io.vertx.core.json.JsonObject definition)
    • translateFrom

      protected Object translateFrom(Object value, io.vertx.core.json.JsonObject definition)