View Javadoc

1   /*
2    * This class was automatically generated with 
3    * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
4    * Schema.
5    * $Id: SIACapRestrictionDescriptor.java,v 1.2 2007/01/04 16:26:30 clq2 Exp $
6    */
7   
8   package org.astrogrid.registry.beans.v10.resource.sia;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.exolab.castor.mapping.AccessMode;
15  import org.exolab.castor.xml.TypeValidator;
16  import org.exolab.castor.xml.XMLFieldDescriptor;
17  import org.exolab.castor.xml.validators.*;
18  
19  /***
20   * Class SIACapRestrictionDescriptor.
21   * 
22   * @version $Revision: 1.2 $ $Date: 2007/01/04 16:26:30 $
23   */
24  public class SIACapRestrictionDescriptor extends org.astrogrid.registry.beans.v10.resource.CapabilityDescriptor {
25  
26  
27        //--------------------------/
28       //- Class/Member Variables -/
29      //--------------------------/
30  
31      /***
32       * Field nsPrefix
33       */
34      private java.lang.String nsPrefix;
35  
36      /***
37       * Field nsURI
38       */
39      private java.lang.String nsURI;
40  
41      /***
42       * Field xmlName
43       */
44      private java.lang.String xmlName;
45  
46      /***
47       * Field identity
48       */
49      private org.exolab.castor.xml.XMLFieldDescriptor identity;
50  
51  
52        //----------------/
53       //- Constructors -/
54      //----------------/
55  
56      public SIACapRestrictionDescriptor() {
57          super();
58          setExtendsWithoutFlatten(new org.astrogrid.registry.beans.v10.resource.CapabilityDescriptor());
59          nsURI = "http://www.ivoa.net/xml/SIA/v0.7";
60          xmlName = "SIACapRestriction";
61          
62          //-- set grouping compositor
63          setCompositorAsSequence();
64          org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
65          org.exolab.castor.xml.XMLFieldHandler              handler        = null;
66          org.exolab.castor.xml.FieldValidator               fieldValidator = null;
67          //-- initialize attribute descriptors
68          
69          //-- _standardID
70          desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_standardID", "standardID", org.exolab.castor.xml.NodeType.Attribute);
71          handler = (new org.exolab.castor.xml.XMLFieldHandler() {
72              public java.lang.Object getValue( java.lang.Object object ) 
73                  throws IllegalStateException
74              {
75                  SIACapRestriction target = (SIACapRestriction) object;
76                  return target.getStandardID();
77              }
78              public void setValue( java.lang.Object object, java.lang.Object value) 
79                  throws IllegalStateException, IllegalArgumentException
80              {
81                  try {
82                      SIACapRestriction target = (SIACapRestriction) object;
83                      target.setStandardID( (java.lang.String) value);
84                  }
85                  catch (java.lang.Exception ex) {
86                      throw new IllegalStateException(ex.toString());
87                  }
88              }
89              public java.lang.Object newInstance( java.lang.Object parent ) {
90                  return new java.lang.String();
91              }
92          } );
93          desc.setHandler(handler);
94          addFieldDescriptor(desc);
95          
96          //-- validation code for: _standardID
97          fieldValidator = new org.exolab.castor.xml.FieldValidator();
98          { //-- local scope
99          }
100         desc.setValidator(fieldValidator);
101         //-- _standardURL
102         desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_standardURL", "standardURL", org.exolab.castor.xml.NodeType.Attribute);
103         handler = (new org.exolab.castor.xml.XMLFieldHandler() {
104             public java.lang.Object getValue( java.lang.Object object ) 
105                 throws IllegalStateException
106             {
107                 SIACapRestriction target = (SIACapRestriction) object;
108                 return target.getStandardURL();
109             }
110             public void setValue( java.lang.Object object, java.lang.Object value) 
111                 throws IllegalStateException, IllegalArgumentException
112             {
113                 try {
114                     SIACapRestriction target = (SIACapRestriction) object;
115                     target.setStandardURL( (java.lang.String) value);
116                 }
117                 catch (java.lang.Exception ex) {
118                     throw new IllegalStateException(ex.toString());
119                 }
120             }
121             public java.lang.Object newInstance( java.lang.Object parent ) {
122                 return new java.lang.String();
123             }
124         } );
125         desc.setHandler(handler);
126         addFieldDescriptor(desc);
127         
128         //-- validation code for: _standardURL
129         fieldValidator = new org.exolab.castor.xml.FieldValidator();
130         { //-- local scope
131         }
132         desc.setValidator(fieldValidator);
133         //-- initialize element descriptors
134         
135     } //-- org.astrogrid.registry.beans.v10.resource.sia.SIACapRestrictionDescriptor()
136 
137 
138       //-----------/
139      //- Methods -/
140     //-----------/
141 
142     /***
143      * Method getAccessMode
144      */
145     public org.exolab.castor.mapping.AccessMode getAccessMode()
146     {
147         return null;
148     } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
149 
150     /***
151      * Method getExtends
152      */
153     public org.exolab.castor.mapping.ClassDescriptor getExtends()
154     {
155         return super.getExtends();
156     } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
157 
158     /***
159      * Method getIdentity
160      */
161     public org.exolab.castor.mapping.FieldDescriptor getIdentity()
162     {
163         if (identity == null)
164             return super.getIdentity();
165         return identity;
166     } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
167 
168     /***
169      * Method getJavaClass
170      */
171     public java.lang.Class getJavaClass()
172     {
173         return org.astrogrid.registry.beans.v10.resource.sia.SIACapRestriction.class;
174     } //-- java.lang.Class getJavaClass() 
175 
176     /***
177      * Method getNameSpacePrefix
178      */
179     public java.lang.String getNameSpacePrefix()
180     {
181         return nsPrefix;
182     } //-- java.lang.String getNameSpacePrefix() 
183 
184     /***
185      * Method getNameSpaceURI
186      */
187     public java.lang.String getNameSpaceURI()
188     {
189         return nsURI;
190     } //-- java.lang.String getNameSpaceURI() 
191 
192     /***
193      * Method getValidator
194      */
195     public org.exolab.castor.xml.TypeValidator getValidator()
196     {
197         return this;
198     } //-- org.exolab.castor.xml.TypeValidator getValidator() 
199 
200     /***
201      * Method getXMLName
202      */
203     public java.lang.String getXMLName()
204     {
205         return xmlName;
206     } //-- java.lang.String getXMLName() 
207 
208 }