1
2 package org.apache.chemistry.opencmis.commons.impl.jaxb;
3
4 import java.util.ArrayList;
5 import java.util.HashMap;
6 import java.util.List;
7 import java.util.Map;
8 import javax.xml.bind.annotation.XmlAccessType;
9 import javax.xml.bind.annotation.XmlAccessorType;
10 import javax.xml.bind.annotation.XmlAnyAttribute;
11 import javax.xml.bind.annotation.XmlAnyElement;
12 import javax.xml.bind.annotation.XmlElement;
13 import javax.xml.bind.annotation.XmlType;
14 import javax.xml.namespace.QName;
15 import org.w3c.dom.Element;
16
17
18 /**
19 * <p>Java class for cmisObjectParentsType complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * <complexType name="cmisObjectParentsType">
25 * <complexContent>
26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * <sequence>
28 * <element name="object" type="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisObjectType"/>
29 * <element name="relativePathSegment" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
30 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
31 * </sequence>
32 * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisUndefinedAttribute"/>
33 * <anyAttribute processContents='lax' namespace='##other'/>
34 * </restriction>
35 * </complexContent>
36 * </complexType>
37 * </pre>
38 *
39 *
40 */
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "cmisObjectParentsType", propOrder = {
43 "object",
44 "relativePathSegment",
45 "any"
46 })
47 public class CmisObjectParentsType {
48
49 @XmlElement(required = true)
50 protected CmisObjectType object;
51 protected String relativePathSegment;
52 @XmlAnyElement(lax = true)
53 protected List<Object> any;
54 @XmlAnyAttribute
55 private Map<QName, String> otherAttributes = new HashMap<QName, String>();
56
57 /**
58 * Gets the value of the object property.
59 *
60 * @return
61 * possible object is
62 * {@link CmisObjectType }
63 *
64 */
65 public CmisObjectType getObject() {
66 return object;
67 }
68
69 /**
70 * Sets the value of the object property.
71 *
72 * @param value
73 * allowed object is
74 * {@link CmisObjectType }
75 *
76 */
77 public void setObject(CmisObjectType value) {
78 this.object = value;
79 }
80
81 /**
82 * Gets the value of the relativePathSegment property.
83 *
84 * @return
85 * possible object is
86 * {@link String }
87 *
88 */
89 public String getRelativePathSegment() {
90 return relativePathSegment;
91 }
92
93 /**
94 * Sets the value of the relativePathSegment property.
95 *
96 * @param value
97 * allowed object is
98 * {@link String }
99 *
100 */
101 public void setRelativePathSegment(String value) {
102 this.relativePathSegment = value;
103 }
104
105 /**
106 * Gets the value of the any property.
107 *
108 * <p>
109 * This accessor method returns a reference to the live list,
110 * not a snapshot. Therefore any modification you make to the
111 * returned list will be present inside the JAXB object.
112 * This is why there is not a <CODE>set</CODE> method for the any property.
113 *
114 * <p>
115 * For example, to add a new item, do as follows:
116 * <pre>
117 * getAny().add(newItem);
118 * </pre>
119 *
120 *
121 * <p>
122 * Objects of the following type(s) are allowed in the list
123 * {@link Element }
124 * {@link Object }
125 *
126 *
127 */
128 public List<Object> getAny() {
129 if (any == null) {
130 any = new ArrayList<Object>();
131 }
132 return this.any;
133 }
134
135 /**
136 * Gets a map that contains attributes that aren't bound to any typed property on this class.
137 *
138 * <p>
139 * the map is keyed by the name of the attribute and
140 * the value is the string value of the attribute.
141 *
142 * the map returned by this method is live, and you can add new attribute
143 * by updating the map directly. Because of this design, there's no setter.
144 *
145 *
146 * @return
147 * always non-null
148 */
149 public Map<QName, String> getOtherAttributes() {
150 return otherAttributes;
151 }
152
153 }