public class TLcdGeodeticDatumFactory extends Object
TLcdGeodeticDatumFactory
is capable of creating an instance
of ILcdGeodeticDatum
by decoding a given Properties
object.Constructor and Description |
---|
TLcdGeodeticDatumFactory() |
Modifier and Type | Method and Description |
---|---|
static ILcdGeodeticDatum |
createGeodeticDatum(String aPrefix,
Properties aProperties)
This method will, given
aPrefix and aProperties ,
return an ILcdGeodeticDatum . |
static void |
writePropertiesSFCT(ILcdGeodeticDatum aGeodeticDatum,
String aPrefix,
Properties aPropertiesSFCT)
Serializes a
ILcdGeodeticDatum as properties into a Properties
object. |
public static ILcdGeodeticDatum createGeodeticDatum(String aPrefix, Properties aProperties) throws IllegalArgumentException
aPrefix
and aProperties
,
return an ILcdGeodeticDatum
. It will look for the following
key : <aPrefix>ILcdGeodeticDatumFactory.class : the name of a
ILcdGeodeticDatumFactory
instance that is capable of creating
a ILcdGeodeticDatum
.
The aProperties
object should contain entries which will be
analyzed by the specified ILcdGeodeticDatumFactory
instance.aPrefix
- prefix for propertFy names.aProperties
- Properties object holding the property values.ILcdGeodeticDatum
corresponding to
the given properties.IllegalArgumentException
- if the ILcdGeodeticDatum
cannot be created.TLcdJPLGeodeticDatumFactory
,
TLcdNIMA8350GeodeticDatumFactory
public static void writePropertiesSFCT(ILcdGeodeticDatum aGeodeticDatum, String aPrefix, Properties aPropertiesSFCT)
ILcdGeodeticDatum
as properties into a Properties
object. The property names get the common prefix aPrefix
. The
method will look if the ILcdGeodeticDatum
is specified by one
of the ILcdGeodeticDatumFactory
implementations:
aGeodeticDatum
- geodetic datum to serialize.aPrefix
- prefix to use for property names.aPropertiesSFCT
- container holding the property values as side effect.IllegalArgumentException
- if the serialization as properties fails.createGeodeticDatum(java.lang.String, java.util.Properties)
,
TLcdJPLGeodeticDatumFactory
,
TLcdNIMA8350GeodeticDatumFactory