package au.gov.ga.geodesy.support.mapper.dozer.populator;

import au.gov.ga.geodesy.support.utils.GMLGmlTools;
import au.gov.ga.geodesy.support.utils.GMLMiscTools;
import au.gov.xml.icsm.geodesyml.v_0_3.SiteIdentificationType;

/**
 * The translate simply copied the Countries (in Sopac Sitelog XML) across to the GeoesyML CountryCode elements.
 * This cleans those up by converting to the actual CountryCodes.
 * 
 * @author brookes
 *
 */
public class SiteIdentificationTypePopulator extends GeodesyMLElementPopulator<SiteIdentificationType> {
    /**
     * Consider all required elements for this type and add any missing ones with default values.
     * 
     * @param gnssReceiverType
     */
    void checkAllRequiredElementsPopulated(SiteIdentificationType sensorType) {
        checkElementPopulated(sensorType, "cdpNumber", GMLMiscTools.getEmptyString());
        checkElementPopulated(sensorType, "iersDOMESNumber", GMLMiscTools.getEmptyString());
    }
}

@@ -56,60 +56,8 @@
 r;%0A%0A
-import au.gov.ga.geodesy.support.utils.GMLGmlTools;%0A
 impo
@@ -720,16 +720,102 @@
 Type) %7B%0A
+        checkElementPopulated(sensorType, %22siteName%22, GMLMiscTools.getEmptyString());%0A
         

Fix missing required elements in SiteIdentification