Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for multi-element attribute groups #20

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

veewee
Copy link
Member

@veewee veewee commented Jan 15, 2024

Q A
Type feature/bug
BC Break no
Fixed issues #19

Summary

Supports attribute containers with multiple elements:

    <xsd:complexType name="immobile">
        <xsd:sequence>
            <xsd:element name="categoria" type="Q1:categoria" maxOccurs="1" minOccurs="1"/>
            <xsd:element name="citta" type="Q1:citta" maxOccurs="1" minOccurs="1"/>
            <xsd:element name="indirizzo" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="numero" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="zona" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="coords" type="Q1:geo-coordinates" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="descrizione" type="Q1:ArrayOfDescrizione" maxOccurs="1" minOccurs="0"/>

            <xsd:element name="allegati" type="Q1:ArrayOfAllegato" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="composizione" type="imm:immobile-abitabile" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="appartamento" type="imm:immobile-appartamento" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="superficie" type="imm:immobile-superficie" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="terreno" type="imm:immobile-terreno" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="casa" type="imm:immobile-casa" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="villa" type="imm:immobile-villa" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="capannone" type="imm:immobile-capannone" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="ace" type="imm:immobile-ace" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="attributi" type="imm:ArrayOfAttributo" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="cucina" type="imm:tipo-cucina" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="giardino" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="parcheggio" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="riscaldamento" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="box-auto" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="posto-auto" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="impianto-tv" type="xsd:string" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="immobile-turistico" type="imm:immobile-turistico" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="distanze" type="imm:ArrayOfDistanzaPoi" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="codice-identificativo" type="imm:codice-identificativo" maxOccurs="1" minOccurs="0"/>
            <xsd:element name="informazioni-extra" type="imm:ArrayOfInformazioniExtra" maxOccurs="1" minOccurs="0"/>
        </xsd:sequence>
        <xsd:attribute name="id" type="xsd:string"/>
        <xsd:attribute name="id-agenzia" type="xsd:int"/>
    </xsd:complexType>
immobile
========

> http://www.immobinet.it/schema/WebserviceImmobileBundle:immobile {
    categoria $categoria
    citta $citta
    ?string $indirizzo
    ?string $numero
    ?string $zona
    ?geo-coordinates $coords
    ?ArrayOfDescrizione $descrizione
    ?ArrayOfAllegato $allegati
    ?immobile-abitabile $composizione
    ?immobile-appartamento $appartamento
    ?immobile-superficie $superficie
    ?immobile-terreno $terreno
    ?immobile-casa $casa
    ?immobile-villa $villa
    ?immobile-capannone $capannone
    ?immobile-ace $ace
    ?ArrayOfAttributo $attributi
    ?tipo-cucina $cucina
    ?string $giardino
    ?string $parcheggio
    ?string $riscaldamento
    ?string $box-auto
    ?string $posto-auto
    ?string $impianto-tv
    ?immobile-turistico $immobile-turistico
    ?ArrayOfDistanzaPoi $distanze
    ?codice-identificativo $codice-identificativo
    ?ArrayOfInformazioniExtra $informazioni-extra
    @?string $id
    @?int $id-agenzia
  }

@veewee veewee added the enhancement New feature or request label Jan 15, 2024
@veewee veewee merged commit 1b1b8b0 into main Jan 15, 2024
18 checks passed
@veewee veewee deleted the multiple-attribute-elements branch January 15, 2024 14:37
@veewee veewee changed the title Parse multiple attribute elements Add support for multi-element attribute groups Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant