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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdModelReferencecreateModelReference(String aPrefix, Properties aProperties) This method will, givenaPrefixandaProperties, return anILcdModelReference.static voidwritePropertiesSFCT(ILcdModelReference aModelReference, String aPrefix, Properties aPropertiesSFCT) This method will, given aaPrefixand aILcdModelReference, store theILcdModelReferenceas properties into the givenaPropertiesSFCTas a side effect.
-
Constructor Details
-
TLcdModelReferenceFactory
public TLcdModelReferenceFactory()
-
-
Method Details
-
createModelReference
public static ILcdModelReference createModelReference(String aPrefix, Properties aProperties) throws IllegalArgumentException This method will, givenaPrefixandaProperties, 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. ThePropertiesobjectaPropertiesshould contain entries which will be analyzed by the various instances ofILcdModelReferencewhich have aloadPropertiesmethod.- 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 aaPrefixand aILcdModelReference, store theILcdModelReferenceas properties into the givenaPropertiesSFCTas 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 theILcdModelReferencecannot be serialized as properties.
-