1 2 package org.apache.chemistry.opencmis.commons.impl.jaxb; 3 4 import java.math.BigInteger; 5 import java.util.ArrayList; 6 import java.util.List; 7 import javax.xml.bind.annotation.XmlAccessType; 8 import javax.xml.bind.annotation.XmlAccessorType; 9 import javax.xml.bind.annotation.XmlType; 10 11 12 /** 13 * <p>Java class for cmisChoiceInteger complex type. 14 * 15 * <p>The following schema fragment specifies the expected content contained within this class. 16 * 17 * <pre> 18 * <complexType name="cmisChoiceInteger"> 19 * <complexContent> 20 * <extension base="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisChoice"> 21 * <sequence> 22 * <element name="value" type="{http://www.w3.org/2001/XMLSchema}integer" maxOccurs="unbounded" minOccurs="0"/> 23 * <element name="choice" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisChoiceInteger" maxOccurs="unbounded" minOccurs="0"/> 24 * </sequence> 25 * <anyAttribute processContents='lax' namespace='##other'/> 26 * </extension> 27 * </complexContent> 28 * </complexType> 29 * </pre> 30 * 31 * 32 */ 33 @XmlAccessorType(XmlAccessType.FIELD) 34 @XmlType(name = "cmisChoiceInteger", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = { 35 "value", 36 "choice" 37 }) 38 public class CmisChoiceInteger 39 extends CmisChoice 40 { 41 42 protected List<BigInteger> value; 43 protected List<CmisChoiceInteger> choice; 44 45 /** 46 * Gets the value of the value property. 47 * 48 * <p> 49 * This accessor method returns a reference to the live list, 50 * not a snapshot. Therefore any modification you make to the 51 * returned list will be present inside the JAXB object. 52 * This is why there is not a <CODE>set</CODE> method for the value property. 53 * 54 * <p> 55 * For example, to add a new item, do as follows: 56 * <pre> 57 * getValue().add(newItem); 58 * </pre> 59 * 60 * 61 * <p> 62 * Objects of the following type(s) are allowed in the list 63 * {@link BigInteger } 64 * 65 * 66 */ 67 public List<BigInteger> getValue() { 68 if (value == null) { 69 value = new ArrayList<BigInteger>(); 70 } 71 return this.value; 72 } 73 74 /** 75 * Gets the value of the choice property. 76 * 77 * <p> 78 * This accessor method returns a reference to the live list, 79 * not a snapshot. Therefore any modification you make to the 80 * returned list will be present inside the JAXB object. 81 * This is why there is not a <CODE>set</CODE> method for the choice property. 82 * 83 * <p> 84 * For example, to add a new item, do as follows: 85 * <pre> 86 * getChoice().add(newItem); 87 * </pre> 88 * 89 * 90 * <p> 91 * Objects of the following type(s) are allowed in the list 92 * {@link CmisChoiceInteger } 93 * 94 * 95 */ 96 public List<CmisChoiceInteger> getChoice() { 97 if (choice == null) { 98 choice = new ArrayList<CmisChoiceInteger>(); 99 } 100 return this.choice; 101 } 102 103 }