Search in sources :

Example 6 with ModelObjectId

use of org.onosproject.yang.model.ModelObjectId 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

ModelObjectId (org.onosproject.yang.model.ModelObjectId)6 DefaultContext (org.onosproject.yang.gen.v1.tapicommon.rev20181210.tapicommon.DefaultContext)4 DataNode (org.onosproject.yang.model.DataNode)2 YangToolUtil.toCharSequence (org.onosproject.odtn.utils.YangToolUtil.toCharSequence)1 DefaultConnectionEndPoint (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connection.DefaultConnectionEndPoint)1 ConnectionKeys (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.ConnectionKeys)1 ConnectivityServiceKeys (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.ConnectivityServiceKeys)1 DefaultConnection (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.DefaultConnection)1 DefaultConnectivityService (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivitycontext.DefaultConnectivityService)1 DefaultConnection (org.onosproject.yang.gen.v1.tapiconnectivity.rev20181210.tapiconnectivity.connectivityservice.DefaultConnection)1 DefaultTopologyContext (org.onosproject.yang.gen.v1.tapitopology.rev20181210.tapitopology.context.augmentedtapicommoncontext.DefaultTopologyContext)1 DefaultModelObjectData (org.onosproject.yang.model.DefaultModelObjectData)1 DefaultResourceData (org.onosproject.yang.model.DefaultResourceData)1 ModelObject (org.onosproject.yang.model.ModelObject)1 ModelObjectData (org.onosproject.yang.model.ModelObjectData)1 ResourceData (org.onosproject.yang.model.ResourceData)1 ResourceId (org.onosproject.yang.model.ResourceId)1