src/main/java/org/fit/layout/impl/BaseParametrizedOperation.java
@Override
    public Object getParam(String name)
    {
        String sname = "get" + name.substring(0, 1).toUpperCase() + name.substring(1);
        try
        {
            Method m = getClass().getMethod(sname);
            return m.invoke(this);
        } catch (NoSuchMethodException e) {
            return null;
        } catch (SecurityException e) {
            e.printStackTrace();
            return null;
        } catch (IllegalAccessException e) {
            e.printStackTrace();
            return null;
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
            return null;
        } catch (InvocationTargetException e) {
            e.printStackTrace();
            return null;
        }
    }
@Override
    public Object getParam(String name)
    {
        String sname = "get" + name.substring(0, 1).toUpperCase() + name.substring(1);
        try
        {
            Method m = getClass().getMethod(sname);
            return m.invoke(this);
        } catch (NoSuchMethodException e) {
            return null;
        } catch (SecurityException e) {
            e.printStackTrace();
            return null;
        } catch (IllegalAccessException e) {
            e.printStackTrace();
            return null;
        } catch (IllegalArgumentException e) {
            e.printStackTrace();
            return null;
        } catch (InvocationTargetException e) {
            e.printStackTrace();
            return null;
        }
    }
@ Override public Object getParam ( String name ) { String sname = "get" + name . substring ( 0 , 1 ) . toUpperCase ( ) + name . substring ( 1 ) ; try { Method m = getClass ( ) . getMethod ( sname ) ; return m . invoke ( this ) ; } catch ( NoSuchMethodException e ) { return null ; } catch ( SecurityException e ) { e . printStackTrace ( ) ; return null ; } catch ( IllegalAccessException e ) { e . printStackTrace ( ) ; return null ; } catch ( IllegalArgumentException e ) { e . printStackTrace ( ) ; return null ; } catch ( InvocationTargetException e ) { e . printStackTrace ( ) ; return null ; } }
Obtains the parameter using the appropriate getter method (if present).
Obtains the parameter using the appropriate getter method ( if present ) .