View Javadoc

1   /*
2    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3    *
4    * Copyright (c) 2009-2010 Oracle and/or its affiliates. All rights reserved.
5    *
6    * The contents of this file are subject to the terms of either the GNU
7    * General Public License Version 2 only ("GPL") or the Common Development
8    * and Distribution License("CDDL") (collectively, the "License").  You
9    * may not use this file except in compliance with the License.  You can
10   * obtain a copy of the License at
11   * https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
12   * or packager/legal/LICENSE.txt.  See the License for the specific
13   * language governing permissions and limitations under the License.
14   *
15   * When distributing the software, include this License Header Notice in each
16   * file and include the License file at packager/legal/LICENSE.txt.
17   *
18   * GPL Classpath Exception:
19   * Oracle designates this particular file as subject to the "Classpath"
20   * exception as provided by Oracle in the GPL Version 2 section of the License
21   * file that accompanied this code.
22   *
23   * Modifications:
24   * If applicable, add the following below the License Header, with the fields
25   * enclosed by brackets [] replaced by your own identifying information:
26   * "Portions Copyright [year] [name of copyright owner]"
27   *
28   * Contributor(s):
29   * If you wish your version of this file to be governed by only the CDDL or
30   * only the GPL Version 2, indicate your decision by adding "[Contributor]
31   * elects to include this software in this distribution under the [CDDL or GPL
32   * Version 2] license."  If you don't indicate a single choice of license, a
33   * recipient has the option to distribute your version of this file under
34   * either the CDDL, the GPL Version 2 or to extend the choice of license to
35   * its licensees as provided above.  However, if you add GPL Version 2 code
36   * and therefore, elected the GPL Version 2 license, then the option applies
37   * only if the new code is made subject to such option by the copyright
38   * holder.
39   */
40  
41  package com.sun.grizzly.http.webxml.schema.version_2_3;
42  
43  import java.beans.PropertyVetoException;
44  import java.beans.VetoableChangeListener;
45  import java.beans.VetoableChangeSupport;
46  import java.io.Serializable;
47  import javax.xml.bind.annotation.XmlAccessType;
48  import javax.xml.bind.annotation.XmlAccessorType;
49  import javax.xml.bind.annotation.XmlAttribute;
50  import javax.xml.bind.annotation.XmlID;
51  import javax.xml.bind.annotation.XmlRootElement;
52  import javax.xml.bind.annotation.XmlTransient;
53  import javax.xml.bind.annotation.XmlType;
54  import javax.xml.bind.annotation.XmlValue;
55  import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
56  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
57  
58  
59  /**
60   * 
61   */
62  @XmlAccessorType(XmlAccessType.FIELD)
63  @XmlType(name = "", propOrder = {
64      "value"
65  })
66  @XmlRootElement(name = "description")
67  public class Description
68      implements Serializable
69  {
70  
71      private final static long serialVersionUID = 1L;
72      @XmlAttribute
73      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
74      @XmlID
75      protected String id;
76      @XmlValue
77      protected String value;
78      @XmlTransient
79      private VetoableChangeSupport support = (new VetoableChangeSupport(this));
80  
81      /**
82       * Gets the value of the id property.
83       * 
84       * @return
85       *     possible object is
86       *     {@link String }
87       *     
88       */
89      public String getId() {
90          return id;
91      }
92  
93      /**
94       * Sets the value of the id property.
95       * 
96       * @param value
97       *     allowed object is
98       *     {@link String }
99       *     
100      */
101     public void setId(String value) {
102         try {
103             support.fireVetoableChange("Id",id, value);
104         } catch (PropertyVetoException _x) {
105             return;
106         }
107         this.id = value;
108     }
109 
110     /**
111      * Gets the value of the value property.
112      * 
113      * @return
114      *     possible object is
115      *     {@link String }
116      *     
117      */
118     public String getvalue() {
119         return value;
120     }
121 
122     /**
123      * Sets the value of the value property.
124      * 
125      * @param value
126      *     allowed object is
127      *     {@link String }
128      *     
129      */
130     public void setvalue(String value) {
131         try {
132             support.fireVetoableChange("value",value, value);
133         } catch (PropertyVetoException _x) {
134             return;
135         }
136         this.value = value;
137     }
138 
139     public void addVetoableChangeListener(VetoableChangeListener param0) {
140         support.addVetoableChangeListener(param0);
141     }
142 
143     public void addVetoableChangeListener(String param0, VetoableChangeListener param1) {
144         support.addVetoableChangeListener(param0, param1);
145     }
146 
147     public void removeVetoableChangeListener(String param0, VetoableChangeListener param1) {
148         support.removeVetoableChangeListener(param0, param1);
149     }
150 
151     public void removeVetoableChangeListener(VetoableChangeListener param0) {
152         support.removeVetoableChangeListener(param0);
153     }
154 
155 }