org.das2.catalog.DasProp

Properties retrieved from a das catalog node, a wrapper around Object. DasNodes can have properties of different types. Since Java reflection provides methods for determining the actual return type of a property pulled from a catalog node, introducing a property type seems on it's face to be an unnecessary complication. However to avoid having a completely open ended interface that can return just any type of object this class exists to put boundaries around the value types an application program will have to deal with when reading from a das catalog. Without this class, constructs like the following would be common in application code: String sFragment = "interface/data/efield/units"; Object obj = node.prop(sFragment, Map.class); Map map = (Map)obj; Instead this becomes: Map map = node.prop("interface/data/efield/units").map();


NULL


BOOL


STR


INT


DATUM


TIME


LIST


MAP


map

map( ) → Map

Returns:

java.util.Map

search for examples view on GitHub view source


str

str( ) → String

Returns:

java.lang.String

search for examples view on GitHub view source


time

time( ) → ZonedDateTime

Returns:

java.time.ZonedDateTime

search for examples view on GitHub view source