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