Example usage for org.apache.commons.beanutils.locale LocaleBeanUtils getProperty

List of usage examples for org.apache.commons.beanutils.locale LocaleBeanUtils getProperty

Introduction

In this page you can find the example usage for org.apache.commons.beanutils.locale LocaleBeanUtils getProperty.

Prototype

public static String getProperty(Object bean, String name, String pattern)
        throws IllegalAccessException, InvocationTargetException, NoSuchMethodException 

Source Link

Document

Return the value of the specified locale-sensitive property of the specified bean.

For more details see LocaleBeanUtilsBean

Usage

From source file:BeanUtilsExampleV5.java

  public static void main(String args[]) throws Exception {
    BeanUtilsExampleV5 diff = new BeanUtilsExampleV5();
    Movie movie = diff.prepareData();/*from   w w w  .j a  va 2s .  co m*/

    System.err.println(
       LocaleBeanUtils.getProperty(movie, "dateOfRelease", "dd-MMM-yyyy"));

}