use of org.geotoolkit.gml.xml.v311.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getAapProduct.
public static AAPProduct getAapProduct() {
CodeType speciesCode = getCodeType("Species 1", "qbdcg-3fhr5-rd4kd5-er5tgd5k");
QuantityType quantityType = getQuantityType(123);
MeasureType measureType = getMeasureType(123, "C62", "qbdcg-3fhr5-rd4kd5-er5tgd5k");
CodeType weighingMeansCode = getCodeType("Weighing Means 1", "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k");
CodeType usageCode = getCodeType("Usage Code 1", "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k");
QuantityType packagingUnitQuantity = getQuantityType(1234);
CodeType packagingTypeCode = getCodeType("packaging type 1", "FISH_PACKAGING");
MeasureType packagingUnitAverageWeightMeasure = getMeasureType(123, "C62", "qbdcg-3fhr5-rd4kd5-er5tgd5k");
SalesPrice totalSalesPrice = getSalesPrice(getAmountType(123, "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k", "1"));
SizeDistribution specifiedSizeDistribution = getSizeDistribution(getCodeType("catagory 1", "qbd43cg-3fhr5t65-rd4kd5rt4-er5tgd5k"), getCodeType("class code1", "qbd43cg-3fhr5t65-rd45674-er5tgd5k"));
AAPProduct aapProduct = new AAPProduct(speciesCode, quantityType, measureType, weighingMeansCode, usageCode, packagingUnitQuantity, packagingTypeCode, packagingUnitAverageWeightMeasure, null, totalSalesPrice, specifiedSizeDistribution, null, null);
return aapProduct;
}
use of org.geotoolkit.gml.xml.v311.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.gml.xml.v311.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.gml.xml.v311.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.gml.xml.v311.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;
}
Aggregations