Class ALcyWorkspacePropertyConverter
- All Implemented Interfaces:
ILcyPropertyConverter
- Direct Known Subclasses:
ALcyPreferencesPropertyConverter
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
convertAfterDecode
(ALcyProperties aPropertiesSFCT) Modifies the givenALcyProperties
so thatString
properties representingObject
s are converted to theseObject
s.abstract void
convertAfterDecode
(ALcyWorkspaceCodec aWSCodec, ALcyProperties aPropertiesSFCT) Serves the same purpose asILcyPropertyConverter.convertAfterDecode(com.luciad.lucy.util.properties.ALcyProperties)
, but gives access to theALcyWorkspaceCodec
.final void
convertBeforeEncode
(ALcyProperties aPropertiesSFCT) Modifies the givenALcyProperties
so that allObject
values are converted to one or moreString
values.abstract void
convertBeforeEncode
(ALcyWorkspaceCodec aWSCodec, ALcyProperties aPropertiesSFCT) Serves the same purpose asILcyPropertyConverter.convertBeforeEncode(com.luciad.lucy.util.properties.ALcyProperties)
, but gives access to theALcyWorkspaceCodec
.protected abstract ALcyWorkspaceCodec
Returns the currentALcyWorkspaceCodec
.
-
Constructor Details
-
ALcyWorkspacePropertyConverter
public ALcyWorkspacePropertyConverter()
-
-
Method Details
-
convertAfterDecode
Description copied from interface:ILcyPropertyConverter
Modifies the given
ALcyProperties
so thatString
properties representingObject
s are converted to theseObject
s.This method should remove the
String
properties from which it constructs theObject
. Only theObject
property should remain.- Specified by:
convertAfterDecode
in interfaceILcyPropertyConverter
- Parameters:
aPropertiesSFCT
- The properties to modify.
-
convertBeforeEncode
Description copied from interface:ILcyPropertyConverter
Modifies the given
ALcyProperties
so that allObject
values are converted to one or moreString
values.This method should remove the original
Object
that it encodes. Only theString
property or properties should remain.- Specified by:
convertBeforeEncode
in interfaceILcyPropertyConverter
- Parameters:
aPropertiesSFCT
- TheALcyProperties
to modify. Nevernull
.
-
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 anALcyWorkspaceObjectCodec
orALcyWorkspaceCodecDelegate
.- Returns:
- The
ALcyWorkspaceCodec
to pass toconvertBeforeEncode
andconvertAfterDecode
.
-
convertBeforeEncode
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 theALcyWorkspaceCodec
.- Parameters:
aWSCodec
- The currentALcyWorkspaceCodec
. May benull
.aPropertiesSFCT
- TheALcyProperties
to convert. Nevernull
.- See Also:
-
convertAfterDecode
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 theALcyWorkspaceCodec
.- Parameters:
aWSCodec
- The currentALcyWorkspaceCodec
. May benull
.aPropertiesSFCT
- TheALcyProperties
to convert. Nevernull
.- See Also:
-