Package oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2

Examples of oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.AddressType


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetAddress(AddressType newAddress, NotificationChain msgs) {
    AddressType oldAddress = address;
    address = newAddress;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows10Package.CONTACT_TYPE__ADDRESS, oldAddress, newAddress);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


            serviceContact.setIndividualName(contact.getContactPerson());
            serviceContact.setPositionName(contact.getContactPosition());

            ContactType contactInfo = owsf.createContactType();
            serviceContact.setContactInfo(contactInfo);
            AddressType address = owsf.createAddressType();
            contactInfo.setAddress(address);
            address.setAdministrativeArea(contact.getAddressState());
            address.setCity(contact.getAddressCity());
            address.setCountry(contact.getAddressCountry());
            address.setDeliveryPoint(null);
            address.setElectronicMailAddress(contact.getContactEmail());
            address.setPostalCode(contact.getAddressPostalCode());

            contactInfo.setContactInstructions(null);
            contactInfo.setHoursOfService(null);

            OnlineResourceType onlineResource = owsf.createOnlineResourceType();
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetAddress(AddressType newAddress, NotificationChain msgs) {
        AddressType oldAddress = address;
        address = newAddress;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows11Package.CONTACT_TYPE__ADDRESS, oldAddress, newAddress);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

        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() );
        assertEquals( "Canada", a.getCountry() );
        assertEquals( 1, a.getElectronicMailAddress().size() );
        assertEquals( "schutp@agr.gc.ca", a.getElectronicMailAddress().get(0) );
    }
View Full Code Here

     * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetAddress(AddressType newAddress, NotificationChain msgs) {
        AddressType oldAddress = address;
        address = newAddress;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Ows20Package.CONTACT_TYPE__ADDRESS, oldAddress, newAddress);
            if (msgs == null) msgs = notification; else msgs.add(notification);
        }
View Full Code Here

   * <!-- begin-user-doc -->
     * <!-- end-user-doc -->
   * @generated
   */
    public NotificationChain basicSetAddress(AddressType newAddress, NotificationChain msgs) {
    AddressType oldAddress = address;
    address = newAddress;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Wcs10Package.CONTACT_TYPE__ADDRESS, oldAddress, newAddress);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

        }
        return partyName;
    }

    public String getAddressValue() {
        AddressType addressType = partyType.getPostalAddress();
        String addressStr = InvoiceTypeParser.parseAddressType(addressType);
        return addressStr != null ? addressStr.trim() : addressStr;
    }
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

        if (!orderLineTypes.isEmpty()) {
            for (OrderLineType orderLineType : orderLineTypes) {

                // Initialize the ref. currency based on the price currency of the first line
                if (this.referenceCurrency == null) {
                    LineItemType lineItemType = orderLineType.getLineItem();
                    if (lineItemType != null) {
                        this.referenceCurrency = lineItemType.getPrice().getPriceAmount().getCurrencyID();
                    }
                }

                if (!isOrderLineCurrencyTheSame(orderLineType)) {
                    return false;
View Full Code Here

        }
    }

    private boolean isOrderLineCurrencyTheSame(OrderLineType orderLineType) {

        LineItemType lineItemType = orderLineType.getLineItem();
        LineExtensionAmountType lineExtensionAmount = lineItemType.getLineExtensionAmount();

        // Check to see if the line extension prices all have the same value as the referenceCurrency
        if (lineExtensionAmount != null) {
            if (!referenceCurrency.equals(lineExtensionAmount.getCurrencyID())) {
                this.errorCurrency = lineExtensionAmount.getCurrencyID();
                return false;
            }
        }

        // Check to see tax currencies are all the same as the ref. currency
        List<TaxCategoryType> taxCategoryTypes = lineItemType.getItem().getClassifiedTaxCategory();
        for (TaxCategoryType taxCategoryType : taxCategoryTypes) {
            TaxSchemeType taxSchemeType = taxCategoryType.getTaxScheme();
            if (taxSchemeType != null) {
                if (!this.referenceCurrency.value().equals(taxSchemeType.getCurrencyCode().getValue())) {
                    this.errorCurrency = CurrencyCodeContentType.valueOf(taxSchemeType.getCurrencyCode().getValue());
View Full Code Here

TOP

Related Classes of oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.AddressType

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.