Class ALcyWorkspacePropertyConverter
- All Implemented Interfaces:
ILcyPropertyConverter
- Direct Known Subclasses:
ALcyPreferencesPropertyConverter
Abstract base class that can use the ALcyWorkspaceCodec to encode paths and
reference to Objects. This way these ILcyPropertyConverter converters
can convert general Objects to their workspace reference Strings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidconvertAfterDecode(ALcyProperties aPropertiesSFCT) Modifies the givenALcyPropertiesso thatStringproperties representingObjects are converted to theseObjects.abstract voidconvertAfterDecode(ALcyWorkspaceCodec aWSCodec, ALcyProperties aPropertiesSFCT) Serves the same purpose asILcyPropertyConverter.convertAfterDecode(com.luciad.lucy.util.properties.ALcyProperties), but gives access to theALcyWorkspaceCodec.final voidconvertBeforeEncode(ALcyProperties aPropertiesSFCT) Modifies the givenALcyPropertiesso that allObjectvalues are converted to one or moreStringvalues.abstract voidconvertBeforeEncode(ALcyWorkspaceCodec aWSCodec, ALcyProperties aPropertiesSFCT) Serves the same purpose asILcyPropertyConverter.convertBeforeEncode(com.luciad.lucy.util.properties.ALcyProperties), but gives access to theALcyWorkspaceCodec.protected abstract ALcyWorkspaceCodecReturns the currentALcyWorkspaceCodec.
-
Constructor Details
-
ALcyWorkspacePropertyConverter
public ALcyWorkspacePropertyConverter()
-
-
Method Details
-
convertAfterDecode
Description copied from interface:ILcyPropertyConverterModifies the given
ALcyPropertiesso thatStringproperties representingObjects are converted to theseObjects.This method should remove the
Stringproperties from which it constructs theObject. Only theObjectproperty should remain.- Specified by:
convertAfterDecodein interfaceILcyPropertyConverter- Parameters:
aPropertiesSFCT- The properties to modify.
-
convertBeforeEncode
Description copied from interface:ILcyPropertyConverterModifies the given
ALcyPropertiesso that allObjectvalues are converted to one or moreStringvalues.This method should remove the original
Objectthat it encodes. Only theStringproperty or properties should remain.- Specified by:
convertBeforeEncodein interfaceILcyPropertyConverter- Parameters:
aPropertiesSFCT- TheALcyPropertiesto 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
ALcyWorkspaceCodecshould be the one that is passed to anALcyWorkspaceObjectCodecorALcyWorkspaceCodecDelegate.- Returns:
- The
ALcyWorkspaceCodecto pass toconvertBeforeEncodeandconvertAfterDecode.
-
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- TheALcyPropertiesto 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- TheALcyPropertiesto convert. Nevernull.- See Also:
-