public interface ILcdEarthAssetCodec
ILcdEarthAsset
objects,
thus supporting persistency for 3D terrain metadata. Assets are encoded and
decoded by converting them to and from Properties
objects.
These objects, in turn, can be written to disk by
TLcdEarthAssetModelCodec
.Modifier and Type | Field and Description |
---|---|
static String |
TYPE_NAME
Property name that is used to store the type name of an asset in a
Properties object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canDecodeAsset(Properties aProperties)
Returns true if this codec can create an ILcdEarthAsset based on the given
Properties object.
|
boolean |
canEncodeAsset(ILcdEarthAsset aAsset)
Returns true if this codec can create a Properties object for the
given ILcdEarthAsset.
|
ILcdEarthAsset |
decodeAsset(Properties aProperties)
Create an ILcdEarthAsset based on a Properties object.
|
Properties |
encodeAsset(ILcdEarthAsset aAsset)
Create a Properties object based on an ILcdEarthAsset
|
String |
getDisplayName()
Returns a user-displayable name for this codec.
|
static final String TYPE_NAME
canDecodeAsset(java.util.Properties)
to determine whether or not the codec can handle the given asset
properties, so it should always be added to the properties by
encodeAsset(com.luciad.earth.metadata.ILcdEarthAsset)
.ILcdEarthAsset decodeAsset(Properties aProperties)
aProperties
- the properties of the assetILcdEarthAsset
Properties encodeAsset(ILcdEarthAsset aAsset)
aAsset
- the asset to encode into a Properties objectboolean canDecodeAsset(Properties aProperties)
aProperties
- a Properties object representing an ILcdEarthAssetboolean canEncodeAsset(ILcdEarthAsset aAsset)
aAsset
- the ILcdEarthAsset to be encodedString getDisplayName()