001/*
002 * ============================================================================
003 * Copyright © 2002-2021 by Thomas Thrien.
004 * All Rights Reserved.
005 * ============================================================================
006 *
007 * Licensed to the public under the agreements of the GNU Lesser General Public
008 * License, version 3.0 (the "License"). You may obtain a copy of the License at
009 *
010 *      http://www.gnu.org/licenses/lgpl.html
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
014 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
015 * License for the specific language governing permissions and limitations
016 * under the License.
017 */
018
019package org.tquadrat.foundation.config.spi.prefs;
020
021import static org.apiguardian.api.API.Status.STABLE;
022
023import org.apiguardian.api.API;
024import org.tquadrat.foundation.annotation.ClassVersion;
025import org.tquadrat.foundation.function.Getter;
026import org.tquadrat.foundation.function.Setter;
027import org.tquadrat.foundation.util.stringconverter.StringStringConverter;
028import org.w3c.dom.Document;
029
030/**
031 *  The implementation of
032 *  {@link PreferenceAccessor}
033 *  for instances of
034 *  {@link Document}.
035 *
036 *  @extauthor Thomas Thrien - thomas.thrien@tquadrat.org
037 *  @version $Id: TextAccessor.java 914 2021-05-07 21:22:12Z tquadrat $
038 *  @since 0.0.1
039 *
040 *  @UMLGraph.link
041 */
042@ClassVersion( sourceVersion = "$Id: TextAccessor.java 914 2021-05-07 21:22:12Z tquadrat $" )
043@API( status = STABLE, since = "0.0.1" )
044public final class TextAccessor extends SimpleBulkDataAccessor<String>
045{
046        /*--------------*\
047    ====** Constructors **=====================================================
048        \*--------------*/
049    /**
050     *  Creates a new {@code TextAccessor} instance.
051     *
052     *  @param  propertyName    The name of the property.
053     *  @param  getter  The property getter.
054     *  @param  setter  The property setter.
055     */
056    public TextAccessor( final String propertyName, final Getter<String> getter, final Setter<String> setter )
057    {
058        super( propertyName, getter, setter, StringStringConverter.INSTANCE );
059    }   //  CharsetAccessor()
060}
061//  class TextAccessor
062
063/*
064 *  End of File
065 */