use of un.unece.uncefact.data.standard.unqualifieddatatype._20.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 un.unece.uncefact.data.standard.unqualifieddatatype._20.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;
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getGearProblem.
public static GearProblem getGearProblem() {
CodeType typeCode = getCodeType("Code Type 1", "fhty58-gh586t-5tjf8-t58rjewe");
QuantityType affectedQuantity = getQuantityType(222);
List<CodeType> recoveryMeasureCodes = Arrays.asList(getCodeType("Quantity Code 1", "57t3yf-ght43yrf-ght56yru-ght7565h"));
List<FishingGear> relatedFishingGears = Arrays.asList(getFishingGear());
GearProblem gearProblem = new GearProblem(typeCode, affectedQuantity, recoveryMeasureCodes, Arrays.asList(getFluxLocation()), relatedFishingGears);
return gearProblem;
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getFluxReportDocument.
public static FLUXReportDocument getFluxReportDocument() {
List<IDType> ids = Arrays.asList(getIdType("flux_report_doc_1", "fhty58-gh586t-5tjf8-t58rjewe"));
IDType referencedID = getIdType("Ref ID 1", "fhty58-gh586t-5tjf8-t58rjewe");
DateTimeType creationDateTime = getDateTimeType("2016-07-01 11:15:00");
CodeType purposeCode = getCodeType("5", "FLUX_GP_PURPOSE");
final TextType purpose = getTextType("Purpose Text");
CodeType typeCode = getCodeType("FluxReportTypeCode", "fhty58-gh586t-5tjf8-t58rjewe");
FLUXParty ownerFLUXParty = new FLUXParty(Arrays.asList(getIdType("Owner flux party id 1", "58fjrut-tjfuri-586jte-5jfur")), Arrays.asList(getTextType("This is sample text for owner flux party")));
FLUXReportDocument fluxReportDocument = new FLUXReportDocument(ids, referencedID, creationDateTime, purposeCode, purpose, typeCode, ownerFLUXParty);
return fluxReportDocument;
}
use of un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getContactParty.
public static ContactParty getContactParty() {
ContactParty contactParty = new ContactParty();
CodeType roleCode = getCodeType("MASTER", "FLUX_CONTACT_ ROLE");
contactParty.setRoleCodes(Arrays.asList(roleCode));
contactParty.setSpecifiedContactPersons(Arrays.asList(getContactPerson()));
contactParty.setSpecifiedStructuredAddresses(Arrays.asList(getStructuredAddress()));
return contactParty;
}
Aggregations