Package com.luciad.reference
Class TLcdModelReferenceFactory
java.lang.Object
com.luciad.reference.TLcdModelReferenceFactory
The
TLcdModelReferenceFactory
is capable of creating an instance
of ILcdModelReference
by decoding a given Properties
object.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdModelReference
createModelReference
(String aPrefix, Properties aProperties) This method will, givenaPrefix
andaProperties
, return anILcdModelReference
.static void
writePropertiesSFCT
(ILcdModelReference aModelReference, String aPrefix, Properties aPropertiesSFCT) This method will, given aaPrefix
and aILcdModelReference
, store theILcdModelReference
as properties into the givenaPropertiesSFCT
as a side effect.
-
Constructor Details
-
TLcdModelReferenceFactory
public TLcdModelReferenceFactory()
-
-
Method Details
-
createModelReference
public static ILcdModelReference createModelReference(String aPrefix, Properties aProperties) throws IllegalArgumentException This method will, givenaPrefix
andaProperties
, return anILcdModelReference
. It will look for the following key : <aPrefix>ILcdModelReference.class : the name of the class, that implementsILcdModelReference
, and of which an instance should be created. TheProperties
objectaProperties
should contain entries which will be analyzed by the various instances ofILcdModelReference
which have aloadProperties
method.- Parameters:
aPrefix
- the prefix to be used for property names.aProperties
- the Properties object containing the serialized model reference property values.- Returns:
- the ILcdModelReference corresponding to the serialized properties.
- Throws:
IllegalArgumentException
- if the ILcdModelReference cannot be created.- See Also:
-
writePropertiesSFCT
public static void writePropertiesSFCT(ILcdModelReference aModelReference, String aPrefix, Properties aPropertiesSFCT) throws IllegalArgumentException This method will, given aaPrefix
and aILcdModelReference
, store theILcdModelReference
as properties into the givenaPropertiesSFCT
as a side effect.Currently, the supported references are:
- TLcdGeodeticReference
- TLcdGridReference
- TLcdGeocentricReference
- TLcdTopocentricReference
- TLcdCartesianReference
- Parameters:
aModelReference
- the model reference to be serialized.aPrefix
- the prefix to use for the property names.aPropertiesSFCT
- the Properties object in which the serialized properties are stored as side effect.- Throws:
IllegalArgumentException
- if theILcdModelReference
cannot be serialized as properties.
-