Statistics
| Revision:

root / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_3_0 / capabilities / StyleURL.java @ 150

History | View | Annotate | Download (5.42 KB)

1
/*
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: StyleURL.java 150 2004-09-23 09:35:29Z fernando $
6
 */
7

    
8
package com.iver.wmsclient.wms_1_3_0.capabilities;
9

    
10
  //---------------------------------/
11
 //- Imported classes and packages -/
12
//---------------------------------/
13

    
14
import org.exolab.castor.xml.Marshaller;
15
import org.exolab.castor.xml.Unmarshaller;
16

    
17
/**
18
 * A Map Server may use StyleURL to offer more information about
19
 * the
20
 *  data or symbology underlying a particular Style. While the
21
 * semantics
22
 *  are not well-defined, as long as the results of an HTTP GET
23
 * request
24
 *  against the StyleURL are properly MIME-typed, Viewer Clients
25
 * and
26
 *  Cascading Map Servers can make use of this. A possible use
27
 * could be
28
 *  to allow a Map Server to provide legend information.
29
 *  
30
 * 
31
 * @version $Revision: 150 $ $Date: 2004-09-23 11:35:29 +0200 (Thu, 23 Sep 2004) $
32
 */
33
public class StyleURL implements java.io.Serializable {
34

    
35

    
36
      //--------------------------/
37
     //- Class/Member Variables -/
38
    //--------------------------/
39

    
40
    /**
41
     * A container for listing an available format's MIME type.
42
     *  
43
     */
44
    private com.iver.wmsclient.wms_1_3_0.capabilities.Format _format;
45

    
46
    /**
47
     * An OnlineResource is typically an HTTP URL. The URL is
48
     * placed in
49
     *  the xlink:href attribute, and the value "simple" is placed
50
     * in the
51
     *  xlink:type attribute.
52
     *  
53
     */
54
    private com.iver.wmsclient.wms_1_3_0.capabilities.OnlineResource _onlineResource;
55

    
56

    
57
      //----------------/
58
     //- Constructors -/
59
    //----------------/
60

    
61
    public StyleURL() {
62
        super();
63
    } //-- com.iver.wmsclient.wms_1_3_0.capabilities.StyleURL()
64

    
65

    
66
      //-----------/
67
     //- Methods -/
68
    //-----------/
69

    
70
    /**
71
     * Returns the value of field 'format'. The field 'format' has
72
     * the following description: A container for listing an
73
     * available format's MIME type.
74
     *  
75
     * 
76
     * @return the value of field 'format'.
77
     */
78
    public com.iver.wmsclient.wms_1_3_0.capabilities.Format getFormat()
79
    {
80
        return this._format;
81
    } //-- com.iver.wmsclient.wms_1_3_0.capabilities.Format getFormat() 
82

    
83
    /**
84
     * Returns the value of field 'onlineResource'. The field
85
     * 'onlineResource' has the following description: An
86
     * OnlineResource is typically an HTTP URL. The URL is placed
87
     * in
88
     *  the xlink:href attribute, and the value "simple" is placed
89
     * in the
90
     *  xlink:type attribute.
91
     *  
92
     * 
93
     * @return the value of field 'onlineResource'.
94
     */
95
    public com.iver.wmsclient.wms_1_3_0.capabilities.OnlineResource getOnlineResource()
96
    {
97
        return this._onlineResource;
98
    } //-- com.iver.wmsclient.wms_1_3_0.capabilities.OnlineResource getOnlineResource() 
99

    
100
    /**
101
     * Method isValid
102
     */
103
    public boolean isValid()
104
    {
105
        try {
106
            validate();
107
        }
108
        catch (org.exolab.castor.xml.ValidationException vex) {
109
            return false;
110
        }
111
        return true;
112
    } //-- boolean isValid() 
113

    
114
    /**
115
     * Method marshal
116
     * 
117
     * @param out
118
     */
119
    public void marshal(java.io.Writer out)
120
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
121
    {
122
        
123
        Marshaller.marshal(this, out);
124
    } //-- void marshal(java.io.Writer) 
125

    
126
    /**
127
     * Method marshal
128
     * 
129
     * @param handler
130
     */
131
    public void marshal(org.xml.sax.ContentHandler handler)
132
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
133
    {
134
        
135
        Marshaller.marshal(this, handler);
136
    } //-- void marshal(org.xml.sax.ContentHandler) 
137

    
138
    /**
139
     * Sets the value of field 'format'. The field 'format' has the
140
     * following description: A container for listing an available
141
     * format's MIME type.
142
     *  
143
     * 
144
     * @param format the value of field 'format'.
145
     */
146
    public void setFormat(com.iver.wmsclient.wms_1_3_0.capabilities.Format format)
147
    {
148
        this._format = format;
149
    } //-- void setFormat(com.iver.wmsclient.wms_1_3_0.capabilities.Format) 
150

    
151
    /**
152
     * Sets the value of field 'onlineResource'. The field
153
     * 'onlineResource' has the following description: An
154
     * OnlineResource is typically an HTTP URL. The URL is placed
155
     * in
156
     *  the xlink:href attribute, and the value "simple" is placed
157
     * in the
158
     *  xlink:type attribute.
159
     *  
160
     * 
161
     * @param onlineResource the value of field 'onlineResource'.
162
     */
163
    public void setOnlineResource(com.iver.wmsclient.wms_1_3_0.capabilities.OnlineResource onlineResource)
164
    {
165
        this._onlineResource = onlineResource;
166
    } //-- void setOnlineResource(com.iver.wmsclient.wms_1_3_0.capabilities.OnlineResource) 
167

    
168
    /**
169
     * Method unmarshal
170
     * 
171
     * @param reader
172
     */
173
    public static java.lang.Object unmarshal(java.io.Reader reader)
174
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
175
    {
176
        return (com.iver.wmsclient.wms_1_3_0.capabilities.StyleURL) Unmarshaller.unmarshal(com.iver.wmsclient.wms_1_3_0.capabilities.StyleURL.class, reader);
177
    } //-- java.lang.Object unmarshal(java.io.Reader) 
178

    
179
    /**
180
     * Method validate
181
     */
182
    public void validate()
183
        throws org.exolab.castor.xml.ValidationException
184
    {
185
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
186
        validator.validate(this);
187
    } //-- void validate() 
188

    
189
}