View Javadoc

1   
2   package org.kuali.student.security.wssecurity.secext.dto;
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.XmlID;
11  import javax.xml.bind.annotation.XmlSchemaType;
12  import javax.xml.bind.annotation.XmlSeeAlso;
13  import javax.xml.bind.annotation.XmlType;
14  import javax.xml.bind.annotation.XmlValue;
15  import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
16  import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
17  import javax.xml.namespace.QName;
18  
19  
20  /**
21   * This type represents an element with arbitrary attributes.
22   * 
23   * <p>Java class for AttributedString complex type.
24   * 
25   * <p>The following schema fragment specifies the expected content contained within this class.
26   * 
27   * <pre>
28   * &lt;complexType name="AttributedString">
29   *   &lt;simpleContent>
30   *     &lt;extension base="&lt;http://www.w3.org/2001/XMLSchema>string">
31   *       &lt;attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
32   *       &lt;anyAttribute processContents='lax' namespace='##other'/>
33   *     &lt;/extension>
34   *   &lt;/simpleContent>
35   * &lt;/complexType>
36   * </pre>
37   * 
38   * 
39   */
40  @XmlAccessorType(XmlAccessType.FIELD)
41  @XmlType(name = "AttributedString", propOrder = {
42      "value"
43  })
44  @XmlSeeAlso({
45      PasswordString.class,
46      EncodedString.class
47  })
48  public class AttributedString {
49  
50      @XmlValue
51      protected String value;
52      @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
53      @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
54      @XmlID
55      @XmlSchemaType(name = "ID")
56      protected String id;
57      @XmlAnyAttribute
58      private Map<QName, String> otherAttributes = new HashMap<QName, String>();
59  
60      /**
61       * Gets the value of the value property.
62       * 
63       * @return
64       *     possible object is
65       *     {@link String }
66       *     
67       */
68      public String getValue() {
69          return value;
70      }
71  
72      /**
73       * Sets the value of the value property.
74       * 
75       * @param value
76       *     allowed object is
77       *     {@link String }
78       *     
79       */
80      public void setValue(String value) {
81          this.value = value;
82      }
83  
84      /**
85       * Gets the value of the id property.
86       * 
87       * @return
88       *     possible object is
89       *     {@link String }
90       *     
91       */
92      public String getId() {
93          return id;
94      }
95  
96      /**
97       * Sets the value of the id property.
98       * 
99       * @param value
100      *     allowed object is
101      *     {@link String }
102      *     
103      */
104     public void setId(String value) {
105         this.id = value;
106     }
107 
108     /**
109      * Gets a map that contains attributes that aren't bound to any typed property on this class.
110      * 
111      * <p>
112      * the map is keyed by the name of the attribute and 
113      * the value is the string value of the attribute.
114      * 
115      * the map returned by this method is live, and you can add new attribute
116      * by updating the map directly. Because of this design, there's no setter.
117      * 
118      * 
119      * @return
120      *     always non-null
121      */
122     public Map<QName, String> getOtherAttributes() {
123         return otherAttributes;
124     }
125 
126 }