Changeset 440 for tapas/service


Ignore:
Timestamp:
03/26/12 17:00:15 (12 years ago)
Author:
rboipsl
Message:

ajout anotations
usermandatory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tapas/service/implementation/com/ether/TapasServiceImpl.java

    r420 r440  
    3636        final Element tapas = new Element( "tapas" ); 
    3737        final Element request = new Element( "request" ); 
    38         final Element preferences = new Element( "preferences" ); 
    39         final Element format = new Element( "format" ); 
    40         final Element rayleighExtinction = new Element( "rayleigh_extinction" ); 
     38 
    4139 
    4240        //On crée un nouveau Document JDOM basé sur la racine que l'on vient de créer 
     
    5149        for( final Request iRequest : requests ) 
    5250        { 
     51            // Id de la request 
    5352            final Attribute idR = new Attribute( "Id", iRequest.getId().toString() ); 
    5453            request.setAttribute( idR ); 
    5554 
    56             tapas.addContent( request ); 
    57             request.addContent( preferences ); 
     55            // PREFERENCES 
     56            final Element preferences = new Element( "preferences" ); 
    5857 
     58            // Element format 
     59            final Element format = new Element( "format" ); 
    5960            final Attribute validF = new Attribute( "valid", iRequest.getPreference().getFormat().getFirstValue() ); 
    6061            format.setAttribute( validF ); 
    6162            format.setText( iRequest.getPreference().getFormat().getSecondValue() ); 
     63            preferences.addContent( format ); 
    6264 
     65            // Element rayleighExtinction 
     66            final Element rayleighExtinction = new Element( "rayleigh_extinction" ); 
    6367            final Attribute validR = new Attribute( "valid", iRequest.getPreference().getRayleighExtinction().getFirstValue() ); 
    6468            rayleighExtinction.setAttribute( validR ); 
    6569            rayleighExtinction.setText( iRequest.getPreference().getRayleighExtinction().getSecondValue() ); 
     70            preferences.addContent( rayleighExtinction ); 
    6671 
     72            // 
     73 
     74            request.addContent( preferences ); 
     75 
     76            // OBSERVATORIES 
     77 
     78 
     79 
     80 
     81            tapas.addContent( request ); 
    6782        } 
    6883 
Note: See TracChangeset for help on using the changeset viewer.