...
Code Block | ||
---|---|---|
| ||
File : TunnelType.java public abstract class TunnelType { } |
Identityref
Overview
The leafref identityref type is used to reference a particular leaf instance in the data tree. Path statement must be present for leafref type. The path under leafref must refer to existing leaf or leaf-list. The leaf or leaf-list with leafref will use the instance of the referred leaf or leaf-list.
an existing identity. Base statement, which is a substatement to the type statement, must be present if the type is identityref. The base under identityref must refer to existing identity.
If identityref If leafref comes under grouping and typedef, it will be resolved where it is used. It will not be resolved where it is defined.
Java mapping
The leaf or leaf-list with type leafrefidentityref, will copy the type of referred leaf or leaf-listreferred to identity, during java file generation.
...