Class BasicFeatureConfig<S>
- java.lang.Object
-
- org.onosproject.net.config.Config<S>
-
- org.onosproject.net.config.basics.BasicFeatureConfig<S>
-
- Type Parameters:
S
- Subject type
public abstract class BasicFeatureConfig<S> extends Config<S>
Base abstraction for configuring feature on subject.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onosproject.net.config.Config
Config.FieldPresence
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BasicFeatureConfig(boolean defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
enabled()
Indicates whether the feature for the subject is enabled.BasicFeatureConfig<S>
enabled(Boolean enabled)
Specifies whether the feature for the subject is to be enabled.-
Methods inherited from class org.onosproject.net.config.Config
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValid, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject, toString
-
-
-
-
Method Detail
-
enabled
public boolean enabled()
Indicates whether the feature for the subject is enabled.- Returns:
- true if feature is enabled
-
enabled
public BasicFeatureConfig<S> enabled(Boolean enabled)
Specifies whether the feature for the subject is to be enabled.- Parameters:
enabled
- true to enable; false to disable; null to clear- Returns:
- self
-
-