root / trunk / frameworks / _fwAndami / src / com / iver / andami / plugins / config / generate / LibrariesDescriptor.java @ 9956
History | View | Annotate | Download (4.82 KB)
1 | 598 | fernando | /*
|
---|---|---|---|
2 | * This class was automatically generated with
|
||
3 | * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
||
4 | * Schema.
|
||
5 | * $Id$
|
||
6 | */
|
||
7 | |||
8 | package com.iver.andami.plugins.config.generate; |
||
9 | |||
10 | //---------------------------------/
|
||
11 | //- Imported classes and packages -/
|
||
12 | //---------------------------------/
|
||
13 | |||
14 | 6431 | cesar | 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 | 598 | fernando | |
19 | /**
|
||
20 | * Class LibrariesDescriptor.
|
||
21 | *
|
||
22 | * @version $Revision$ $Date$
|
||
23 | */
|
||
24 | public class LibrariesDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
||
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 LibrariesDescriptor() {
|
||
57 | super();
|
||
58 | xmlName = "libraries";
|
||
59 | org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
|
||
60 | org.exolab.castor.xml.XMLFieldHandler handler = null;
|
||
61 | org.exolab.castor.xml.FieldValidator fieldValidator = null;
|
||
62 | //-- initialize attribute descriptors
|
||
63 | |||
64 | 1110 | fernando | //-- _libraryDir
|
65 | desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_libraryDir", "library-dir", org.exolab.castor.xml.NodeType.Attribute); |
||
66 | desc.setImmutable(true);
|
||
67 | 598 | fernando | handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
68 | public java.lang.Object getValue( java.lang.Object object )
|
||
69 | throws IllegalStateException |
||
70 | { |
||
71 | Libraries target = (Libraries) object; |
||
72 | 1110 | fernando | return target.getLibraryDir();
|
73 | 598 | fernando | } |
74 | public void setValue( java.lang.Object object, java.lang.Object value) |
||
75 | throws IllegalStateException, IllegalArgumentException |
||
76 | { |
||
77 | try {
|
||
78 | Libraries target = (Libraries) object; |
||
79 | 1110 | fernando | target.setLibraryDir( (java.lang.String) value); |
80 | 598 | fernando | } |
81 | catch (java.lang.Exception ex) {
|
||
82 | throw new IllegalStateException(ex.toString()); |
||
83 | } |
||
84 | } |
||
85 | public java.lang.Object newInstance( java.lang.Object parent ) {
|
||
86 | 1110 | fernando | return null; |
87 | 598 | fernando | } |
88 | } ); |
||
89 | desc.setHandler(handler); |
||
90 | desc.setRequired(true);
|
||
91 | addFieldDescriptor(desc); |
||
92 | |||
93 | 1110 | fernando | //-- validation code for: _libraryDir
|
94 | 598 | fernando | fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
95 | fieldValidator.setMinOccurs(1);
|
||
96 | { //-- local scope
|
||
97 | 1110 | fernando | StringValidator typeValidator = new StringValidator();
|
98 | typeValidator.setWhiteSpace("preserve");
|
||
99 | fieldValidator.setValidator(typeValidator); |
||
100 | 598 | fernando | } |
101 | desc.setValidator(fieldValidator); |
||
102 | 1110 | fernando | //-- initialize element descriptors
|
103 | |||
104 | 598 | fernando | } //-- com.iver.andami.plugins.config.generate.LibrariesDescriptor()
|
105 | |||
106 | |||
107 | //-----------/
|
||
108 | //- Methods -/
|
||
109 | //-----------/
|
||
110 | |||
111 | /**
|
||
112 | * Method getAccessMode
|
||
113 | */
|
||
114 | public org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
115 | { |
||
116 | return null; |
||
117 | } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
||
118 | |||
119 | /**
|
||
120 | * Method getExtends
|
||
121 | */
|
||
122 | public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
123 | { |
||
124 | return null; |
||
125 | } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
||
126 | |||
127 | /**
|
||
128 | * Method getIdentity
|
||
129 | */
|
||
130 | public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
131 | { |
||
132 | return identity;
|
||
133 | } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
||
134 | |||
135 | /**
|
||
136 | * Method getJavaClass
|
||
137 | */
|
||
138 | public java.lang.Class getJavaClass()
|
||
139 | { |
||
140 | return com.iver.andami.plugins.config.generate.Libraries.class;
|
||
141 | } //-- java.lang.Class getJavaClass()
|
||
142 | |||
143 | /**
|
||
144 | * Method getNameSpacePrefix
|
||
145 | */
|
||
146 | public java.lang.String getNameSpacePrefix()
|
||
147 | { |
||
148 | return nsPrefix;
|
||
149 | } //-- java.lang.String getNameSpacePrefix()
|
||
150 | |||
151 | /**
|
||
152 | * Method getNameSpaceURI
|
||
153 | */
|
||
154 | public java.lang.String getNameSpaceURI()
|
||
155 | { |
||
156 | return nsURI;
|
||
157 | } //-- java.lang.String getNameSpaceURI()
|
||
158 | |||
159 | /**
|
||
160 | * Method getValidator
|
||
161 | */
|
||
162 | public org.exolab.castor.xml.TypeValidator getValidator()
|
||
163 | { |
||
164 | return this; |
||
165 | } //-- org.exolab.castor.xml.TypeValidator getValidator()
|
||
166 | |||
167 | /**
|
||
168 | * Method getXMLName
|
||
169 | */
|
||
170 | public java.lang.String getXMLName()
|
||
171 | { |
||
172 | return xmlName;
|
||
173 | } //-- java.lang.String getXMLName()
|
||
174 | |||
175 | } |