Package org.opensextant.annotations
Class DeepEyeData
java.lang.Object
org.opensextant.annotations.DeepEyeData
- Direct Known Subclasses:
Annotation
,Record
A base class for Record, Annotation and other structures. Common fields
include: id, value, and
attributes, which may be empty.
- Author:
- ubaldino
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String k, Object v) asMap
(jodd.json.JsonArray obj) Convert an array to a trivial map, [i1, i2, i3,...] ==> { i1:"1", i2:"1", ...} UNUSED.Converts internal JSON store to a key/value map.getMap()
boolean
isValue
(Collection<?> v) boolean
list
(jodd.json.JsonArray arr) utility -- get list from jsonarray.list
(jodd.json.JsonObject arr) map
(jodd.json.JsonObject obj) void
-
Field Details
-
id
A base class to keep all data organized -
attrs
public jodd.json.JsonObject attrs -
value
-
-
Constructor Details
-
DeepEyeData
public DeepEyeData()
-
-
Method Details
-
addAttribute
-
newAttributes
public void newAttributes() -
getAttributes
Converts internal JSON store to a key/value map. -
isValue
-
isValue
-
list
utility -- get list from jsonarray.- Parameters:
arr
- JSON array- Returns:
-
list
-
asMap
Convert an array to a trivial map, [i1, i2, i3,...] ==> { i1:"1", i2:"1", ...} UNUSED.- Parameters:
obj
- JSON array- Returns:
- map representation of array
-
map
-
getAttributeNames
-
getMap
-