public Field init()

in src/java/org/apache/fulcrum/intake/model/Field.java [303:334]


    public Field<T> init(ValueParser pp)
            throws IntakeException
    {
        this.parser = pp;
        setValid(true);
        setValidated(false);

        this.locale = pp.getLocale();

        if (pp.containsKey(getKey()))
        {
            if (log.isDebugEnabled())
            {
                log.debug(name + ": Found our Key in the request, setting Value");
            }
            if (pp.getString(getKey()) != null)
            {
                setFlag = true;
            }
            // validate();
        }
        else if (pp.containsKey(getValueIfAbsent()) &&
                pp.getString(getValueIfAbsent()) != null)
        {
            pp.add(getKey(), pp.getString(getValueIfAbsent()));
            setFlag = true;
            // validate();
        }

        initialized = true;
        return this;
    }