[Java] 天气 →→→→→进入此内容的聊天室

来自 , 2020-08-21, 写在 Java, 查看 120 次.
URL http://www.code666.cn/view/b132ecc1
  1. package dhw.wyn.sunshine;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5. import javax.xml.bind.annotation.XmlAccessType;
  6. import javax.xml.bind.annotation.XmlAccessorType;
  7. import javax.xml.bind.annotation.XmlElement;
  8. import javax.xml.bind.annotation.XmlType;
  9.  
  10.  
  11. /**
  12.  * <p>Java class for ArrayOfString complex type.
  13.  *
  14.  * <p>The following schema fragment specifies the expected content contained within this class.
  15.  *
  16.  * <pre>
  17.  * <complexType name="ArrayOfString">
  18.  *   <complexContent>
  19.  *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
  20.  *       <sequence>
  21.  *         <element name="string" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
  22.  *       </sequence>
  23.  *     </restriction>
  24.  *   </complexContent>
  25.  * </complexType>
  26.  * </pre>
  27.  *
  28.  *
  29.  */
  30. @XmlAccessorType(XmlAccessType.FIELD)
  31. @XmlType(name = "ArrayOfString", propOrder = {
  32.     "string"
  33. })
  34. public class ArrayOfString {
  35.  
  36.     @XmlElement(nillable = true)
  37.     protected List<String> string;
  38.  
  39.     /**
  40.      * Gets the value of the string property.
  41.      *
  42.      * <p>
  43.      * This accessor method returns a reference to the live list,
  44.      * not a snapshot. Therefore any modification you make to the
  45.      * returned list will be present inside the JAXB object.
  46.      * This is why there is not a <CODE>set</CODE> method for the string property.
  47.      *
  48.      * <p>
  49.      * For example, to add a new item, do as follows:
  50.      * <pre>
  51.      *    getString().add(newItem);
  52.      * </pre>
  53.      *
  54.      *
  55.      * <p>
  56.      * Objects of the following type(s) are allowed in the list
  57.      * {@link String }
  58.      *
  59.      *
  60.      */
  61.     public List<String> getString() {
  62.         if (string == null) {
  63.             string = new ArrayList<String>();
  64.         }
  65.         return this.string;
  66.     }
  67.  
  68. }
  69.  

回复 "天气"

这儿你可以回复上面这条便签

captcha