001    /**
002     * Copyright 2012 The Kuali Foundation Licensed under the
003     * Educational Community License, Version 2.0 (the "License"); you may
004     * not use this file except in compliance with the License. You may
005     * obtain a copy of the License at
006     *
007     * http://www.osedu.org/licenses/ECL-2.0
008     *
009     * Unless required by applicable law or agreed to in writing,
010     * software distributed under the License is distributed on an "AS IS"
011     * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
012     * or implied. See the License for the specific language governing
013     * permissions and limitations under the License.
014     *
015     * Created by Charles on 7/9/12
016     */
017    package org.kuali.student.r2.common.assembler;
018    
019    /**
020     * This class //TODO ...
021     *
022     * @author Kuali Student Team
023     */
024    public abstract class DynamicAttrWrapper<DtoClass> extends DynamicAttrReadOnlyWrapper<DtoClass> {
025        public DynamicAttrWrapper(DtoClass dtoInstance, Class clazz, String dynAttrName) {
026            super(dtoInstance, clazz, dynAttrName);
027        }
028    
029        /**
030         * Reads in the string value from the EntityAttribute, uses a converter internally to store
031         * it in the proper dynamic attribute in the DTO.
032         * This modifies the DTO.
033         * @param attrValue The string value as stored in the entity attribute
034         */
035        public abstract void readInStringValue(String attrValue);
036    }