Package org.onosproject.net
Class AbstractProjectableModel.AnnotationDriverData
- java.lang.Object
-
- org.onosproject.net.AbstractProjectableModel.AnnotationDriverData
-
- All Implemented Interfaces:
Annotations,DriverData,MutableAnnotations
- Direct Known Subclasses:
DefaultDevice.DeviceDriverData
- Enclosing class:
- AbstractProjectableModel
protected class AbstractProjectableModel.AnnotationDriverData extends Object implements DriverData
Projection of the parent entity as a driver data entity.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAnnotationDriverData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableAnnotationsclear(String... keys)Clears the specified keys or the all keys if none were specified.DeviceIddeviceId()Returns the device identifier.Driverdriver()Returns the parent device driver.Set<String>keys()Returns the set of keys for available annotations.MutableAnnotationsset(String key, String value)Returns the value of the specified annotation.Stringvalue(String key)Returns the value of the specified annotation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.onosproject.net.driver.DriverData
behaviour
-
-
-
-
Method Detail
-
driver
public Driver driver()
Description copied from interface:DriverDataReturns the parent device driver.- Specified by:
driverin interfaceDriverData- Returns:
- device driver
-
deviceId
public DeviceId deviceId()
Description copied from interface:DriverDataReturns the device identifier.- Specified by:
deviceIdin interfaceDriverData- Returns:
- device identifier
-
set
public MutableAnnotations set(String key, String value)
Description copied from interface:MutableAnnotationsReturns the value of the specified annotation.- Specified by:
setin interfaceMutableAnnotations- Parameters:
key- annotation keyvalue- annotation value- Returns:
- self
-
clear
public MutableAnnotations clear(String... keys)
Description copied from interface:MutableAnnotationsClears the specified keys or the all keys if none were specified.- Specified by:
clearin interfaceMutableAnnotations- Parameters:
keys- keys to be cleared- Returns:
- self
-
keys
public Set<String> keys()
Description copied from interface:AnnotationsReturns the set of keys for available annotations.- Specified by:
keysin interfaceAnnotations- Returns:
- annotation keys
-
value
public String value(String key)
Description copied from interface:AnnotationsReturns the value of the specified annotation.- Specified by:
valuein interfaceAnnotations- Parameters:
key- annotation key- Returns:
- annotation value
-
-