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 cmisListOfIdsType complex type. 20 * 21 * <p>The following schema fragment specifies the expected content contained within this class. 22 * 23 * <pre> 24 * <complexType name="cmisListOfIdsType"> 25 * <complexContent> 26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 27 * <sequence> 28 * <element name="id" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> 29 * <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> 30 * </sequence> 31 * <attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisUndefinedAttribute"/> 32 * <anyAttribute processContents='lax' namespace='##other'/> 33 * </restriction> 34 * </complexContent> 35 * </complexType> 36 * </pre> 37 * 38 * 39 */ 40 @XmlAccessorType(XmlAccessType.FIELD) 41 @XmlType(name = "cmisListOfIdsType", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/", propOrder = { 42 "id", 43 "any" 44 }) 45 public class CmisListOfIdsType { 46 47 @XmlElement(required = true) 48 protected List<String> id; 49 @XmlAnyElement(lax = true) 50 protected List<Object> any; 51 @XmlAnyAttribute 52 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 53 54 /** 55 * Gets the value of the id property. 56 * 57 * <p> 58 * This accessor method returns a reference to the live list, 59 * not a snapshot. Therefore any modification you make to the 60 * returned list will be present inside the JAXB object. 61 * This is why there is not a <CODE>set</CODE> method for the id property. 62 * 63 * <p> 64 * For example, to add a new item, do as follows: 65 * <pre> 66 * getId().add(newItem); 67 * </pre> 68 * 69 * 70 * <p> 71 * Objects of the following type(s) are allowed in the list 72 * {@link String } 73 * 74 * 75 */ 76 public List<String> getId() { 77 if (id == null) { 78 id = new ArrayList<String>(); 79 } 80 return this.id; 81 } 82 83 /** 84 * Gets the value of the any property. 85 * 86 * <p> 87 * This accessor method returns a reference to the live list, 88 * not a snapshot. Therefore any modification you make to the 89 * returned list will be present inside the JAXB object. 90 * This is why there is not a <CODE>set</CODE> method for the any property. 91 * 92 * <p> 93 * For example, to add a new item, do as follows: 94 * <pre> 95 * getAny().add(newItem); 96 * </pre> 97 * 98 * 99 * <p> 100 * Objects of the following type(s) are allowed in the list 101 * {@link Element } 102 * {@link Object } 103 * 104 * 105 */ 106 public List<Object> getAny() { 107 if (any == null) { 108 any = new ArrayList<Object>(); 109 } 110 return this.any; 111 } 112 113 /** 114 * Gets a map that contains attributes that aren't bound to any typed property on this class. 115 * 116 * <p> 117 * the map is keyed by the name of the attribute and 118 * the value is the string value of the attribute. 119 * 120 * the map returned by this method is live, and you can add new attribute 121 * by updating the map directly. Because of this design, there's no setter. 122 * 123 * 124 * @return 125 * always non-null 126 */ 127 public Map<QName, String> getOtherAttributes() { 128 return otherAttributes; 129 } 130 131 }