Search in sources :

Example 21 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType in project UVMS-ActivityModule-APP by UnionVMS.

the class MapperUtil method getFluxLocation.

public static FLUXLocation getFluxLocation() {
    FLUXLocation fluxLocation = new FLUXLocation();
    CodeType typeCode = getCodeType("AREA", "FLUX_LOCATION_TYPE");
    IDType countryID = getIdType("XEU", "TERRITORY");
    CodeType regionalFisheriesManagementOrganizationCode = getCodeType("RFMO1", "fhty58-gh586t-5tjf8-t58rjewe");
    FLUXGeographicalCoordinate specifiedPhysicalFLUXGeographicalCoordinate = getFluxGeographicalCoordinate();
    IDType id = getIdType("25.5b", "FAO_AREA");
    CodeType geopoliticalRegionCode = getCodeType("Code type 2", "fhty258-g3h586t-5t4jf8-t58rjew5e");
    List<TextType> names = Arrays.asList(getTextType("This is sample name"));
    IDType sovereignRightsCountryID = getIdType("sovereign rights id 1", "fhty58-gh5486t-5t5jf8-t58rjewe");
    IDType jurisdictionCountryID = getIdType("jurisdiction country id 1", "fht1y58-gh5876t-5t3jf8-t58rjewe");
    List<FLUXCharacteristic> applicableFLUXCharacteristics = null;
    List<StructuredAddress> postalStructuredAddresses = Arrays.asList(getStructuredAddress());
    StructuredAddress physicalStructuredAddress = getStructuredAddress();
    fluxLocation.setTypeCode(typeCode);
    fluxLocation.setCountryID(countryID);
    fluxLocation.setRegionalFisheriesManagementOrganizationCode(regionalFisheriesManagementOrganizationCode);
    fluxLocation.setSpecifiedPhysicalFLUXGeographicalCoordinate(specifiedPhysicalFLUXGeographicalCoordinate);
    fluxLocation.setID(id);
    fluxLocation.setGeopoliticalRegionCode(geopoliticalRegionCode);
    fluxLocation.setNames(names);
    fluxLocation.setSovereignRightsCountryID(sovereignRightsCountryID);
    fluxLocation.setJurisdictionCountryID(jurisdictionCountryID);
    fluxLocation.setApplicableFLUXCharacteristics(applicableFLUXCharacteristics);
    fluxLocation.setPostalStructuredAddresses(postalStructuredAddresses);
    fluxLocation.setPhysicalStructuredAddress(physicalStructuredAddress);
    return fluxLocation;
}
Also used : FLUXGeographicalCoordinate(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXGeographicalCoordinate) FLUXLocation(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXLocation) 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) FLUXCharacteristic(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLUXCharacteristic) TextType(un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType)

Example 22 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType in project UVMS-ActivityModule-APP by UnionVMS.

the class MapperUtil method getVesselTransportMeans.

public static VesselTransportMeans getVesselTransportMeans() {
    VesselTransportMeans vesselTransportMeans = new VesselTransportMeans();
    CodeType roleCode = getCodeType("CATCHING_VESSEL", "FA_VESSEL_ROLE");
    List<TextType> names = Arrays.asList(getTextType("Test Name"));
    List<FLAPDocument> grantedFLAPDocuments = Arrays.asList(getFlapDocument());
    List<IDType> ids = Arrays.asList(getIdType("ID 1", "CFR"));
    List<ContactParty> specifiedContactParties = Arrays.asList(getContactParty());
    List<RegistrationEvent> specifiedRegistrationEvents = Arrays.asList(getRegistrationEvent());
    VesselCountry vesselCounty = new VesselCountry(getIdType("Country Id 1", "tu587r-5jt85-tjfur7-tjgut7"));
    vesselTransportMeans.setRoleCode(roleCode);
    vesselTransportMeans.setNames(names);
    vesselTransportMeans.setGrantedFLAPDocuments(grantedFLAPDocuments);
    vesselTransportMeans.setIDS(ids);
    vesselTransportMeans.setSpecifiedContactParties(specifiedContactParties);
    vesselTransportMeans.setSpecifiedRegistrationEvents(specifiedRegistrationEvents);
    vesselTransportMeans.setRegistrationVesselCountry(vesselCounty);
    return vesselTransportMeans;
}
Also used : VesselCountry(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselCountry) RegistrationEvent(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationEvent) FLAPDocument(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLAPDocument) IDType(un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType) VesselTransportMeans(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.VesselTransportMeans) TextType(un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType) CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) ContactParty(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.ContactParty)

Example 23 with TextType

use of un.unece.uncefact.data.standard.unqualifieddatatype._20.TextType in project UVMS-ActivityModule-APP by UnionVMS.

the class MapperUtil method getRegistrationLocation.

public static RegistrationLocation getRegistrationLocation() {
    IDType countryID = getIdType("XEU", "TERRITORY");
    List<TextType> descriptions = Arrays.asList(getTextType("This is Test Text"));
    CodeType geopoliticalRegionCode = getCodeType("Region Code 1", "57tug6-tfu576-5tud75-t57e5td-56tdwe");
    List<IDType> ids = Arrays.asList(getIdType("ID 2", "fhtyr8-45jrf-5784fhrt-thf75"));
    List<TextType> names = Arrays.asList(getTextType("This is Test Name"));
    CodeType typeCode = getCodeType("Code type 1", "475rhf-587trhdy-thgy576-thfr64");
    RegistrationLocation registrationLocation = new RegistrationLocation(countryID, descriptions, geopoliticalRegionCode, ids, names, typeCode, null);
    return registrationLocation;
}
Also used : RegistrationLocation(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.RegistrationLocation) CodeType(un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType) IDType(un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType) 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