use of net.opengis.ows11.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getFishingTrip.
public static FishingTrip getFishingTrip() {
List<IDType> ids = Arrays.asList(getIdType("ID 1", "fhty58-gh586t-5tjf8-t58rjewe"));
CodeType typeCode = getCodeType("Code Type 1", "57t3yf-ght43yrf-ght56yru-ght7565h");
List<DelimitedPeriod> specifiedDelimitedPeriods = Arrays.asList(getDelimitedPeriod());
FishingTrip fishingTrip = new FishingTrip(ids, typeCode, specifiedDelimitedPeriods);
return fishingTrip;
}
use of net.opengis.ows11.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getContactPerson.
public static ContactPerson getContactPerson() {
TextType title = getTextType("MR");
TextType givenName = getTextType("Test Name");
TextType middleName = getTextType("Test Middle Name");
TextType familyNamePrefix = getTextType("Test Prefix");
TextType familyName = getTextType("Test Family Name");
TextType nameSuffix = getTextType("Test Suffix");
CodeType genderCode = getCodeType("Gender", "4ryf65-fhtfyd-thfey45-tu5r7ght");
TextType alias = getTextType("Test Alias");
// ContactPerson contactPerson = new ContactPerson();
ContactPerson contactPerson = new ContactPerson(title, givenName, middleName, familyNamePrefix, familyName, nameSuffix, genderCode, alias, null, null, null, null, null, null, null);
return contactPerson;
}
use of net.opengis.ows11.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getCodeType.
public static CodeType getCodeType(String value, String listId) {
CodeType codeType = new CodeType();
codeType.setValue(value);
codeType.setListID(listId);
return codeType;
}
use of net.opengis.ows11.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getFluxCharacteristics.
public static FLUXCharacteristic getFluxCharacteristics() {
CodeType typeCode = getCodeType("Code 1", "57t3yf-ght43yrf-ght56yru-ght7565h");
List<TextType> descriptions = Arrays.asList(getTextType("This is test description"));
MeasureType valueMeasure = getMeasureType(333, "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 Value 1", "57tr4t3yf-ght43yrf-ght56yr5u-ght75365h");
List<TextType> values = Arrays.asList(getTextType("This is sample value"));
QuantityType valueQuantity = getQuantityType(123);
List<FLUXLocation> specifiedFLUXLocations = null;
List<FLAPDocument> relatedFLAPDocuments = Arrays.asList(getFlapDocument());
FLUXCharacteristic fluxCharacteristic = new FLUXCharacteristic(typeCode, descriptions, valueMeasure, valueDateTime, valueIndicator, valueCode, values, valueQuantity, specifiedFLUXLocations, relatedFLAPDocuments);
return fluxCharacteristic;
}
use of net.opengis.ows11.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class AapProcessMapper method getAapProcessCodes.
protected Set<AapProcessCodeEntity> getAapProcessCodes(List<CodeType> codeTypes, AapProcessEntity aapProcessEntity) {
if (codeTypes == null || codeTypes.isEmpty()) {
return Collections.emptySet();
}
Set<AapProcessCodeEntity> aapProcessCodeEntities = new HashSet<>();
for (CodeType codeType : codeTypes) {
AapProcessCodeEntity entity = AapProcessMapper.INSTANCE.mapToAapProcessCodeEntity(codeType);
entity.setAapProcess(aapProcessEntity);
aapProcessCodeEntities.add(entity);
}
return aapProcessCodeEntities;
}
Aggregations