Statistics
| Revision:

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

History | View | Annotate | Download (3.53 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: ContactOrganization.java 2956 2005-09-23 08:26:26Z fjp $
6
 */
7

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

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

    
14
import java.io.IOException;
15
import java.io.Reader;
16
import java.io.Serializable;
17
import java.io.Writer;
18
import org.exolab.castor.xml.MarshalException;
19
import org.exolab.castor.xml.Marshaller;
20
import org.exolab.castor.xml.Unmarshaller;
21
import org.exolab.castor.xml.ValidationException;
22
import org.xml.sax.ContentHandler;
23

    
24
/**
25
 * Class ContactOrganization.
26
 * 
27
 * @version $Revision: 2956 $ $Date: 2005-09-23 10:26:26 +0200 (Fri, 23 Sep 2005) $
28
 */
29
public class ContactOrganization implements java.io.Serializable {
30

    
31

    
32
      //--------------------------/
33
     //- Class/Member Variables -/
34
    //--------------------------/
35

    
36
    /**
37
     * internal content storage
38
     */
39
    private java.lang.String _content = "";
40

    
41

    
42
      //----------------/
43
     //- Constructors -/
44
    //----------------/
45

    
46
    public ContactOrganization() {
47
        super();
48
        setContent("");
49
    } //-- com.iver.wmsclient.wms_1_3_0.capabilities.ContactOrganization()
50

    
51

    
52
      //-----------/
53
     //- Methods -/
54
    //-----------/
55

    
56
    /**
57
     * Returns the value of field 'content'. The field 'content'
58
     * has the following description: internal content storage
59
     * 
60
     * @return the value of field 'content'.
61
     */
62
    public java.lang.String getContent()
63
    {
64
        return this._content;
65
    } //-- java.lang.String getContent() 
66

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

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

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

    
105
    /**
106
     * Sets the value of field 'content'. The field 'content' has
107
     * the following description: internal content storage
108
     * 
109
     * @param content the value of field 'content'.
110
     */
111
    public void setContent(java.lang.String content)
112
    {
113
        this._content = content;
114
    } //-- void setContent(java.lang.String) 
115

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

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

    
137
}