This project has retired. For details please refer to its Attic page.
CmisChoice xref

1   
2   package org.apache.chemistry.opencmis.commons.impl.jaxb;
3   
4   import java.util.HashMap;
5   import java.util.Map;
6   import javax.xml.bind.annotation.XmlAccessType;
7   import javax.xml.bind.annotation.XmlAccessorType;
8   import javax.xml.bind.annotation.XmlAnyAttribute;
9   import javax.xml.bind.annotation.XmlAttribute;
10  import javax.xml.bind.annotation.XmlSchemaType;
11  import javax.xml.bind.annotation.XmlSeeAlso;
12  import javax.xml.bind.annotation.XmlType;
13  import javax.xml.namespace.QName;
14  
15  
16  /**
17   * <p>Java class for cmisChoice complex type.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * 
21   * <pre>
22   * &lt;complexType name="cmisChoice">
23   *   &lt;complexContent>
24   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25   *       &lt;attGroup ref="{http://docs.oasis-open.org/ns/cmis/core/200908/}cmisUndefinedAttribute"/>
26   *       &lt;attribute name="displayName" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
27   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
28   *     &lt;/restriction>
29   *   &lt;/complexContent>
30   * &lt;/complexType>
31   * </pre>
32   * 
33   * 
34   */
35  @XmlAccessorType(XmlAccessType.FIELD)
36  @XmlType(name = "cmisChoice", namespace = "http://docs.oasis-open.org/ns/cmis/core/200908/")
37  @XmlSeeAlso({
38      CmisChoiceHtml.class,
39      CmisChoiceInteger.class,
40      CmisChoiceDecimal.class,
41      CmisChoiceString.class,
42      CmisChoiceDateTime.class,
43      CmisChoiceId.class,
44      CmisChoiceBoolean.class,
45      CmisChoiceUri.class
46  })
47  public class CmisChoice {
48  
49      @XmlAttribute(required = true)
50      @XmlSchemaType(name = "anySimpleType")
51      protected String displayName;
52      @XmlAnyAttribute
53      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
54  
55      /**
56       * Gets the value of the displayName property.
57       * 
58       * @return
59       *     possible object is
60       *     {@link String }
61       *     
62       */
63      public String getDisplayName() {
64          return displayName;
65      }
66  
67      /**
68       * Sets the value of the displayName property.
69       * 
70       * @param value
71       *     allowed object is
72       *     {@link String }
73       *     
74       */
75      public void setDisplayName(String value) {
76          this.displayName = value;
77      }
78  
79      /**
80       * Gets a map that contains attributes that aren't bound to any typed property on this class.
81       * 
82       * <p>
83       * the map is keyed by the name of the attribute and 
84       * the value is the string value of the attribute.
85       * 
86       * the map returned by this method is live, and you can add new attribute
87       * by updating the map directly. Because of this design, there's no setter.
88       * 
89       * 
90       * @return
91       *     always non-null
92       */
93      public Map<QName, String> getOtherAttributes() {
94          return otherAttributes;
95      }
96  
97  }