public abstract class AbstractContent extends Proxied.Abstract implements Content
Base class for content converters. It supplies minimal behavior.
Proxied.Abstract| Constructor and Description |
|---|
AbstractContent() |
| Modifier and Type | Method and Description |
|---|---|
Serializable |
decode(PointValue pointValue)
Decodes the value of a point value.
|
Serializable |
denormalize(NormalizedValue normalizedValue)
Denormalizes the value of a point value.
|
Serializable |
encode(PointValue pointValue)
Encodes the value of a point value.
|
Content |
getInstance(Point point)
Gets an appropriate instance of this content for the point.
|
Serializable |
normalize(PointValue pointValue)
Normalizes the value of a point value.
|
protected void |
warnBadValue(PointValue pointValue)
Warns about the bad format of a value.
|
getMetadata, getName, getParams, getProxyEntity, getThisLogger, setUp, tearDownpublic Serializable decode(PointValue pointValue)
Converts from an external representation to an internal representation.
public Serializable denormalize(NormalizedValue normalizedValue)
Converts from an internal unit to an external unit.
denormalize in interface ContentnormalizedValue - The point value associated with the value to be
denormalized.public Serializable encode(PointValue pointValue)
Converts from an internal representation to an external representation.
public Content getInstance(Point point)
getInstance in interface Contentpoint - The point.public Serializable normalize(PointValue pointValue)
Converts from an external unit to an internal unit.
protected final void warnBadValue(@Nonnull
PointValue pointValue)
pointValue - The associated point value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.