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.xml.schema.annotations.jdo.descriptors;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.exolab.castor.xml.schema.annotations.jdo.PrimaryKey;
15  
16  /**
17   * Class PrimaryKeyDescriptor.
18   * 
19   * @version $Revision$ $Date$
20   */
21  public class PrimaryKeyDescriptor extends org.exolab.castor.xml.schema.annotations.jdo.descriptors.PkTypeDescriptor {
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 PrimaryKeyDescriptor() {
59          super();
60          setExtendsWithoutFlatten(new org.exolab.castor.xml.schema.annotations.jdo.descriptors.PkTypeDescriptor());
61          _nsURI = "http://www.castor.org/binding/persistence";
62          _xmlName = "primaryKey";
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      @Override()
77      public org.exolab.castor.mapping.AccessMode getAccessMode(
78      ) {
79          return null;
80      }
81  
82      /**
83       * Method getIdentity.
84       * 
85       * @return the identity field, null if this class has no
86       * identity.
87       */
88      @Override()
89      public org.exolab.castor.mapping.FieldDescriptor getIdentity(
90      ) {
91          if (_identity == null) {
92              return super.getIdentity();
93          }
94          return _identity;
95      }
96  
97      /**
98       * Method getJavaClass.
99       * 
100      * @return the Java class represented by this descriptor.
101      */
102     @Override()
103     public java.lang.Class getJavaClass(
104     ) {
105         return org.exolab.castor.xml.schema.annotations.jdo.PrimaryKey.class;
106     }
107 
108     /**
109      * Method getNameSpacePrefix.
110      * 
111      * @return the namespace prefix to use when marshaling as XML.
112      */
113     @Override()
114     public java.lang.String getNameSpacePrefix(
115     ) {
116         return _nsPrefix;
117     }
118 
119     /**
120      * Method getNameSpaceURI.
121      * 
122      * @return the namespace URI used when marshaling and
123      * unmarshaling as XML.
124      */
125     @Override()
126     public java.lang.String getNameSpaceURI(
127     ) {
128         return _nsURI;
129     }
130 
131     /**
132      * Method getValidator.
133      * 
134      * @return a specific validator for the class described by this
135      * ClassDescriptor.
136      */
137     @Override()
138     public org.exolab.castor.xml.TypeValidator getValidator(
139     ) {
140         return this;
141     }
142 
143     /**
144      * Method getXMLName.
145      * 
146      * @return the XML Name for the Class being described.
147      */
148     @Override()
149     public java.lang.String getXMLName(
150     ) {
151         return _xmlName;
152     }
153 
154     /**
155      * Method isElementDefinition.
156      * 
157      * @return true if XML schema definition of this Class is that
158      * of a global
159      * element or element with anonymous type definition.
160      */
161     public boolean isElementDefinition(
162     ) {
163         return _elementDefinition;
164     }
165 
166 }