Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_1_1 / capabilities / TitleDescriptor.java @ 2956

History | View | Annotate | Download (4.69 KB)

1 150 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.wmsclient.wms_1_1_1.capabilities;
9
10
  //---------------------------------/
11
 //- Imported classes and packages -/
12
//---------------------------------/
13
14 2956 fjp
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 150 fernando
19
/**
20
 * Class TitleDescriptor.
21
 *
22
 * @version $Revision$ $Date$
23
 */
24
public class TitleDescriptor 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 TitleDescriptor() {
57
        super();
58
        xmlName = "Title";
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
        //-- _content
63
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
64
        desc.setImmutable(true);
65
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
66
            public java.lang.Object getValue( java.lang.Object object )
67
                throws IllegalStateException
68
            {
69
                Title target = (Title) object;
70
                return target.getContent();
71
            }
72
            public void setValue( java.lang.Object object, java.lang.Object value)
73
                throws IllegalStateException, IllegalArgumentException
74
            {
75
                try {
76
                    Title target = (Title) object;
77
                    target.setContent( (java.lang.String) value);
78
                }
79
                catch (java.lang.Exception ex) {
80
                    throw new IllegalStateException(ex.toString());
81
                }
82
            }
83
            public java.lang.Object newInstance( java.lang.Object parent ) {
84
                return null;
85
            }
86
        } );
87
        desc.setHandler(handler);
88
        addFieldDescriptor(desc);
89
90
        //-- validation code for: _content
91
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
92
        { //-- local scope
93
            StringValidator typeValidator = new StringValidator();
94
            typeValidator.setWhiteSpace("preserve");
95
            fieldValidator.setValidator(typeValidator);
96
        }
97
        desc.setValidator(fieldValidator);
98
        //-- initialize attribute descriptors
99
100
        //-- initialize element descriptors
101
102
    } //-- com.iver.wmsclient.wms_1_1_1.capabilities.TitleDescriptor()
103
104
105
      //-----------/
106
     //- Methods -/
107
    //-----------/
108
109
    /**
110
     * Method getAccessMode
111
     */
112
    public org.exolab.castor.mapping.AccessMode getAccessMode()
113
    {
114
        return null;
115
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
116
117
    /**
118
     * Method getExtends
119
     */
120
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
121
    {
122
        return null;
123
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
124
125
    /**
126
     * Method getIdentity
127
     */
128
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
129
    {
130
        return identity;
131
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
132
133
    /**
134
     * Method getJavaClass
135
     */
136
    public java.lang.Class getJavaClass()
137
    {
138
        return com.iver.wmsclient.wms_1_1_1.capabilities.Title.class;
139
    } //-- java.lang.Class getJavaClass()
140
141
    /**
142
     * Method getNameSpacePrefix
143
     */
144
    public java.lang.String getNameSpacePrefix()
145
    {
146
        return nsPrefix;
147
    } //-- java.lang.String getNameSpacePrefix()
148
149
    /**
150
     * Method getNameSpaceURI
151
     */
152
    public java.lang.String getNameSpaceURI()
153
    {
154
        return nsURI;
155
    } //-- java.lang.String getNameSpaceURI()
156
157
    /**
158
     * Method getValidator
159
     */
160
    public org.exolab.castor.xml.TypeValidator getValidator()
161
    {
162
        return this;
163
    } //-- org.exolab.castor.xml.TypeValidator getValidator()
164
165
    /**
166
     * Method getXMLName
167
     */
168
    public java.lang.String getXMLName()
169
    {
170
        return xmlName;
171
    } //-- java.lang.String getXMLName()
172
173
}