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