0

I have xsd file with elements, I generate java-classes from them. I have getters and setters for elements in these classes. Is it possible to add some text in the xsd-file, to just have an empty void method in generated classes?

<xs:complexType name="FutureCardHolders">      
        <xs:annotation><xs:documentation>Future Card Holders</xs:documentation></xs:annotation>
        <xs:sequence>
            <xs:element name="Holder" maxOccurs="unbounded">
                <xs:complexType>
                    <xs:complexContent>
                        <xs:extension base="FutureCardHolder"/>
                    </xs:complexContent>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>

At some moment I have a structure declared with this class, but actually filled with children. I want to be able to call this method with child's implementation.

nwellnhof
  • 32,319
  • 7
  • 89
  • 113
330xi
  • 99
  • 1
  • 3
  • 13

0 Answers0