Can't you add a create rule with a path of Class1/Class2 for Class2 and a
create rule for Class1/Class3 for Class3?


-----Original Message-----
From: German Balbastro [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 09, 2006 1:19 PM
To: commons-user@jakarta.apache.org
Subject: Digester and Inheritance

I have an object model whith an abstract parent class Class1 and two
implementations Class2 and Clas3.

I don't know how i can create the implementations.

For example i have this xml file:

<Class1> 
    ... fields of class1 ...
    <Class2> 
       ... fields of class2 ...

    </ Class2> 
</ Class1> 
<Class1> 
    ... fields of class1 ...
    <Class3> 
       ... fields of class3 ...

    </ Class3> 
</ Class1> 
For this example, digester should create one instance of Class2 and one
instance of Class3, and in both cases setter the attributes for the
class and for inheritance for the parent class.

I need to know how to create the digester's rules.

Thanks

 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to