public class BooleanContent extends AbstractContent
This Content is used to hold boolean values. It will accept any Number as false if equal to 0, true otherwise. It will accept the String values "true", "on", "yes" or "1" as true and "false", "off", "no" or "0" as false.
Proxied.Abstract| Constructor and Description |
|---|
BooleanContent() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
decode(PointValue pointValue)
Decodes the value of a point value.
|
Boolean |
denormalize(NormalizedValue normalizedValue)
Denormalizes the value of a point value.
|
Boolean |
normalize(PointValue pointValue)
Normalizes the value of a point value.
|
encode, getInstance, warnBadValuegetMetadata, getName, getParams, getProxyEntity, getThisLogger, setUp, tearDownpublic final Boolean decode(PointValue pointValue)
Converts from an external representation to an internal representation.
decode in interface Contentdecode in class AbstractContentpointValue - The point value associated with the value to decode.public final Boolean denormalize(NormalizedValue normalizedValue)
Converts from an internal unit to an external unit.
denormalize in interface Contentdenormalize in class AbstractContentnormalizedValue - The point value associated with the value to be
denormalized.public final Boolean normalize(PointValue pointValue)
Converts from an external unit to an internal unit.
normalize in interface Contentnormalize in class AbstractContentpointValue - The point value associated with the value to be
normalized.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.