public class TLcdModelReferenceFactory
extends java.lang.Object
TLcdModelReferenceFactory
is capable of creating an instance
of ILcdModelReference
by decoding a given Properties
object.Constructor and Description |
---|
TLcdModelReferenceFactory() |
Modifier and Type | Method and Description |
---|---|
static ILcdModelReference |
createModelReference(java.lang.String aPrefix,
java.util.Properties aProperties)
This method will, given
aPrefix and aProperties ,
return an ILcdModelReference . |
static void |
writePropertiesSFCT(ILcdModelReference aModelReference,
java.lang.String aPrefix,
java.util.Properties aPropertiesSFCT)
This method will, given a
aPrefix and a ILcdModelReference ,
store the ILcdModelReference as properties into the given
aPropertiesSFCT as a side effect. |
public static ILcdModelReference createModelReference(java.lang.String aPrefix, java.util.Properties aProperties) throws java.lang.IllegalArgumentException
aPrefix
and aProperties
,
return an ILcdModelReference
.
It will look for the following key :
<aPrefix>ILcdModelReference.class : the name of the class, that implements
ILcdModelReference
, and of which an instance should be created.
The Properties
object aProperties
should contain
entries which will be analyzed by the various instances of
ILcdModelReference
which have a loadProperties
method.aPrefix
- the prefix to be used for property names.aProperties
- the Properties object containing the serialized model reference property values.java.lang.IllegalArgumentException
- if the ILcdModelReference cannot be created.TLcdGeocentricReference
,
TLcdGeodeticReference
,
TLcdGridReference
,
TLcdTopocentricReference
public static void writePropertiesSFCT(ILcdModelReference aModelReference, java.lang.String aPrefix, java.util.Properties aPropertiesSFCT) throws java.lang.IllegalArgumentException
aPrefix
and a ILcdModelReference
,
store the ILcdModelReference
as properties into the given
aPropertiesSFCT
as a side effect.
Currently, the supported references are:
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.java.lang.IllegalArgumentException
- if the ILcdModelReference
cannot be serialized as properties.