Config.FieldPresence| Constructor and Description |
|---|
BasicRegionConfig() |
| Modifier and Type | Method and Description |
|---|---|
List<DeviceId> |
devices()
Returns the identities of the devices in this region.
|
BasicRegionConfig |
devices(Set<DeviceId> devices)
Sets the devices of this region.
|
boolean |
isValid()
Indicates whether or not the backing JSON node contains valid data.
|
String |
name()
Returns the region name.
|
BasicRegionConfig |
name(String name)
Sets the name of this region.
|
String |
toString() |
Region.Type |
type()
Returns the region type.
|
BasicRegionConfig |
type(Region.Type type)
Sets the region type.
|
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, key, node, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectpublic boolean isValid()
ConfigDefault implementation returns true. Subclasses are expected to override this with their own validation. Implementations are free to throw a RuntimeException if data is invalid.
public String name()
public BasicRegionConfig name(String name)
name - name of region, or null to unsetpublic Region.Type type()
public BasicRegionConfig type(Region.Type type)
type - the region type, or null to unsetpublic List<DeviceId> devices()
public BasicRegionConfig devices(Set<DeviceId> devices)
devices - the device identifiers, or null to unset