public String makeString ( final Instance _callInstance , final AbstractPrintQuery _print , final TargetMode _mode ) throws EFapsException { final StringBuilder buf = new StringBuilder ( ) ; for ( final Token token : this . tokens ) { switch ( token . type ) { case EXPRESSION : Attribute attr = null ; Object value = null ; if ( _print . getMainType ( ) . getAttributes ( ) . containsKey ( token . value ) ) { attr = _print . getAttribute4Attribute ( token . value ) ; value = _print . getAttribute ( token . value ) ; } else { attr = _print . getAttribute4Select ( token . value ) ; value = _print . getSelect ( token . value ) ; } if ( attr != null ) { buf . append ( attr . getAttributeType ( ) . getUIProvider ( ) . getStringValue ( UIValue . get ( null , attr , value ) ) ) ; } else if ( value != null ) { buf . append ( value ) ; } break ; case TEXT : buf . append ( token . value ) ; break ; default : break ; } } return buf . toString ( ) ; }
This method retrieves the Values from the given PrintQuery and combines them with the Text partes .