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