Class AllowedEntityConfig<S>
- java.lang.Object
-
- org.onosproject.net.config.Config<S>
-
- org.onosproject.net.config.basics.AllowedEntityConfig<S>
-
- Direct Known Subclasses:
BasicElementConfig
,BasicLinkConfig
public abstract class AllowedEntityConfig<S> extends Config<S>
Base abstraction for network entities for which admission into control domain can be selectively configured, e.g. devices, end-stations, links
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.onosproject.net.config.Config
Config.FieldPresence
-
-
Constructor Summary
Constructors Constructor Description AllowedEntityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAllowed()
Indicates whether the element is allowed for admission into the control domain.AllowedEntityConfig
isAllowed(java.lang.Boolean isAllowed)
Specifies whether the element is to be allowed for admission into the control domain.-
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
-
-
-
-
Field Detail
-
ALLOWED
protected static final java.lang.String ALLOWED
- See Also:
- Constant Field Values
-
-
Method Detail
-
isAllowed
public boolean isAllowed()
Indicates whether the element is allowed for admission into the control domain.- Returns:
- true if element is allowed
-
isAllowed
public AllowedEntityConfig isAllowed(java.lang.Boolean isAllowed)
Specifies whether the element is to be allowed for admission into the control domain.- Parameters:
isAllowed
- true to allow; false to forbid; null to clear- Returns:
- self
-
-