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.mapping.xml.descriptors;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import org.exolab.castor.mapping.xml.Property;
15  
16  /**
17   * Class PropertyDescriptor.
18   * 
19   * @version $Revision$ $Date$
20   */
21  public class PropertyDescriptor extends org.exolab.castor.mapping.xml.descriptors.PropertyTypeDescriptor {
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 PropertyDescriptor() {
59          super();
60          setExtendsWithoutFlatten(new org.exolab.castor.mapping.xml.descriptors.PropertyTypeDescriptor());
61          _xmlName = "property";
62          _elementDefinition = true;
63      }
64  
65  
66        //-----------/
67       //- Methods -/
68      //-----------/
69  
70      /**
71       * Method getAccessMode.
72       * 
73       * @return the access mode specified for this class.
74       */
75      @Override()
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      @Override()
88      public org.exolab.castor.mapping.FieldDescriptor getIdentity(
89      ) {
90          if (_identity == null) {
91              return super.getIdentity();
92          }
93          return _identity;
94      }
95  
96      /**
97       * Method getJavaClass.
98       * 
99       * @return the Java class represented by this descriptor.
100      */
101     @Override()
102     public java.lang.Class getJavaClass(
103     ) {
104         return org.exolab.castor.mapping.xml.Property.class;
105     }
106 
107     /**
108      * Method getNameSpacePrefix.
109      * 
110      * @return the namespace prefix to use when marshaling as XML.
111      */
112     @Override()
113     public java.lang.String getNameSpacePrefix(
114     ) {
115         return _nsPrefix;
116     }
117 
118     /**
119      * Method getNameSpaceURI.
120      * 
121      * @return the namespace URI used when marshaling and
122      * unmarshaling as XML.
123      */
124     @Override()
125     public java.lang.String getNameSpaceURI(
126     ) {
127         return _nsURI;
128     }
129 
130     /**
131      * Method getValidator.
132      * 
133      * @return a specific validator for the class described by this
134      * ClassDescriptor.
135      */
136     @Override()
137     public org.exolab.castor.xml.TypeValidator getValidator(
138     ) {
139         return this;
140     }
141 
142     /**
143      * Method getXMLName.
144      * 
145      * @return the XML Name for the Class being described.
146      */
147     @Override()
148     public java.lang.String getXMLName(
149     ) {
150         return _xmlName;
151     }
152 
153     /**
154      * Method isElementDefinition.
155      * 
156      * @return true if XML schema definition of this Class is that
157      * of a global
158      * element or element with anonymous type definition.
159      */
160     public boolean isElementDefinition(
161     ) {
162         return _elementDefinition;
163     }
164 
165 }