Package net.opengis.ows10

Examples of net.opengis.ows10.ContactType


     */
    public ReferencedEnvelope getFeatureTypeWGS84Bounds(String typeName) {
        final FeatureTypeType featureTypeInfo = getFeatureTypeInfo(typeName);
        List<WGS84BoundingBoxType> bboxList = featureTypeInfo.getWGS84BoundingBox();
        if (bboxList != null && bboxList.size() > 0) {
            WGS84BoundingBoxType bboxType = bboxList.get(0);
            List lowerCorner = bboxType.getLowerCorner();
            List upperCorner = bboxType.getUpperCorner();
            double minLon = (Double) lowerCorner.get(0);
            double minLat = (Double) lowerCorner.get(1);
            double maxLon = (Double) upperCorner.get(0);
            double maxLat = (Double) upperCorner.get(1);

View Full Code Here


        assertEquals("EPSG:4326", featureType.getDefaultSRS());

        List<WGS84BoundingBoxType> wgs84BoundingBox = featureType.getWGS84BoundingBox();
        assertEquals(1, wgs84BoundingBox.size());

        WGS84BoundingBoxType bbox = wgs84BoundingBox.get(0);
        assertEquals("EPSG:4326", bbox.getCrs());
        assertEquals(BigInteger.valueOf(2), bbox.getDimensions());

        assertEquals(-74.047185D, (Double) bbox.getLowerCorner().get(0), 1E-6);
        assertEquals(40.679648D, (Double) bbox.getLowerCorner().get(1), 1E-6);
        assertEquals(-73.90782D, (Double) bbox.getUpperCorner().get(0), 1E-6);
        assertEquals(40.882078D, (Double) bbox.getUpperCorner().get(1), 1E-6);

    }
View Full Code Here

        Double minx = Double.valueOf((String) node.getAttributeValue("minx"));
        Double miny = Double.valueOf((String) node.getAttributeValue("miny"));
        Double maxx = Double.valueOf((String) node.getAttributeValue("maxx"));
        Double maxy = Double.valueOf((String) node.getAttributeValue("maxy"));
        WGS84BoundingBoxType bbox = Ows10Factory.eINSTANCE.createWGS84BoundingBoxType();
        bbox.setCrs("EPSG:4326");
        bbox.setDimensions(BigInteger.valueOf(2));
        bbox.setLowerCorner(Arrays.asList(minx, miny));
        bbox.setUpperCorner(Arrays.asList(maxx, maxy));

        return bbox;

    }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetContactInfo(ContactType newContactInfo, NotificationChain msgs) {
        ContactType oldContactInfo = contactInfo;
        contactInfo = newContactInfo;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows11Package.RESPONSIBLE_PARTY_SUBSET_TYPE__CONTACT_INFO, oldContactInfo, newContactInfo);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetContactInfo(ContactType newContactInfo, NotificationChain msgs) {
        ContactType oldContactInfo = contactInfo;
        contactInfo = newContactInfo;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows11Package.RESPONSIBLE_PARTY_TYPE__CONTACT_INFO, oldContactInfo, newContactInfo);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

       
        ResponsiblePartySubsetType sc = sp.getServiceContact();
        assertNotNull( sc );
        assertEquals( "Peter Schut", sc.getIndividualName() );
       
        ContactType ci = sc.getContactInfo();
        assertNotNull( ci );
        assertEquals( 1, ci.getPhone().getVoice().size() );
        assertEquals( "+1 613 759-1874", ci.getPhone().getVoice().get( 0 ) );
        assertEquals( 1, ci.getPhone().getFacsimile().size() );
        assertEquals( "+1 613 759-1937", ci.getPhone().getFacsimile().get( 0 ) );

        AddressType a = ci.getAddress();
        assertNotNull( a );
        assertEquals( 1, a.getDeliveryPoint().size() );
        assertEquals( "Room 1135, Neatby Building, 960, Carling Avenue", a.getDeliveryPoint().get( 0 ) );
        assertEquals( "Ottawa", a.getCity() );
        assertEquals( "ON", a.getAdministrativeArea() );
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetContactInfo(ContactType newContactInfo, NotificationChain msgs) {
        ContactType oldContactInfo = contactInfo;
        contactInfo = newContactInfo;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows20Package.RESPONSIBLE_PARTY_SUBSET_TYPE__CONTACT_INFO, oldContactInfo, newContactInfo);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetContactInfo(ContactType newContactInfo, NotificationChain msgs) {
        ContactType oldContactInfo = contactInfo;
        contactInfo = newContactInfo;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows20Package.RESPONSIBLE_PARTY_TYPE__CONTACT_INFO, oldContactInfo, newContactInfo);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public NotificationChain basicSetContactInfo(ContactType newContactInfo, NotificationChain msgs) {
    ContactType oldContactInfo = contactInfo;
    contactInfo = newContactInfo;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs10Package.RESPONSIBLE_PARTY_TYPE__CONTACT_INFO, oldContactInfo, newContactInfo);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

        try {
            addPartyLogo();
        } catch (IOException e) { // Continue, even logo can't be added
            UBL4JLoggerFactory.getDefaultLogger().error("Can't add party logo", e);
        }
        ContactType contactType = partyType.getContact();
        for (org.openinvoice.ubl4j.core.common.text.TextLabel label : listOfLabelsToDisplay) {
            if (isLabel(label)) { // If the TextLabel is a label, skip it.
                continue;
            }
            if (label == org.openinvoice.ubl4j.core.common.text.TextLabel.SUPPLIER_ADDRESS || label == org.openinvoice.ubl4j.core.common.text.TextLabel.CUSTOMER_ADDRESS) {
View Full Code Here

TOP

Related Classes of net.opengis.ows10.ContactType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.