...
Generic objects/documents
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) |
filter: An XPath expression
YANG <-> Java type mapping: Mostly simple; UINT64 and IdentityRef (which has two strings) will require direction
Option B
Highly typed (using information in models)
...