View Javadoc

1   /*
2    * Copyright 2004-2006 the Seasar Foundation and the Others.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
13   * either express or implied. See the License for the specific language
14   * governing permissions and limitations under the License.
15   */
16  package org.seasar.tuigwaa.controller;
17  
18  import org.apache.struts.validator.ValidatorForm;
19  import org.seasar.tuigwaa.model.core.TgwEntity;
20  
21  /***
22   * テンプレートを作成するフォームに対応
23   * 
24   * @author nishioka
25   */
26  public class DesignTemplateForm extends ValidatorForm {
27  		
28  	private static final long serialVersionUID = -4872940247498398329L;
29  
30  	private String name;
31  	
32  	private String template;
33  	
34  	private String type;
35  
36  	private String tableName;
37  	
38  	private TgwEntity entity;
39  	
40  	public DesignTemplateForm() {
41  	}
42  
43  	public DesignTemplateForm(String name, String type, String tableName, String content) {
44  		this.name = name;
45  		this.type = type;
46  		this.tableName = tableName;
47  		this.template = content;
48  	}
49  	
50  	public String getName() {
51  		return name;
52  	}
53  
54  	public void setName(String name) {
55  		this.name = name;
56  	}
57  
58  	public String getTemplate() {
59  		return template;
60  	}
61  
62  	public void setTemplate(String template) {
63  		this.template = template;
64  	}
65  
66  	public String getType() {
67  		return type;
68  	}
69  
70  	public void setType(String type) {
71  		this.type = type;
72  	}
73  	
74  	public void setTableName(String tableName) {
75  		this.tableName = tableName;
76  	}
77  	
78  	public String getTableName() {
79  		return tableName;
80  	}
81  	
82  	public void setEntity(TgwEntity entity) {
83  		this.entity = entity;
84  	}
85  	
86  	public TgwEntity getEntity() {
87  		return entity;
88  	}
89  }