commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorge Morales Pou <jm...@tid.es>
Subject [Digester] Help digesting a composite pattern
Date Mon, 14 Apr 2003 16:12:51 GMT
Hi list,
  IŽm trying to digest an xml file, with the commons Digester, that represents
  somthing like a gui structure, which contains the composite pattern.

  I have something like this:

  ------------------------------------------
  <app>
    <panels>
      <panel>
        <components>
          <component>
          </component>
          <component>
          </component>
        </components>
        <panels/>
      </panel>
      <panel>
        <components>
          <component>
          </component>
        </components>
        <panels>
          <panel>
            <components>
              <component>
              </component>
            </component>
            <panels>
              <panel>
                <components/>
                <panels/>
              </panel>
          </panel>
        </panels>
      </panel>
    </panels>
  </app>
  ------------------------------------------

  More or less. The UML is something like:

   ----------------                      ------------------
  |                |------------------->|                  |
  |      PANEL     |                    |    COMPONENT     |
  |                |<-----              |                  |
   ----------------       |              ------------------
            |             |
            |             |
             -------------

 I just cant figure out how to make the rules to achieve this.
 Help would be very appreciated, since th examples in the Digester source donŽt
 do similar thinks like this, ant the documentacion about the Digester in the
 inet is very scarce.

 
 Thanks in advance to everyone.

Greetings from Spain,
-----------------------
"El verdadero amor sólo se presenta una vez en la vida...
 y luego ya no hay quien se lo quite de encima."
 GROUCHO MARX
-----------------------
Jorge Morales Pou
jmp07_ARROBA_tid.es
Telefónica I+D, Madrid.


Mime
View raw message