@ Override public void visit ( ControllerModel element , Raml raml ) { raml . setTitle ( element . getName ( ) ) ; if ( element . getDescription ( ) != null && ! element . getDescription ( ) . isEmpty ( ) ) { DocumentationItem doc = new DocumentationItem ( ) ; doc . setContent ( element . getDescription ( ) ) ; doc . setTitle ( "Description" ) ; raml . setDocumentation ( singletonList ( doc ) ) ; } if ( element . getVersion ( ) != null && ! element . getVersion ( ) . isEmpty ( ) ) { raml . setVersion ( element . getVersion ( ) ) ; } //noinspection unchecked navigateTheRoutes ( element . getRoutes ( ) , null , raml ) ; }
Visit the Wisdom Controller source model in order to populate the raml model .