use of org.geotoolkit.ows.xml.v110.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 org.geotoolkit.ows.xml.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getAapProcess.
public static AAPProcess getAapProcess() {
List<CodeType> codeList = Arrays.asList(getCodeType("FISH_FRESHNESS", "FLUX_PROCESS_TYPE"));
NumericType numericType = getNumericType(123);
AAPProcess aapProcess = new AAPProcess(codeList, numericType, null, Arrays.asList(getAapProduct()));
return aapProcess;
}
use of org.geotoolkit.ows.xml.v110.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 org.geotoolkit.ows.xml.v110.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 org.geotoolkit.ows.xml.v110.CodeType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getStructuredAddress.
public static StructuredAddress getStructuredAddress() {
IDType id = getIdType("ID type 1", "5ryit6-5tj47e-45jfyr-4tu57fg");
CodeType postcodeCode = getCodeType("Post code 1", "5ryit6-5tj47e-45jfyr-4tu57fg-rt54tgr");
TextType buildingName = getTextType("Test Building");
TextType streetName = getTextType("Test Street");
TextType cityName = getTextType("Test City");
IDType countryID = getIdType("Test Country", "ryfht53-fht5-6htfur-57thft");
TextType citySubDivisionName = getTextType("Test city subdivision");
TextType countryName = getTextType("Test Country");
TextType countrySubDivisionName = getTextType("Test country subdivision");
TextType blockName = getTextType("Test Block");
TextType plotIdentification = getTextType("123");
TextType postOfficeBox = getTextType("548675");
TextType buildingNumber = getTextType("12345");
TextType staircaseNumber = getTextType("3456");
TextType floorIdentification = getTextType("8888");
TextType roomIdentification = getTextType("555");
TextType postalArea = getTextType("123");
// StructuredAddress structuredAddress = new StructuredAddress();
StructuredAddress structuredAddress = new StructuredAddress(id, postcodeCode, buildingName, streetName, cityName, countryID, citySubDivisionName, countryName, countrySubDivisionName, blockName, plotIdentification, postOfficeBox, buildingNumber, staircaseNumber, floorIdentification, roomIdentification, postalArea);
/* StructuredAddress structuredAddress = new StructuredAddress(id, postcodeCode, buildingName, streetName,
cityName, countryID, citySubDivisionName, countryName, countrySubDivisionName, blockName, plotIdentification,
postOfficeBox, buildingNumber, staircaseNumber, floorIdentification, roomIdentification);*/
return structuredAddress;
}
Aggregations