public String valueToString(final Object value) throws ParseException { String ret = null; if(value instanceof Bankleitzahl) { ret = ((Bankleitzahl) value). format(Bankleitzahl.ELECTRONIC_FORMAT); } return ret; } });
/** * {@inheritDoc} * * @return Information regarding the unknown Bankleitzahl. * <ul> * <li>[0]: the unknown Bankleitzahl.</li> * </ul> */ public Object[] getFormatArguments( final Locale locale ) { return new Object[] { this.bankCode.format( Bankleitzahl.LETTER_FORMAT ) }; }
/** * Formats a Bankleitzahl to produce a string. Same as * <blockquote> * {@link #format(int) bankleitzahl.format(ELECTRONIC_FORMAT)} * </blockquote> * * @param bankleitzahl The {@code Bankleitzahl} instance to format. * * @return The formatted string. * * @throws NullPointerException if {@code bankleitzahl} is {@code null}. */ public static String toString( final Bankleitzahl bankleitzahl ) { if ( bankleitzahl == null ) { throw new NullPointerException( "bankleitzahl" ); } return bankleitzahl.format( ELECTRONIC_FORMAT ); }
/** * Formats a Bankleitzahl to produce a string. Same as * <blockquote> * {@link #format(int, StringBuffer) format<code>(style, new StringBuffer()).toString()</code>} * </blockquote> * * @param style The style to use ({@code ELECTRONIC_FORMAT} or {@code LETTER_FORMAT}). * * @return The formatted string. * * @throws IllegalArgumentException if {@code style} is neither {@code ELECTRONIC_FORMAT} nor {@code LETTER_FORMAT}. * * @see #ELECTRONIC_FORMAT * @see #LETTER_FORMAT */ public String format( final int style ) { return this.format( style, new StringBuffer() ).toString(); }
/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle} * <blockquote><pre> * Unknown Bankleitzahl {0}. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getUnknownBankleitzahlMessage( locale, this.bankCode.format( Bankleitzahl.LETTER_FORMAT ) ); }
/** * {@inheritDoc} * * @return Information regarding the replacement Bankleitzahl. * <ul> * <li>[0]: the replacement Bankleitzahl.</li> * </ul> */ public Object[] getFormatArguments( final Locale locale ) { return new Object[] { this.info.getBankCode().format( Bankleitzahl.LETTER_FORMAT ) }; }
/** * {@inheritDoc} * * @return Information regarding the expired Bankleitzahl. * <ul> * <li>[0]: the expired Bankleitzahl.</li> * </ul> */ public Object[] getFormatArguments( final Locale locale ) { return new Object[] { this.info.getBankCode().format( Bankleitzahl.LETTER_FORMAT ) }; }
/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle} * <blockquote><pre> * The bank has published the replacement Bankleitzahl {0}. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getBankleitzahlReplacementMessage( locale, this.info.getBankCode().format( Bankleitzahl.LETTER_FORMAT ) ); }
/** * Returns the message of the exception. * * @return The message of the exception. */ public String getMessage() { return this.getBankleitzahlExpirationMessage( this.getLocale(), this.info.getBankCode().format( Bankleitzahl.LETTER_FORMAT ), this.replacement.getBankCode().format( Bankleitzahl.LETTER_FORMAT ) ); }
/** * {@inheritDoc} * * @return The corresponding text from the message's {@code ResourceBundle} * <blockquote><pre> * The Bankleitzahl {0} has expired. * </pre></blockquote> */ public String getText( final Locale locale ) { return this.getBankleitzahlExpirationMessage( locale, this.info.getBankCode().format( Bankleitzahl.LETTER_FORMAT ) ); }
public Object getValueAt(int rowIndex, int columnIndex) { if(rowIndex >= this.getEntities().size()) { throw new IllegalArgumentException(Integer.toString(rowIndex)); } if(columnIndex >= this.getColumnCount()) { throw new IllegalArgumentException(Integer.toString(columnIndex)); } String value; final BankleitzahlInfo info = this.getEntities().get(rowIndex); switch(columnIndex) { case 0: value = info.getBankCode(). format(Bankleitzahl.LETTER_FORMAT); break; case 1: value = info.getName(); break; case 2: value = new DecimalFormat("#####"). format(info.getPostalCode()); break; case 3: value = info.getCity(); break; case 4: value = info.getBic(); break; default: value = info.toString(); } return value; }
this.getLocale(), bankleitzahlInfo.getBankCode().format( this.getFormat() ) ) );
format(Bankleitzahl.LETTER_FORMAT, buf);
format(Bankleitzahl.LETTER_FORMAT, tooltip);
format(Bankleitzahl.ELECTRONIC_FORMAT));
this.getLocale(), record.getBankCode().format( Bankleitzahl.LETTER_FORMAT ) ) );