| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||||||
| HistoryList |
|
| 0.0;0 |
| 1 | // |
|
| 2 | // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b52-fcs |
|
| 3 | // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> |
|
| 4 | // Any modifications to this file will be lost upon recompilation of the source schema. |
|
| 5 | // Generated on: 2007.09.26 at 09:37:45 PM IST |
|
| 6 | // |
|
| 7 | ||
| 8 | ||
| 9 | package org.xmlhammer.model.preferences; |
|
| 10 | ||
| 11 | import java.util.ArrayList; |
|
| 12 | import java.util.List; |
|
| 13 | import javax.xml.bind.annotation.XmlAccessType; |
|
| 14 | import javax.xml.bind.annotation.XmlAccessorType; |
|
| 15 | import javax.xml.bind.annotation.XmlAttribute; |
|
| 16 | import javax.xml.bind.annotation.XmlElement; |
|
| 17 | import javax.xml.bind.annotation.XmlType; |
|
| 18 | ||
| 19 | ||
| 20 | /** |
|
| 21 | * <p>Java class for historyList complex type. |
|
| 22 | * |
|
| 23 | * <p>The following schema fragment specifies the expected content contained within this class. |
|
| 24 | * |
|
| 25 | * <pre> |
|
| 26 | * <complexType name="historyList"> |
|
| 27 | * <complexContent> |
|
| 28 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|
| 29 | * <sequence maxOccurs="unbounded" minOccurs="0"> |
|
| 30 | * <element name="value" type="{http://www.w3.org/2001/XMLSchema}string"/> |
|
| 31 | * </sequence> |
|
| 32 | * <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}int" default="10" /> |
|
| 33 | * </restriction> |
|
| 34 | * </complexContent> |
|
| 35 | * </complexType> |
|
| 36 | * </pre> |
|
| 37 | * |
|
| 38 | * |
|
| 39 | */ |
|
| 40 | @XmlAccessorType(XmlAccessType.FIELD) |
|
| 41 | @XmlType(name = "historyList", propOrder = { |
|
| 42 | "value" |
|
| 43 | }) |
|
| 44 | 14784 | public class HistoryList { |
| 45 | ||
| 46 | @XmlElement(namespace = "http://www.xmlhammer.org/2007/preferences", required = true) |
|
| 47 | protected List<String> value; |
|
| 48 | @XmlAttribute |
|
| 49 | protected Integer size; |
|
| 50 | ||
| 51 | /** |
|
| 52 | * Gets the value of the value property. |
|
| 53 | * |
|
| 54 | * <p> |
|
| 55 | * This accessor method returns a reference to the live list, |
|
| 56 | * not a snapshot. Therefore any modification you make to the |
|
| 57 | * returned list will be present inside the JAXB object. |
|
| 58 | * This is why there is not a <CODE>set</CODE> method for the value property. |
|
| 59 | * |
|
| 60 | * <p> |
|
| 61 | * For example, to add a new item, do as follows: |
|
| 62 | * <pre> |
|
| 63 | * getValue().add(newItem); |
|
| 64 | * </pre> |
|
| 65 | * |
|
| 66 | * |
|
| 67 | * <p> |
|
| 68 | * Objects of the following type(s) are allowed in the list |
|
| 69 | * {@link String } |
|
| 70 | * |
|
| 71 | * |
|
| 72 | */ |
|
| 73 | public List<String> getValue() { |
|
| 74 | 968 | if (value == null) { |
| 75 | 506 | value = new ArrayList<String>(); |
| 76 | } |
|
| 77 | 968 | return this.value; |
| 78 | } |
|
| 79 | ||
| 80 | /** |
|
| 81 | * Gets the value of the size property. |
|
| 82 | * |
|
| 83 | * @return |
|
| 84 | * possible object is |
|
| 85 | * {@link Integer } |
|
| 86 | * |
|
| 87 | */ |
|
| 88 | public int getSize() { |
|
| 89 | 462 | if (size == null) { |
| 90 | 0 | return 10; |
| 91 | } else { |
|
| 92 | 462 | return size; |
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Sets the value of the size property. |
|
| 98 | * |
|
| 99 | * @param value |
|
| 100 | * allowed object is |
|
| 101 | * {@link Integer } |
|
| 102 | * |
|
| 103 | */ |
|
| 104 | public void setSize(Integer value) { |
|
| 105 | 14784 | this.size = value; |
| 106 | 14784 | } |
| 107 | ||
| 108 | } |