use of net.opengis.swe.x20.TextType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getTextType.
private static TextType getTextType(String value) {
TextType textType = new TextType();
textType.setValue(value);
return textType;
}
use of net.opengis.swe.x20.TextType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getFLUXReportDocument.
public static FLUXReportDocument getFLUXReportDocument() {
new FLUXReportDocument();
List<IDType> ids = Arrays.asList(getIdType("FLUX_REPORT_ID_1", "FLUX_SCHEME_ID1"));
IDType referenceId = getIdType("REF_ID 1", "47rfh-5hry4-thfur75-4hf743");
DateTimeType creationDateTime = getDateTimeType("2016-07-01 11:15:00");
CodeType purposeCode = getCodeType("9", "FLUX_GP_PURPOSE");
CodeType typeCode = getCodeType("type Code1", "fhr574fh-thrud754-kgitjf754-gjtufe89");
List<IDType> ownerFluxPartyId = Arrays.asList(getIdType("Owner_flux_party_id_1", "flux_Party_scheme_id"));
List<TextType> names = Arrays.asList(getTextType("fluxPartyOwnerName 1"));
FLUXParty fluxParty = new FLUXParty(ownerFluxPartyId, names);
FLUXReportDocument fluxReportDocument = new FLUXReportDocument(ids, referenceId, creationDateTime, purposeCode, getTextType("Purpose"), typeCode, fluxParty);
return fluxReportDocument;
}
use of net.opengis.swe.x20.TextType 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;
}
use of net.opengis.swe.x20.TextType 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.swe.x20.TextType in project UVMS-ActivityModule-APP by UnionVMS.
the class MapperUtil method getRegistrationEvent.
public static RegistrationEvent getRegistrationEvent() {
List<TextType> descriptions = Arrays.asList(getTextType("This is test Text"));
DateTimeType occurrenceDateTime = getDateTimeType("2016-07-01 11:15:00");
RegistrationLocation relatedRegistrationLocation = getRegistrationLocation();
RegistrationEvent registrationEvent = new RegistrationEvent(descriptions, occurrenceDateTime, relatedRegistrationLocation);
return registrationEvent;
}
Aggregations