public abstract class ALcyWorkspacePropertyConverter extends Object implements ILcyPropertyConverter
Abstract base class that can use the ALcyWorkspaceCodec
to encode paths and
reference to Object
s. This way these ILcyPropertyConverter
converters
can convert general Object
s to their workspace reference String
s.
Constructor and Description |
---|
ALcyWorkspacePropertyConverter() |
Modifier and Type | Method and Description |
---|---|
void |
convertAfterDecode(ALcyProperties aPropertiesSFCT)
Modifies the given
ALcyProperties so that String properties
representing Object s are converted to these Object s. |
abstract void |
convertAfterDecode(ALcyWorkspaceCodec aWSCodec,
ALcyProperties aPropertiesSFCT)
Serves the same purpose as
ILcyPropertyConverter.convertAfterDecode(com.luciad.lucy.util.properties.ALcyProperties) ,
but gives access to the ALcyWorkspaceCodec . |
void |
convertBeforeEncode(ALcyProperties aPropertiesSFCT)
Modifies the given
ALcyProperties so that all Object values are
converted to one or more String values. |
abstract void |
convertBeforeEncode(ALcyWorkspaceCodec aWSCodec,
ALcyProperties aPropertiesSFCT)
Serves the same purpose as
ILcyPropertyConverter.convertBeforeEncode(com.luciad.lucy.util.properties.ALcyProperties) ,
but gives access to the ALcyWorkspaceCodec . |
protected abstract ALcyWorkspaceCodec |
getWorkspaceCodec()
Returns the current
ALcyWorkspaceCodec . |
public final void convertAfterDecode(ALcyProperties aPropertiesSFCT)
ILcyPropertyConverter
Modifies the given ALcyProperties
so that String
properties
representing Object
s are converted to these Object
s.
This method should remove the String
properties from which it constructs the
Object
. Only the Object
property should remain.
convertAfterDecode
in interface ILcyPropertyConverter
aPropertiesSFCT
- The properties to modify.public final void convertBeforeEncode(ALcyProperties aPropertiesSFCT)
ILcyPropertyConverter
Modifies the given ALcyProperties
so that all Object
values are
converted to one or more String
values.
This method should remove the original Object
that it encodes. Only the
String
property or properties should remain.
convertBeforeEncode
in interface ILcyPropertyConverter
aPropertiesSFCT
- The ALcyProperties
to modify. Never null
.protected abstract ALcyWorkspaceCodec getWorkspaceCodec()
Returns the current ALcyWorkspaceCodec
.
Note that implementations are discouraged to retrieve the workspace codec from the workspace
manager of the Lucy backend, as it is not guaranteed that the workspace codec given to codec
delegates and object codecs is the same as the workspace codec of the workspace manager of the
Lucy backend. Instead the ALcyWorkspaceCodec
should be the one that is passed to
an ALcyWorkspaceObjectCodec
or ALcyWorkspaceCodecDelegate
.
ALcyWorkspaceCodec
to pass to convertBeforeEncode
and
convertAfterDecode
.public abstract void convertBeforeEncode(ALcyWorkspaceCodec aWSCodec, ALcyProperties aPropertiesSFCT)
Serves the same purpose as ILcyPropertyConverter.convertBeforeEncode(com.luciad.lucy.util.properties.ALcyProperties)
,
but gives access to the ALcyWorkspaceCodec
.
aWSCodec
- The current ALcyWorkspaceCodec
. May be null
.aPropertiesSFCT
- The ALcyProperties
to convert. Never null
.convertBeforeEncode(com.luciad.lucy.util.properties.ALcyProperties)
public abstract void convertAfterDecode(ALcyWorkspaceCodec aWSCodec, ALcyProperties aPropertiesSFCT)
Serves the same purpose as ILcyPropertyConverter.convertAfterDecode(com.luciad.lucy.util.properties.ALcyProperties)
,
but gives access to the ALcyWorkspaceCodec
.
aWSCodec
- The current ALcyWorkspaceCodec
. May be null
.aPropertiesSFCT
- The ALcyProperties
to convert. Never null
.convertAfterDecode(com.luciad.lucy.util.properties.ALcyProperties)