root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / ComboButtonElement.java @ 9956
History | View | Annotate | Download (3.91 KB)
1 | 6431 | cesar | /*
|
---|---|---|---|
2 | * This class was automatically generated with
|
||
3 | * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
||
4 | * Schema.
|
||
5 | * $Id$
|
||
6 | */
|
||
7 | |||
8 | package com.iver.andami.plugins.config.generate; |
||
9 | |||
10 | //---------------------------------/
|
||
11 | //- Imported classes and packages -/
|
||
12 | //---------------------------------/
|
||
13 | |||
14 | import java.io.IOException; |
||
15 | import java.io.Reader; |
||
16 | import java.io.Serializable; |
||
17 | import java.io.Writer; |
||
18 | import org.exolab.castor.xml.MarshalException; |
||
19 | import org.exolab.castor.xml.Marshaller; |
||
20 | import org.exolab.castor.xml.Unmarshaller; |
||
21 | import org.exolab.castor.xml.ValidationException; |
||
22 | import org.xml.sax.ContentHandler; |
||
23 | |||
24 | /**
|
||
25 | * Class ComboButtonElement.
|
||
26 | *
|
||
27 | * @version $Revision$ $Date$
|
||
28 | */
|
||
29 | public class ComboButtonElement implements java.io.Serializable { |
||
30 | |||
31 | |||
32 | //--------------------------/
|
||
33 | //- Class/Member Variables -/
|
||
34 | //--------------------------/
|
||
35 | |||
36 | /**
|
||
37 | * Field _icon
|
||
38 | */
|
||
39 | 6587 | cesar | private java.lang.String _icon;
|
40 | 6431 | cesar | |
41 | /**
|
||
42 | * Field _actionCommand
|
||
43 | */
|
||
44 | 6587 | cesar | private java.lang.String _actionCommand;
|
45 | 6431 | cesar | |
46 | |||
47 | //----------------/
|
||
48 | //- Constructors -/
|
||
49 | //----------------/
|
||
50 | |||
51 | public ComboButtonElement() {
|
||
52 | super();
|
||
53 | } //-- com.iver.andami.plugins.config.generate.ComboButtonElement()
|
||
54 | |||
55 | |||
56 | //-----------/
|
||
57 | //- Methods -/
|
||
58 | //-----------/
|
||
59 | |||
60 | /**
|
||
61 | * Returns the value of field 'actionCommand'.
|
||
62 | *
|
||
63 | * @return the value of field 'actionCommand'.
|
||
64 | */
|
||
65 | 6587 | cesar | public java.lang.String getActionCommand()
|
66 | 6431 | cesar | { |
67 | return this._actionCommand; |
||
68 | 6587 | cesar | } //-- java.lang.String getActionCommand()
|
69 | 6431 | cesar | |
70 | /**
|
||
71 | * Returns the value of field 'icon'.
|
||
72 | *
|
||
73 | * @return the value of field 'icon'.
|
||
74 | */
|
||
75 | 6587 | cesar | public java.lang.String getIcon()
|
76 | 6431 | cesar | { |
77 | return this._icon; |
||
78 | 6587 | cesar | } //-- java.lang.String getIcon()
|
79 | 6431 | cesar | |
80 | /**
|
||
81 | * Method isValid
|
||
82 | */
|
||
83 | public boolean isValid() |
||
84 | { |
||
85 | try {
|
||
86 | validate(); |
||
87 | } |
||
88 | catch (org.exolab.castor.xml.ValidationException vex) {
|
||
89 | return false; |
||
90 | } |
||
91 | return true; |
||
92 | } //-- boolean isValid()
|
||
93 | |||
94 | /**
|
||
95 | * Method marshal
|
||
96 | *
|
||
97 | * @param out
|
||
98 | */
|
||
99 | public void marshal(java.io.Writer out) |
||
100 | throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
101 | { |
||
102 | |||
103 | Marshaller.marshal(this, out);
|
||
104 | } //-- void marshal(java.io.Writer)
|
||
105 | |||
106 | /**
|
||
107 | * Method marshal
|
||
108 | *
|
||
109 | * @param handler
|
||
110 | */
|
||
111 | public void marshal(org.xml.sax.ContentHandler handler) |
||
112 | throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
113 | { |
||
114 | |||
115 | Marshaller.marshal(this, handler);
|
||
116 | } //-- void marshal(org.xml.sax.ContentHandler)
|
||
117 | |||
118 | /**
|
||
119 | * Sets the value of field 'actionCommand'.
|
||
120 | *
|
||
121 | * @param actionCommand the value of field 'actionCommand'.
|
||
122 | */
|
||
123 | 6587 | cesar | public void setActionCommand(java.lang.String actionCommand) |
124 | 6431 | cesar | { |
125 | this._actionCommand = actionCommand;
|
||
126 | 6587 | cesar | } //-- void setActionCommand(java.lang.String)
|
127 | 6431 | cesar | |
128 | /**
|
||
129 | * Sets the value of field 'icon'.
|
||
130 | *
|
||
131 | * @param icon the value of field 'icon'.
|
||
132 | */
|
||
133 | 6587 | cesar | public void setIcon(java.lang.String icon) |
134 | 6431 | cesar | { |
135 | this._icon = icon;
|
||
136 | 6587 | cesar | } //-- void setIcon(java.lang.String)
|
137 | 6431 | cesar | |
138 | /**
|
||
139 | * Method unmarshal
|
||
140 | *
|
||
141 | * @param reader
|
||
142 | */
|
||
143 | public static java.lang.Object unmarshal(java.io.Reader reader) |
||
144 | throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
||
145 | { |
||
146 | return (com.iver.andami.plugins.config.generate.ComboButtonElement) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ComboButtonElement.class, reader);
|
||
147 | } //-- java.lang.Object unmarshal(java.io.Reader)
|
||
148 | |||
149 | /**
|
||
150 | * Method validate
|
||
151 | */
|
||
152 | public void validate() |
||
153 | throws org.exolab.castor.xml.ValidationException
|
||
154 | { |
||
155 | org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
||
156 | validator.validate(this);
|
||
157 | } //-- void validate()
|
||
158 | |||
159 | } |