public void setStored(String stored) {

        boolean isStored = false;
        boolean isCompressed = false;
        if (stored != null) {
            stored = stored.trim().toLowerCase();
            if (STR_COMPRESS.equals(stored)) {
                isCompressed = true;
                isStored = true;
            } else if (STR_YES.equals(stored)) {
                // "yes", value will be stored but not compressed
                isStored = true;
            } else {
                // only "true" or "false" remain
                isStored = Boolean.valueOf(stored).booleanValue();
            }
        }
        setStored(isStored);
        setCompressed(isCompressed);
    }
public void setStored ( String stored ) { boolean isStored = false ; boolean isCompressed = false ; if ( stored != null ) { stored = stored . trim ( ) . toLowerCase ( ) ; if ( STR_COMPRESS . equals ( stored ) ) { isCompressed = true ; isStored = true ; } else if ( STR_YES . equals ( stored ) ) { isStored = true ; } else { isStored = Boolean . valueOf ( stored ) . booleanValue ( ) ; } } setStored ( isStored ) ; setCompressed ( isCompressed ) ; }
Controls if the content of this field is stored in the Lucene index from a String parameter.<p>

@param stored if <code>"true"</code>, then the field content is stored

@see #setStored(boolean)