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 AutomaticNamingType.
12   * 
13   * @version $Revision$ $Date$
14   */
15  public class AutomaticNamingType implements java.io.Serializable {
16  
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Field _forces.
24       */
25      private org.exolab.castor.builder.binding.xml.Forces _forces;
26  
27      /**
28       * Field _excludes.
29       */
30      private org.exolab.castor.builder.binding.xml.Excludes _excludes;
31  
32  
33        //----------------/
34       //- Constructors -/
35      //----------------/
36  
37      public AutomaticNamingType() {
38          super();
39      }
40  
41  
42        //-----------/
43       //- Methods -/
44      //-----------/
45  
46      /**
47       * Returns the value of field 'excludes'.
48       * 
49       * @return the value of field 'Excludes'.
50       */
51      public org.exolab.castor.builder.binding.xml.Excludes getExcludes(
52      ) {
53          return this._excludes;
54      }
55  
56      /**
57       * Returns the value of field 'forces'.
58       * 
59       * @return the value of field 'Forces'.
60       */
61      public org.exolab.castor.builder.binding.xml.Forces getForces(
62      ) {
63          return this._forces;
64      }
65  
66      /**
67       * Method isValid.
68       * 
69       * @return true if this object is valid according to the schema
70       */
71      public boolean isValid(
72      ) {
73          try {
74              validate();
75          } catch (org.exolab.castor.xml.ValidationException vex) {
76              return false;
77          }
78          return true;
79      }
80  
81      /**
82       * 
83       * 
84       * @param out
85       * @throws org.exolab.castor.xml.MarshalException if object is
86       * null or if any SAXException is thrown during marshaling
87       * @throws org.exolab.castor.xml.ValidationException if this
88       * object is an invalid instance according to the schema
89       */
90      public void marshal(
91              final java.io.Writer out)
92      throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
93          org.exolab.castor.xml.Marshaller.marshal(this, out);
94      }
95  
96      /**
97       * 
98       * 
99       * @param handler
100      * @throws java.io.IOException if an IOException occurs during
101      * marshaling
102      * @throws org.exolab.castor.xml.ValidationException if this
103      * object is an invalid instance according to the schema
104      * @throws org.exolab.castor.xml.MarshalException if object is
105      * null or if any SAXException is thrown during marshaling
106      */
107     public void marshal(
108             final org.xml.sax.ContentHandler handler)
109     throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
110         org.exolab.castor.xml.Marshaller.marshal(this, handler);
111     }
112 
113     /**
114      * Sets the value of field 'excludes'.
115      * 
116      * @param excludes the value of field 'excludes'.
117      */
118     public void setExcludes(
119             final org.exolab.castor.builder.binding.xml.Excludes excludes) {
120         this._excludes = excludes;
121     }
122 
123     /**
124      * Sets the value of field 'forces'.
125      * 
126      * @param forces the value of field 'forces'.
127      */
128     public void setForces(
129             final org.exolab.castor.builder.binding.xml.Forces forces) {
130         this._forces = forces;
131     }
132 
133     /**
134      * Method unmarshalAutomaticNamingType.
135      * 
136      * @param reader
137      * @throws org.exolab.castor.xml.MarshalException if object is
138      * null or if any SAXException is thrown during marshaling
139      * @throws org.exolab.castor.xml.ValidationException if this
140      * object is an invalid instance according to the schema
141      * @return the unmarshaled
142      * org.exolab.castor.builder.binding.xml.AutomaticNamingType
143      */
144     public static org.exolab.castor.builder.binding.xml.AutomaticNamingType unmarshalAutomaticNamingType(
145             final java.io.Reader reader)
146     throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147         return (org.exolab.castor.builder.binding.xml.AutomaticNamingType) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.builder.binding.xml.AutomaticNamingType.class, reader);
148     }
149 
150     /**
151      * 
152      * 
153      * @throws org.exolab.castor.xml.ValidationException if this
154      * object is an invalid instance according to the schema
155      */
156     public void validate(
157     )
158     throws org.exolab.castor.xml.ValidationException {
159         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
160         validator.validate(this);
161     }
162 
163 }