View Javadoc
1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8   package org.exolab.castor.builder.binding.xml;
9   
10  /**
11   * Class ComponentBindingTypeChoice.
12   * 
13   * @version $Revision$ $Date$
14   */
15  public class ComponentBindingTypeChoice implements java.io.Serializable {
16  
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Field _javaClass.
24       */
25      private org.exolab.castor.builder.binding.xml.ClassType _javaClass;
26  
27      /**
28       * Field _interface.
29       */
30      private org.exolab.castor.builder.binding.xml.Interface _interface;
31  
32      /**
33       * Field _member.
34       */
35      private org.exolab.castor.builder.binding.xml.FieldType _member;
36  
37      /**
38       * Field _enumDef.
39       */
40      private org.exolab.castor.builder.binding.xml.EnumBindingType _enumDef;
41  
42      /**
43       * Field _contentMember.
44       */
45      private org.exolab.castor.builder.binding.xml.ContentMemberType _contentMember;
46  
47  
48        //----------------/
49       //- Constructors -/
50      //----------------/
51  
52      public ComponentBindingTypeChoice() {
53          super();
54      }
55  
56  
57        //-----------/
58       //- Methods -/
59      //-----------/
60  
61      /**
62       * Returns the value of field 'contentMember'.
63       * 
64       * @return the value of field 'ContentMember'.
65       */
66      public org.exolab.castor.builder.binding.xml.ContentMemberType getContentMember(
67      ) {
68          return this._contentMember;
69      }
70  
71      /**
72       * Returns the value of field 'enumDef'.
73       * 
74       * @return the value of field 'EnumDef'.
75       */
76      public org.exolab.castor.builder.binding.xml.EnumBindingType getEnumDef(
77      ) {
78          return this._enumDef;
79      }
80  
81      /**
82       * Returns the value of field 'interface'.
83       * 
84       * @return the value of field 'Interface'.
85       */
86      public org.exolab.castor.builder.binding.xml.Interface getInterface(
87      ) {
88          return this._interface;
89      }
90  
91      /**
92       * Returns the value of field 'javaClass'.
93       * 
94       * @return the value of field 'JavaClass'.
95       */
96      public org.exolab.castor.builder.binding.xml.ClassType getJavaClass(
97      ) {
98          return this._javaClass;
99      }
100 
101     /**
102      * Returns the value of field 'member'.
103      * 
104      * @return the value of field 'Member'.
105      */
106     public org.exolab.castor.builder.binding.xml.FieldType getMember(
107     ) {
108         return this._member;
109     }
110 
111     /**
112      * Method isValid.
113      * 
114      * @return true if this object is valid according to the schema
115      */
116     public boolean isValid(
117     ) {
118         try {
119             validate();
120         } catch (org.exolab.castor.xml.ValidationException vex) {
121             return false;
122         }
123         return true;
124     }
125 
126     /**
127      * 
128      * 
129      * @param out
130      * @throws org.exolab.castor.xml.MarshalException if object is
131      * null or if any SAXException is thrown during marshaling
132      * @throws org.exolab.castor.xml.ValidationException if this
133      * object is an invalid instance according to the schema
134      */
135     public void marshal(
136             final java.io.Writer out)
137     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
138         org.exolab.castor.xml.Marshaller.marshal(this, out);
139     }
140 
141     /**
142      * 
143      * 
144      * @param handler
145      * @throws java.io.IOException if an IOException occurs during
146      * marshaling
147      * @throws org.exolab.castor.xml.ValidationException if this
148      * object is an invalid instance according to the schema
149      * @throws org.exolab.castor.xml.MarshalException if object is
150      * null or if any SAXException is thrown during marshaling
151      */
152     public void marshal(
153             final org.xml.sax.ContentHandler handler)
154     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
155         org.exolab.castor.xml.Marshaller.marshal(this, handler);
156     }
157 
158     /**
159      * Sets the value of field 'contentMember'.
160      * 
161      * @param contentMember the value of field 'contentMember'.
162      */
163     public void setContentMember(
164             final org.exolab.castor.builder.binding.xml.ContentMemberType contentMember) {
165         this._contentMember = contentMember;
166     }
167 
168     /**
169      * Sets the value of field 'enumDef'.
170      * 
171      * @param enumDef the value of field 'enumDef'.
172      */
173     public void setEnumDef(
174             final org.exolab.castor.builder.binding.xml.EnumBindingType enumDef) {
175         this._enumDef = enumDef;
176     }
177 
178     /**
179      * Sets the value of field 'interface'.
180      * 
181      * @param _interface
182      * @param interface the value of field 'interface'.
183      */
184     public void setInterface(
185             final org.exolab.castor.builder.binding.xml.Interface _interface) {
186         this._interface = _interface;
187     }
188 
189     /**
190      * Sets the value of field 'javaClass'.
191      * 
192      * @param javaClass the value of field 'javaClass'.
193      */
194     public void setJavaClass(
195             final org.exolab.castor.builder.binding.xml.ClassType javaClass) {
196         this._javaClass = javaClass;
197     }
198 
199     /**
200      * Sets the value of field 'member'.
201      * 
202      * @param member the value of field 'member'.
203      */
204     public void setMember(
205             final org.exolab.castor.builder.binding.xml.FieldType member) {
206         this._member = member;
207     }
208 
209     /**
210      * Method unmarshalComponentBindingTypeChoice.
211      * 
212      * @param reader
213      * @throws org.exolab.castor.xml.MarshalException if object is
214      * null or if any SAXException is thrown during marshaling
215      * @throws org.exolab.castor.xml.ValidationException if this
216      * object is an invalid instance according to the schema
217      * @return the unmarshaled
218      * org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice
219      */
220     public static org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice unmarshalComponentBindingTypeChoice(
221             final java.io.Reader reader)
222     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
223         return (org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice.class, reader);
224     }
225 
226     /**
227      * 
228      * 
229      * @throws org.exolab.castor.xml.ValidationException if this
230      * object is an invalid instance according to the schema
231      */
232     public void validate(
233     )
234     throws org.exolab.castor.xml.ValidationException {
235         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
236         validator.validate(this);
237     }
238 
239 }