001: /*
002: Mdarad-Toolobox is a collection of tools for Architected RAD
003: (Rapid Application Development) based on an MDA approach.
004: The toolbox contains frameworks and generators for many environments
005: (JAVA, J2EE, Hibernate, .NET, C++, etc.) which allow to generate
006: applications from a design Model
007: Copyright (C) 2004-2005 Elapse Technologies Inc.
008:
009: This library is free software; you can redistribute it and/or
010: modify it under the terms of the GNU General Public
011: License as published by the Free Software Foundation; either
012: version 2.1 of the License, or (at your option) any later version.
013:
014: This library is distributed in the hope that it will be useful,
015: but WITHOUT ANY WARRANTY; without even the implied warranty of
016: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: General Public License for more details.
018:
019: You should have received a copy of the GNU General Public
020: License along with this library; if not, write to the Free Software
021: Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
022: */
023:
024: package org.mdarad.framework.util.struts.contextstack;
025:
026: import java.io.Serializable;
027:
028: import org.dataisland.primitives.bean.Entity;
029: import org.mdarad.framework.delegates.BusinessDelegate;
030:
031: /**
032: * Created by IntelliJ IDEA.
033: * User: François Eric
034: * Date: 2005-02-01
035: * Time: 14:12:59
036: * To change this template use File | Settings | File Templates.
037: */
038: public class ContextStackElement implements Serializable {
039: private static final long serialVersionUID = 5602302077010952228L;
040:
041: private BusinessDelegate delegate;
042: private Entity entityBeanInstance;
043: private String parentAggregationName;
044: private String parentFullyQualifiedEntityName;
045: private boolean isParentMultipleAggregation;
046: private boolean skipForm;
047: private boolean isNewInstance;
048:
049: public BusinessDelegate getDelegate() {
050: return delegate;
051: }
052:
053: public void setDelegate(BusinessDelegate delegate) {
054: this .delegate = delegate;
055: }
056:
057: public Entity getEntityBeanInstance() {
058: return entityBeanInstance;
059: }
060:
061: public void setEntityBeanInstance(Entity entityBeanInstance) {
062: this .entityBeanInstance = entityBeanInstance;
063: }
064:
065: public String getParentAggregationName() {
066: return parentAggregationName;
067: }
068:
069: public void setParentAggregationName(String parentAggregationName) {
070: this .parentAggregationName = parentAggregationName;
071: }
072:
073: public boolean isParentMultipleAggregation() {
074: return isParentMultipleAggregation;
075: }
076:
077: public void setParentMultipleAggregation(
078: boolean parentMultipleAggregation) {
079: isParentMultipleAggregation = parentMultipleAggregation;
080: }
081:
082: public boolean isSkipForm() {
083: return skipForm;
084: }
085:
086: public void setSkipForm(boolean skipForm) {
087: this .skipForm = skipForm;
088: }
089:
090: public String getParentFullyQualifiedEntityName() {
091: return parentFullyQualifiedEntityName;
092: }
093:
094: public void setParentFullyQualifiedEntityName(
095: String parentFullyQualifiedEntityName) {
096: this .parentFullyQualifiedEntityName = parentFullyQualifiedEntityName;
097: }
098:
099: public boolean isNewInstance() {
100: return isNewInstance;
101: }
102:
103: public void setNewInstance(boolean isNewInstance) {
104: this.isNewInstance = isNewInstance;
105: }
106: }
|