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.tests.framework.testDescriptor.descriptors;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.exolab.castor.tests.framework.testDescriptor.Failure;
15  
16  /**
17   * Class FailureDescriptor.
18   * 
19   * @version $Revision$ $Date$
20   */
21  public class FailureDescriptor extends org.exolab.castor.tests.framework.testDescriptor.descriptors.FailureTypeDescriptor {
22  
23  
24        //--------------------------/
25       //- Class/Member Variables -/
26      //--------------------------/
27  
28      /**
29       * Field _elementDefinition.
30       */
31      private boolean _elementDefinition;
32  
33      /**
34       * Field _nsPrefix.
35       */
36      private java.lang.String _nsPrefix;
37  
38      /**
39       * Field _nsURI.
40       */
41      private java.lang.String _nsURI;
42  
43      /**
44       * Field _xmlName.
45       */
46      private java.lang.String _xmlName;
47  
48      /**
49       * Field _identity.
50       */
51      private org.exolab.castor.xml.XMLFieldDescriptor _identity;
52  
53  
54        //----------------/
55       //- Constructors -/
56      //----------------/
57  
58      public FailureDescriptor() {
59          super();
60          setExtendsWithoutFlatten(new org.exolab.castor.tests.framework.testDescriptor.descriptors.FailureTypeDescriptor());
61          _nsURI = "http://castor.exolab.org/Test";
62          _xmlName = "Failure";
63          _elementDefinition = true;
64      }
65  
66  
67        //-----------/
68       //- Methods -/
69      //-----------/
70  
71      /**
72       * Method getAccessMode.
73       * 
74       * @return the access mode specified for this class.
75       */
76      public org.exolab.castor.mapping.AccessMode getAccessMode(
77      ) {
78          return null;
79      }
80  
81      /**
82       * Method getIdentity.
83       * 
84       * @return the identity field, null if this class has no
85       * identity.
86       */
87      public org.exolab.castor.mapping.FieldDescriptor getIdentity(
88      ) {
89          if (_identity == null) {
90              return super.getIdentity();
91          }
92          return _identity;
93      }
94  
95      /**
96       * Method getJavaClass.
97       * 
98       * @return the Java class represented by this descriptor.
99       */
100     public java.lang.Class getJavaClass(
101     ) {
102         return org.exolab.castor.tests.framework.testDescriptor.Failure.class;
103     }
104 
105     /**
106      * Method getNameSpacePrefix.
107      * 
108      * @return the namespace prefix to use when marshaling as XML.
109      */
110     public java.lang.String getNameSpacePrefix(
111     ) {
112         return _nsPrefix;
113     }
114 
115     /**
116      * Method getNameSpaceURI.
117      * 
118      * @return the namespace URI used when marshaling and
119      * unmarshaling as XML.
120      */
121     public java.lang.String getNameSpaceURI(
122     ) {
123         return _nsURI;
124     }
125 
126     /**
127      * Method getValidator.
128      * 
129      * @return a specific validator for the class described by this
130      * ClassDescriptor.
131      */
132     public org.exolab.castor.xml.TypeValidator getValidator(
133     ) {
134         return this;
135     }
136 
137     /**
138      * Method getXMLName.
139      * 
140      * @return the XML Name for the Class being described.
141      */
142     public java.lang.String getXMLName(
143     ) {
144         return _xmlName;
145     }
146 
147     /**
148      * Method isElementDefinition.
149      * 
150      * @return true if XML schema definition of this Class is that
151      * of a global
152      * element or element with anonymous type definition.
153      */
154     public boolean isElementDefinition(
155     ) {
156         return _elementDefinition;
157     }
158 
159 }