public String getPhraseValue ( final Instance _instance ) throws EFapsException { final StringBuilder buf = new StringBuilder ( ) ; boolean added = false ; for ( final Token token : this . valueList . getTokens ( ) ) { switch ( token . getType ( ) ) { case EXPRESSION : final OneSelect oneselect = this . selectStmt2OneSelect . get ( token . getValue ( ) ) ; final Object value = oneselect . getObject ( ) ; if ( oneselect . getAttribute ( ) != null ) { final UIValue uiValue = UIValue . get ( null , oneselect . getAttribute ( ) , value ) ; final String val = uiValue . getUIProvider ( ) . getStringValue ( uiValue ) ; if ( val != null ) { added = true ; buf . append ( uiValue . getUIProvider ( ) . getStringValue ( uiValue ) ) ; } } else if ( value != null ) { added = true ; buf . append ( value ) ; } break ; case TEXT : buf . append ( token . getValue ( ) ) ; break ; default : break ; } } return added ? buf . toString ( ) : "" ; }
Method to get the parsed value for this phrase .