Class DeepEyeData

  • Direct Known Subclasses:
    Annotation, Record

    public abstract class DeepEyeData
    extends java.lang.Object
    A base class for Record, Annotation and other structures. Common fields include: id, value, and attributes, which may be empty.
    • Field Summary

      Modifier and Type Field Description
      jodd.json.JsonObject attrs  
      java.lang.String id
      A base class to keep all data organized
      java.lang.String value  
    • Constructor Summary

      Constructor Description
    • Method Summary

      Modifier and Type Method Description
      void addAttribute​(java.lang.String k, java.lang.Object v)  
      static java.util.Map<java.lang.String,​java.lang.Object> asMap​(jodd.json.JsonArray obj)
      Convert an array to a trivial map, [i1, i2, i3,...] ==> { i1:"1", i2:"1", ...} UNUSED.
      java.util.Collection<java.lang.String> getAttributeNames()  
      java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
      Converts internal JSON store to a key/value map.
      abstract java.util.Map<java.lang.String,​java.lang.Object> getMap()  
      boolean isValue​(java.util.Collection<?> v)  
      boolean isValue​(java.util.Map<?,​?> v)  
      static java.util.List<java.lang.Object> list​(jodd.json.JsonArray arr)
      utility -- get list from jsonarray.
      static java.util.List<java.lang.String> list​(jodd.json.JsonObject arr)  
      static java.util.Map<java.lang.String,​java.lang.Object> map​(jodd.json.JsonObject obj)  
      void newAttributes()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • id

        public java.lang.String id
        A base class to keep all data organized
      • attrs

        public jodd.json.JsonObject attrs
      • value

        public java.lang.String value
    • Constructor Detail

      • DeepEyeData

        public DeepEyeData()
    • Method Detail

      • addAttribute

        public void addAttribute​(java.lang.String k,
                                 java.lang.Object v)
      • newAttributes

        public void newAttributes()
      • getAttributes

        public java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Converts internal JSON store to a key/value map.
      • isValue

        public boolean isValue​(java.util.Map<?,​?> v)
      • isValue

        public boolean isValue​(java.util.Collection<?> v)
      • list

        public static java.util.List<java.lang.Object> list​(jodd.json.JsonArray arr)
        utility -- get list from jsonarray.
        arr - JSON array
      • list

        public static java.util.List<java.lang.String> list​(jodd.json.JsonObject arr)
      • asMap

        public static java.util.Map<java.lang.String,​java.lang.Object> asMap​(jodd.json.JsonArray obj)
        Convert an array to a trivial map, [i1, i2, i3,...] ==> { i1:"1", i2:"1", ...} UNUSED.
        obj - JSON array
        map representation of array
      • map

        public static java.util.Map<java.lang.String,​java.lang.Object> map​(jodd.json.JsonObject obj)
      • getAttributeNames

        public java.util.Collection<java.lang.String> getAttributeNames()
      • getMap

        public abstract java.util.Map<java.lang.String,​java.lang.Object> getMap()