Search in sources :

Example 1 with ModelObject

use of org.onosproject.yang.model.ModelObject in project onos by opennetworkinglab.

the class TapiObjectHandler method getModelObjectData.

/**
 * Get modelObjectData instance.
 *
 * @return ModelObjectData of target node
 */
public ModelObjectData getModelObjectData() {
    ModelObject obj = getModelObject();
    ModelObjectId objId = getParentModelObjectId();
    return DefaultModelObjectData.builder().addModelObject(obj).identifier(objId).build();
}
Also used : ModelObject(org.onosproject.yang.model.ModelObject) ModelObjectId(org.onosproject.yang.model.ModelObjectId)

Aggregations

ModelObject (org.onosproject.yang.model.ModelObject)1 ModelObjectId (org.onosproject.yang.model.ModelObjectId)1