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