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 cmisRepositoryEntryType complex type. 20 * 21 * <p>The following schema fragment specifies the expected content contained within this class. 22 * 23 * <pre> 24 * <complexType name="cmisRepositoryEntryType"> 25 * <complexContent> 26 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 27 * <sequence> 28 * <element name="repositoryId" type="{http://www.w3.org/2001/XMLSchema}string"/> 29 * <element name="repositoryName" type="{http://www.w3.org/2001/XMLSchema}string"/> 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 = "cmisRepositoryEntryType", propOrder = { 43 "repositoryId", 44 "repositoryName", 45 "any" 46 }) 47 public class CmisRepositoryEntryType { 48 49 @XmlElement(required = true) 50 protected String repositoryId; 51 @XmlElement(required = true) 52 protected String repositoryName; 53 @XmlAnyElement(lax = true) 54 protected List<Object> any; 55 @XmlAnyAttribute 56 private Map<QName, String> otherAttributes = new HashMap<QName, String>(); 57 58 /** 59 * Gets the value of the repositoryId property. 60 * 61 * @return 62 * possible object is 63 * {@link String } 64 * 65 */ 66 public String getRepositoryId() { 67 return repositoryId; 68 } 69 70 /** 71 * Sets the value of the repositoryId property. 72 * 73 * @param value 74 * allowed object is 75 * {@link String } 76 * 77 */ 78 public void setRepositoryId(String value) { 79 this.repositoryId = value; 80 } 81 82 /** 83 * Gets the value of the repositoryName property. 84 * 85 * @return 86 * possible object is 87 * {@link String } 88 * 89 */ 90 public String getRepositoryName() { 91 return repositoryName; 92 } 93 94 /** 95 * Sets the value of the repositoryName property. 96 * 97 * @param value 98 * allowed object is 99 * {@link String } 100 * 101 */ 102 public void setRepositoryName(String value) { 103 this.repositoryName = value; 104 } 105 106 /** 107 * Gets the value of the any property. 108 * 109 * <p> 110 * This accessor method returns a reference to the live list, 111 * not a snapshot. Therefore any modification you make to the 112 * returned list will be present inside the JAXB object. 113 * This is why there is not a <CODE>set</CODE> method for the any property. 114 * 115 * <p> 116 * For example, to add a new item, do as follows: 117 * <pre> 118 * getAny().add(newItem); 119 * </pre> 120 * 121 * 122 * <p> 123 * Objects of the following type(s) are allowed in the list 124 * {@link Element } 125 * {@link Object } 126 * 127 * 128 */ 129 public List<Object> getAny() { 130 if (any == null) { 131 any = new ArrayList<Object>(); 132 } 133 return this.any; 134 } 135 136 /** 137 * Gets a map that contains attributes that aren't bound to any typed property on this class. 138 * 139 * <p> 140 * the map is keyed by the name of the attribute and 141 * the value is the string value of the attribute. 142 * 143 * the map returned by this method is live, and you can add new attribute 144 * by updating the map directly. Because of this design, there's no setter. 145 * 146 * 147 * @return 148 * always non-null 149 */ 150 public Map<QName, String> getOtherAttributes() { 151 return otherAttributes; 152 } 153 154 }