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 java.lang.Object implements DriverData
Projection of the parent entity as a driver data entity.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AnnotationDriverData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableAnnotations
clear(java.lang.String... keys)
Clears the specified keys or the all keys if none were specified.DeviceId
deviceId()
Returns the device identifier.Driver
driver()
Returns the parent device driver.java.util.Set<java.lang.String>
keys()
Returns the set of keys for available annotations.MutableAnnotations
set(java.lang.String key, java.lang.String value)
Returns the value of the specified annotation.java.lang.String
value(java.lang.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:DriverData
Returns the parent device driver.- Specified by:
driver
in interfaceDriverData
- Returns:
- device driver
-
deviceId
public DeviceId deviceId()
Description copied from interface:DriverData
Returns the device identifier.- Specified by:
deviceId
in interfaceDriverData
- Returns:
- device identifier
-
set
public MutableAnnotations set(java.lang.String key, java.lang.String value)
Description copied from interface:MutableAnnotations
Returns the value of the specified annotation.- Specified by:
set
in interfaceMutableAnnotations
- Parameters:
key
- annotation keyvalue
- annotation value- Returns:
- self
-
clear
public MutableAnnotations clear(java.lang.String... keys)
Description copied from interface:MutableAnnotations
Clears the specified keys or the all keys if none were specified.- Specified by:
clear
in interfaceMutableAnnotations
- Parameters:
keys
- keys to be cleared- Returns:
- self
-
keys
public java.util.Set<java.lang.String> keys()
Description copied from interface:Annotations
Returns the set of keys for available annotations.- Specified by:
keys
in interfaceAnnotations
- Returns:
- annotation keys
-
value
public java.lang.String value(java.lang.String key)
Description copied from interface:Annotations
Returns the value of the specified annotation.- Specified by:
value
in interfaceAnnotations
- Parameters:
key
- annotation key- Returns:
- annotation value
-
-