public void initGetterAndSetter()

in src/java/org/apache/fulcrum/intake/model/Field.java [256:290]


    public void initGetterAndSetter()
    {
        Method tmpGetter = null;
        Method tmpSetter = null;
        if (StringUtils.isNotEmpty(mapToObject)
                && StringUtils.isNotEmpty(mapToProperty))
        {
            try
            {
                tmpGetter = IntakeServiceFacade.getFieldGetter(mapToObject, mapToProperty);
            }
            catch (Exception e)
            {
                log.error("IntakeService could not map the getter for field "
                        + this.getDisplayName() + " in group "
                        + this.group.getIntakeGroupName()
                        + " to the property " + mapToProperty + " in object "
                        + mapToObject, e);
            }
            try
            {
                tmpSetter = IntakeServiceFacade.getFieldSetter(mapToObject, mapToProperty);
            }
            catch (Exception e)
            {
                log.error("IntakeService could not map the setter for field "
                        + this.getDisplayName() + " in group "
                        + this.group.getIntakeGroupName()
                        + " to the property " + mapToProperty + " in object "
                        + mapToObject, e);
            }
        }
        getter = tmpGetter;
        setter = tmpSetter;
    }