View Javadoc

1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 0.9.7</a>, using an XML
4    * Schema.
5    * $Id$
6    */
7   
8   package fr.in2p3.jsaga.adaptor.schema.data.emulator;
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 EntryType.
26   * 
27   * @version $Revision$ $Date$
28   */
29  public class EntryType implements java.io.Serializable {
30  
31  
32        //--------------------------/
33       //- Class/Member Variables -/
34      //--------------------------/
35  
36      /**
37       * Field _name
38       */
39      private java.lang.String _name;
40  
41      /**
42       * Field _owner
43       */
44      private java.lang.String _owner;
45  
46  
47        //----------------/
48       //- Constructors -/
49      //----------------/
50  
51      public EntryType() 
52       {
53          super();
54      } //-- fr.in2p3.jsaga.adaptor.schema.data.emulator.EntryType()
55  
56  
57        //-----------/
58       //- Methods -/
59      //-----------/
60  
61      /**
62       * Returns the value of field 'name'.
63       * 
64       * @return String
65       * @return the value of field 'name'.
66       */
67      public java.lang.String getName()
68      {
69          return this._name;
70      } //-- java.lang.String getName() 
71  
72      /**
73       * Returns the value of field 'owner'.
74       * 
75       * @return String
76       * @return the value of field 'owner'.
77       */
78      public java.lang.String getOwner()
79      {
80          return this._owner;
81      } //-- java.lang.String getOwner() 
82  
83      /**
84       * Method isValid
85       * 
86       * 
87       * 
88       * @return boolean
89       */
90      public boolean isValid()
91      {
92          try {
93              validate();
94          }
95          catch (org.exolab.castor.xml.ValidationException vex) {
96              return false;
97          }
98          return true;
99      } //-- boolean isValid() 
100 
101     /**
102      * Method marshal
103      * 
104      * 
105      * 
106      * @param out
107      */
108     public void marshal(java.io.Writer out)
109         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
110     {
111         
112         Marshaller.marshal(this, out);
113     } //-- void marshal(java.io.Writer) 
114 
115     /**
116      * Method marshal
117      * 
118      * 
119      * 
120      * @param handler
121      */
122     public void marshal(org.xml.sax.ContentHandler handler)
123         throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
124     {
125         
126         Marshaller.marshal(this, handler);
127     } //-- void marshal(org.xml.sax.ContentHandler) 
128 
129     /**
130      * Sets the value of field 'name'.
131      * 
132      * @param name the value of field 'name'.
133      */
134     public void setName(java.lang.String name)
135     {
136         this._name = name;
137     } //-- void setName(java.lang.String) 
138 
139     /**
140      * Sets the value of field 'owner'.
141      * 
142      * @param owner the value of field 'owner'.
143      */
144     public void setOwner(java.lang.String owner)
145     {
146         this._owner = owner;
147     } //-- void setOwner(java.lang.String) 
148 
149     /**
150      * Method unmarshal
151      * 
152      * 
153      * 
154      * @param reader
155      * @return Object
156      */
157     public static java.lang.Object unmarshal(java.io.Reader reader)
158         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
159     {
160         return (fr.in2p3.jsaga.adaptor.schema.data.emulator.EntryType) Unmarshaller.unmarshal(fr.in2p3.jsaga.adaptor.schema.data.emulator.EntryType.class, reader);
161     } //-- java.lang.Object unmarshal(java.io.Reader) 
162 
163     /**
164      * Method validate
165      * 
166      */
167     public void validate()
168         throws org.exolab.castor.xml.ValidationException
169     {
170         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
171         validator.validate(this);
172     } //-- void validate() 
173 
174 }