001/* $Id: SimpleTestBean.java 1102402 2011-05-12 18:03:26Z simonetripodi $
002 *
003 * Licensed to the Apache Software Foundation (ASF) under one or more
004 * contributor license agreements.  See the NOTICE file distributed with
005 * this work for additional information regarding copyright ownership.
006 * The ASF licenses this file to You under the Apache License, Version 2.0
007 * (the "License"); you may not use this file except in compliance with
008 * the License.  You may obtain a copy of the License at
009 *
010 *      http://www.apache.org/licenses/LICENSE-2.0
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,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.commons.digester3;
020
021/**
022 * <p>
023 * As it's name suggests just a simple bean used for testing.
024 */
025public class SimpleTestBean
026{
027
028    private String alpha;
029
030    private String beta;
031
032    private String gamma;
033
034    private String delta;
035
036    public String getAlpha()
037    {
038        return alpha;
039    }
040
041    public void setAlpha( String alpha )
042    {
043        this.alpha = alpha;
044    }
045
046    public String getBeta()
047    {
048        return beta;
049    }
050
051    public void setBeta( String beta )
052    {
053        this.beta = beta;
054    }
055
056    public String getGamma()
057    {
058        return gamma;
059    }
060
061    public void setGamma( String gamma )
062    {
063        this.gamma = gamma;
064    }
065
066    public String getDeltaValue()
067    { // Retrieves "write only" value
068        return delta;
069    }
070
071    public void setDelta( String delta )
072    { // "delta" is a write-only property
073        this.delta = delta;
074    }
075
076    public void setAlphaBeta( String alpha, String beta )
077    {
078        setAlpha( alpha );
079        setBeta( beta );
080    }
081
082    @Override
083    public String toString()
084    {
085        StringBuilder sb = new StringBuilder( "[SimpleTestBean]" );
086        sb.append( " alpha=" );
087        sb.append( alpha );
088        sb.append( " beta=" );
089        sb.append( beta );
090        sb.append( " gamma=" );
091        sb.append( gamma );
092        sb.append( " delta=" );
093        sb.append( delta );
094
095        return sb.toString();
096    }
097}