waterml/src/main/java/ucar/nc2/ogc/waterml/NcMonitoringPointType.java
public static MonitoringPointType initMonitoringPointType(
            MonitoringPointType monitoringPoint, StationTimeSeriesFeature stationFeat) {
        // @gml:id
        String id = MarshallingUtil.createIdForType(MonitoringPointType.class);
        monitoringPoint.setId(id);

        // gml:identifier
        NcCodeWithAuthorityType.initIdentifier(monitoringPoint.addNewIdentifier(), stationFeat);

        // gml:description
        NcStringOrRefType.initDescription(monitoringPoint.addNewDescription(), stationFeat);
        if (monitoringPoint.getDescription().getStringValue() == null ||
                monitoringPoint.getDescription().getStringValue().isEmpty()) {
            monitoringPoint.unsetDescription();
        }

        // sam:sampledFeature
        monitoringPoint.addNewSampledFeature();
        monitoringPoint.setNilSampledFeatureArray(0);  // Set the "sam:sampledFeature" we just added to nil.

        // sams:shape
        NcShapeType.initShape(monitoringPoint.addNewShape(), stationFeat);

        return monitoringPoint;
    }
public static MonitoringPointType initMonitoringPointType(
            MonitoringPointType monitoringPoint, StationTimeSeriesFeature stationFeat) {
        // @gml:id
        String id = MarshallingUtil.createIdForType(MonitoringPointType.class);
        monitoringPoint.setId(id);

        // gml:identifier
        NcCodeWithAuthorityType.initIdentifier(monitoringPoint.addNewIdentifier(), stationFeat);

        // gml:description
        NcStringOrRefType.initDescription(monitoringPoint.addNewDescription(), stationFeat);
        if (monitoringPoint.getDescription().getStringValue() == null ||
                monitoringPoint.getDescription().getStringValue().isEmpty()) {
            monitoringPoint.unsetDescription();
        }

        // sam:sampledFeature
        monitoringPoint.addNewSampledFeature();
        monitoringPoint.setNilSampledFeatureArray(0);  // Set the "sam:sampledFeature" we just added to nil.

        // sams:shape
        NcShapeType.initShape(monitoringPoint.addNewShape(), stationFeat);

        return monitoringPoint;
    }
public static MonitoringPointType initMonitoringPointType ( MonitoringPointType monitoringPoint , StationTimeSeriesFeature stationFeat ) { // @gml:id String id = MarshallingUtil . createIdForType ( MonitoringPointType . class ) ; monitoringPoint . setId ( id ) ; // gml:identifier NcCodeWithAuthorityType . initIdentifier ( monitoringPoint . addNewIdentifier ( ) , stationFeat ) ; // gml:description NcStringOrRefType . initDescription ( monitoringPoint . addNewDescription ( ) , stationFeat ) ; if ( monitoringPoint . getDescription ( ) . getStringValue ( ) == null || monitoringPoint . getDescription ( ) . getStringValue ( ) . isEmpty ( ) ) { monitoringPoint . unsetDescription ( ) ; } // sam:sampledFeature monitoringPoint . addNewSampledFeature ( ) ; monitoringPoint . setNilSampledFeatureArray ( 0 ) ; // Set the "sam:sampledFeature" we just added to nil. // sams:shape NcShapeType . initShape ( monitoringPoint . addNewShape ( ) , stationFeat ) ; return monitoringPoint ; }
wml2:Collection/wml2:observationMember/om:OM_Observation/om:featureOfInterest/wml2:MonitoringPoint
wml2 : Collection / wml2 : observationMember / om : OM_Observation / om : featureOfInterest / wml2 : MonitoringPoint