Search in sources :

Example 1 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.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;
}
Also used : TextType(un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)

Example 2 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.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;
}
Also used : FLUXReportDocument(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXReportDocument) DateTimeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.DateTimeType) CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) IDType(un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType) FLUXParty(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXParty) TextType(un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)

Example 3 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.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;
}
Also used : CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) StructuredAddress(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.StructuredAddress) IDType(un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType) TextType(un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)

Example 4 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.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;
}
Also used : CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) ContactPerson(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.ContactPerson) TextType(un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)

Example 5 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.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;
}
Also used : RegistrationLocation(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationLocation) DateTimeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.DateTimeType) RegistrationEvent(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationEvent) TextType(un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)

Aggregations

TextType (un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)19 CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)10 IDType (un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)7 DateTimeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.DateTimeType)6 BooleanType (net.opengis.swe.x20.BooleanType)3 CategoryType (net.opengis.swe.x20.CategoryType)3 CountRangeType (net.opengis.swe.x20.CountRangeType)3 CountType (net.opengis.swe.x20.CountType)3 DataArrayType (net.opengis.swe.x20.DataArrayType)3 DataRecordType (net.opengis.swe.x20.DataRecordType)3 QuantityRangeType (net.opengis.swe.x20.QuantityRangeType)3 QuantityType (net.opengis.swe.x20.QuantityType)3 TextType (net.opengis.swe.x20.TextType)3 TimeRangeType (net.opengis.swe.x20.TimeRangeType)3 TimeType (net.opengis.swe.x20.TimeType)3 VectorType (net.opengis.swe.x20.VectorType)3 CategoryRangeType (net.opengis.swe.x20.CategoryRangeType)2 DataArrayDocument (net.opengis.swe.x20.DataArrayDocument)2 DataChoiceType (net.opengis.swe.x20.DataChoiceType)2 DataRecordDocument (net.opengis.swe.x20.DataRecordDocument)2