use of org.geotoolkit.ows.xml.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getVesselStorageCharacteristic.
public static VesselStorageCharacteristic getVesselStorageCharacteristic() {
VesselStorageCharacteristic vesselStorageCharacteristic = new VesselStorageCharacteristic();
List<CodeType> typeCodes = Arrays.asList(getCodeType("CONTAINER", "VESSEL_STORAGE_TYPE"));
IDType id = getIdType("ID 1", "687yu5-tught6-thfyr-5yt74e");
vesselStorageCharacteristic.setID(id);
vesselStorageCharacteristic.setTypeCodes(typeCodes);
return vesselStorageCharacteristic;
}
use of org.geotoolkit.ows.xml.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getVesselTransportMeans.
public static VesselTransportMeans getVesselTransportMeans() {
VesselTransportMeans vesselTransportMeans = new VesselTransportMeans();
CodeType roleCode = getCodeType("CATCHING_VESSEL", "FA_VESSEL_ROLE");
List<TextType> names = Arrays.asList(getTextType("Test Name"));
List<FLAPDocument> grantedFLAPDocuments = Arrays.asList(getFlapDocument());
List<IDType> ids = Arrays.asList(getIdType("ID 1", "CFR"));
List<ContactParty> specifiedContactParties = Arrays.asList(getContactParty());
List<RegistrationEvent> specifiedRegistrationEvents = Arrays.asList(getRegistrationEvent());
VesselCountry vesselCounty = new VesselCountry(getIdType("Country Id 1", "tu587r-5jt85-tjfur7-tjgut7"));
vesselTransportMeans.setRoleCode(roleCode);
vesselTransportMeans.setNames(names);
vesselTransportMeans.setGrantedFLAPDocuments(grantedFLAPDocuments);
vesselTransportMeans.setIDS(ids);
vesselTransportMeans.setSpecifiedContactParties(specifiedContactParties);
vesselTransportMeans.setSpecifiedRegistrationEvents(specifiedRegistrationEvents);
vesselTransportMeans.setRegistrationVesselCountry(vesselCounty);
return vesselTransportMeans;
}
use of org.geotoolkit.ows.xml.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getGearCharacteristics.
public static GearCharacteristic getGearCharacteristics() {
CodeType typeCode = getCodeType("Code 1", "57t3yf-ght43yrf-ght56yru-ght7565h");
List<TextType> descriptions = Arrays.asList(getTextType("This is sample text"));
MeasureType valueMeasure = getMeasureType(123, "C62", "57t3yf-ght43yrf-ght56yru-ght7565h");
DateTimeType valueDateTime = getDateTimeType("2016-07-01 11:15:00");
IndicatorType valueIndicator = getIndicatorType(true, "Test value", "Test format");
CodeType valueCode = getCodeType("Code type 1", "4fhry5-thfyr85-67thf-5htr84");
TextType value = getTextType("This is sample Text");
QuantityType valueQuantity = getQuantityType(123);
List<FLUXLocation> specifiedFluxLocations = Arrays.asList(getFluxLocation());
GearCharacteristic gearCharacteristic = new GearCharacteristic(typeCode, descriptions, valueMeasure, valueDateTime, valueIndicator, valueCode, value, valueQuantity, specifiedFluxLocations);
return gearCharacteristic;
}
use of org.geotoolkit.ows.xml.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getFaReportDocument.
public static FAReportDocument getFaReportDocument() {
CodeType typeCode = getCodeType("DECLARATION", "FLUX_FA_REPORT_TYPE");
CodeType fmcMarkerCode = getCodeType("Fmz marker 1", "h49rh-fhrus33-fj84hjs82-4h84hw82");
List<IDType> relatedReportIDs = Arrays.asList(getIdType("ID 1", "47rfh-5hry4-thfur75-4hf743"));
DateTimeType acceptanceDateTime = getDateTimeType("2016-07-01 11:15:00");
FLUXReportDocument relatedFLUXReportDocument = getFluxReportDocument();
List<FishingActivity> specifiedFishingActivities = Arrays.asList(getFishingActivity());
VesselTransportMeans specifiedVesselTransportMeans = getVesselTransportMeans();
FAReportDocument faReportDocument = new FAReportDocument(typeCode, fmcMarkerCode, relatedReportIDs, acceptanceDateTime, relatedFLUXReportDocument, specifiedFishingActivities, specifiedVesselTransportMeans);
return faReportDocument;
}
use of org.geotoolkit.ows.xml.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getFishingGear.
public static FishingGear getFishingGear() {
FishingGear fishingGear = new FishingGear();
CodeType typeCode = getCodeType("Code Type 1", "57t3yf-ght43yrf-ght56yru-ght7565h");
List<CodeType> roleCodes = Arrays.asList(getCodeType("Role Code 1", "57t3yf-g43yrf-ght56ru-ght65h"));
fishingGear.setTypeCode(typeCode);
fishingGear.setRoleCodes(roleCodes);
fishingGear.setApplicableGearCharacteristics(Arrays.asList(getGearCharacteristics()));
return fishingGear;
}
Aggregations