Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_3_0 / capabilities / DCPType.java @ 150

History | View | Annotate | Download (3.56 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: DCPType.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
 * Available Distributed Computing Platforms (DCPs) are listed
19
 * here.
20
 *  At present, only HTTP is defined.
21
 *  
22
 * 
23
 * @version $Revision: 150 $ $Date: 2004-09-23 11:35:29 +0200 (Thu, 23 Sep 2004) $
24
 */
25
public class DCPType implements java.io.Serializable {
26

    
27

    
28
      //--------------------------/
29
     //- Class/Member Variables -/
30
    //--------------------------/
31

    
32
    /**
33
     * Available HTTP request methods. At least "Get" shall be
34
     * supported.
35
     *  
36
     */
37
    private com.iver.wmsclient.wms_1_3_0.capabilities.HTTP _HTTP;
38

    
39

    
40
      //----------------/
41
     //- Constructors -/
42
    //----------------/
43

    
44
    public DCPType() {
45
        super();
46
    } //-- com.iver.wmsclient.wms_1_3_0.capabilities.DCPType()
47

    
48

    
49
      //-----------/
50
     //- Methods -/
51
    //-----------/
52

    
53
    /**
54
     * Returns the value of field 'HTTP'. The field 'HTTP' has the
55
     * following description: Available HTTP request methods. At
56
     * least "Get" shall be supported.
57
     *  
58
     * 
59
     * @return the value of field 'HTTP'.
60
     */
61
    public com.iver.wmsclient.wms_1_3_0.capabilities.HTTP getHTTP()
62
    {
63
        return this._HTTP;
64
    } //-- com.iver.wmsclient.wms_1_3_0.capabilities.HTTP getHTTP() 
65

    
66
    /**
67
     * Method isValid
68
     */
69
    public boolean isValid()
70
    {
71
        try {
72
            validate();
73
        }
74
        catch (org.exolab.castor.xml.ValidationException vex) {
75
            return false;
76
        }
77
        return true;
78
    } //-- boolean isValid() 
79

    
80
    /**
81
     * Method marshal
82
     * 
83
     * @param out
84
     */
85
    public void marshal(java.io.Writer out)
86
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
87
    {
88
        
89
        Marshaller.marshal(this, out);
90
    } //-- void marshal(java.io.Writer) 
91

    
92
    /**
93
     * Method marshal
94
     * 
95
     * @param handler
96
     */
97
    public void marshal(org.xml.sax.ContentHandler handler)
98
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
99
    {
100
        
101
        Marshaller.marshal(this, handler);
102
    } //-- void marshal(org.xml.sax.ContentHandler) 
103

    
104
    /**
105
     * Sets the value of field 'HTTP'. The field 'HTTP' has the
106
     * following description: Available HTTP request methods. At
107
     * least "Get" shall be supported.
108
     *  
109
     * 
110
     * @param HTTP the value of field 'HTTP'.
111
     */
112
    public void setHTTP(com.iver.wmsclient.wms_1_3_0.capabilities.HTTP HTTP)
113
    {
114
        this._HTTP = HTTP;
115
    } //-- void setHTTP(com.iver.wmsclient.wms_1_3_0.capabilities.HTTP) 
116

    
117
    /**
118
     * Method unmarshal
119
     * 
120
     * @param reader
121
     */
122
    public static java.lang.Object unmarshal(java.io.Reader reader)
123
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
124
    {
125
        return (com.iver.wmsclient.wms_1_3_0.capabilities.DCPType) Unmarshaller.unmarshal(com.iver.wmsclient.wms_1_3_0.capabilities.DCPType.class, reader);
126
    } //-- java.lang.Object unmarshal(java.io.Reader) 
127

    
128
    /**
129
     * Method validate
130
     */
131
    public void validate()
132
        throws org.exolab.castor.xml.ValidationException
133
    {
134
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
135
        validator.validate(this);
136
    } //-- void validate() 
137

    
138
}