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.XmlType; 9 10 11 /** 12 * <p>Java class for cmisPropertyUriDefinitionType complex type. 13 * 14 * <p>The following schema fragment specifies the expected content contained within this class. 15 * 16 * <pre> 17 * <complexType name="cmisPropertyUriDefinitionType"> 18 * <complexContent> 19 * <extension base="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyDefinitionType"> 20 * <sequence> 21 * <element name="defaultValue" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisPropertyUri" minOccurs="0"/> 22 * <element name="choice" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisChoiceUri" maxOccurs="unbounded" minOccurs="0"/> 23 * </sequence> 24 * <anyAttribute processContents='lax' namespace='##other'/> 25 * </extension> 26 * </complexContent> 27 * </complexType> 28 * </pre> 29 * 30 * 31 */ 32 @XmlAccessorType(XmlAccessType.FIELD) 33 @XmlType(name = "cmisPropertyUriDefinitionType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = { 34 "defaultValue", 35 "choice" 36 }) 37 public class CmisPropertyUriDefinitionType 38 extends CmisPropertyDefinitionType 39 { 40 41 protected CmisPropertyUri defaultValue; 42 protected List<CmisChoiceUri> choice; 43 44 /** 45 * Gets the value of the defaultValue property. 46 * 47 * @return 48 * possible object is 49 * {@link CmisPropertyUri } 50 * 51 */ 52 public CmisPropertyUri getDefaultValue() { 53 return defaultValue; 54 } 55 56 /** 57 * Sets the value of the defaultValue property. 58 * 59 * @param value 60 * allowed object is 61 * {@link CmisPropertyUri } 62 * 63 */ 64 public void setDefaultValue(CmisPropertyUri value) { 65 this.defaultValue = value; 66 } 67 68 /** 69 * Gets the value of the choice property. 70 * 71 * <p> 72 * This accessor method returns a reference to the live list, 73 * not a snapshot. Therefore any modification you make to the 74 * returned list will be present inside the JAXB object. 75 * This is why there is not a <CODE>set</CODE> method for the choice property. 76 * 77 * <p> 78 * For example, to add a new item, do as follows: 79 * <pre> 80 * getChoice().add(newItem); 81 * </pre> 82 * 83 * 84 * <p> 85 * Objects of the following type(s) are allowed in the list 86 * {@link CmisChoiceUri } 87 * 88 * 89 */ 90 public List<CmisChoiceUri> getChoice() { 91 if (choice == null) { 92 choice = new ArrayList<CmisChoiceUri>(); 93 } 94 return this.choice; 95 } 96 97 }