001: /**
002: * Copyright 2006 Webmedia Group Ltd.
003: *
004: * Licensed under the Apache License, Version 2.0 (the "License");
005: * you may not use this file except in compliance with the License.
006: * You may obtain a copy of the License at
007: *
008: * http://www.apache.org/licenses/LICENSE-2.0
009: *
010: * Unless required by applicable law or agreed to in writing, software
011: * distributed under the License is distributed on an "AS IS" BASIS,
012: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013: * See the License for the specific language governing permissions and
014: * limitations under the License.
015: **/package org.araneaframework.example.main.business.util;
016:
017: import java.io.Serializable;
018: import org.araneaframework.backend.BaseBean;
019: import org.araneaframework.backend.util.BeanMapper;
020:
021: /**
022: * This VO is used by tests only ({@link org.araneaframework.uilib.tests.ListTest},
023: * {@link org.araneaframework.uilib.tests.FormTest},{@link org.araneaframework.uilib.tests.VoProcessingTest}.
024: *
025: * @author Jevgeni Kabanov (ekabanov <i>at</i> araneaframework <i>dot</i> org)
026: *
027: */
028: public class TestVO extends BaseBean implements Serializable, Cloneable {
029: private static final long serialVersionUID = 1L;
030: /**
031: * Private VoMapper, used for <code>toString</code> and <code>equals</code> methods.
032: */
033: private BeanMapper voMapper;
034: private Long id;
035: private String stringValue;
036: private Boolean booleanValue;
037: private Long longValue;
038: private TestVO subTestVO;
039:
040: public TestVO() {
041: voMapper = new BeanMapper(getClass());
042: }
043:
044: /**
045: * Returns id.
046: *
047: * @return the id.
048: */
049: public Long getId() {
050: return id;
051: }
052:
053: public void setId(Long id) {
054: this .id = id;
055: }
056:
057: /**
058: * <code>Boolean</code> value.
059: */
060: public Boolean getBooleanValue() {
061: return booleanValue;
062: }
063:
064: public void setBooleanValue(Boolean booleanValue) {
065: this .booleanValue = booleanValue;
066: }
067:
068: /**
069: * <code>Long</code> value.
070: */
071: public Long getLongValue() {
072: return longValue;
073: }
074:
075: public void setLongValue(Long longValue) {
076: this .longValue = longValue;
077: }
078:
079: /**
080: * <code>String</code> value.
081: */
082: public String getStringValue() {
083: return stringValue;
084: }
085:
086: public void setStringValue(String stringValue) {
087: this .stringValue = stringValue;
088: }
089:
090: /**
091: * Included <code>TestVO</code> for hierarchy tests.
092: */
093: public TestVO getSubTestVO() {
094: return subTestVO;
095: }
096:
097: public void setSubTestVO(TestVO subTestVO) {
098: this.subTestVO = subTestVO;
099: }
100: }
|