KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > compiler > model > ActionOutputModel


1 /*
2  * Copyright 2004 The Apache Software Foundation.
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, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.compiler.model;
19
20
21 /**
22  * Represents an Action Output (NetUI, not a Struts concept) that will be attached to a forward ({@link ForwardModel}).
23  */

24 public class ActionOutputModel
25 {
26     String JavaDoc _name;
27     String JavaDoc _type;
28     boolean _isNullable;
29     
30     protected ActionOutputModel()
31     {
32     }
33     
34     public ActionOutputModel( String JavaDoc name, String JavaDoc type, boolean isNullable )
35     {
36         _name = name;
37         _type = type;
38         _isNullable = isNullable;
39     }
40
41     public String JavaDoc getName()
42     {
43         return _name;
44     }
45
46     public String JavaDoc getType()
47     {
48         return _type;
49     }
50
51     public boolean getNullable()
52     {
53         return _isNullable;
54     }
55
56     public void setName( String JavaDoc name )
57     {
58         assert name != null;
59         _name = name;
60     }
61
62     public void setType( String JavaDoc type )
63     {
64         assert type != null;
65         _type = type;
66     }
67
68     public void setNullable( boolean nullable )
69     {
70         _isNullable = nullable;
71     }
72 }
73
Popular Tags