...
Style and payload structure
Pending decisions: Data Representation and Interface styleThe payload will be represented as Generic objects/documents. For more reasoning and discussion, see
In java, the CPSDataObject will be a 'glorified' map -- not a basic map, but one level more concrete (in terms of abstractions). I.e. at the language level
Sample methods:
Code Block | ||
---|---|---|
| ||
public class CPSDataObject extends Map {...}
CPSDataObject tree = cps.getTree(obj, level, filter)
List<CPSDataObject> refs = cps.getRefs(obj)
CPSDataObject parent = cps.getParent(obj)
List<CPSDataObject> children = cps.getChildren(obj) |
Filters will be encoded as XPath expressions
YANG <-> Java type mapping will be inherited from the selection of YANG parser
For java, the payload will be a document complying to a generic JSON schema.
REST payload structure
Java payload structure
...