1 /**
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19 //
20 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
21 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
22 // Any modifications to this file will be lost upon recompilation of the source schema.
23 // Generated on: 2014.03.27 at 03:31:20 PM GMT
24 //
25
26
27 package org.apache.wss4j.binding.wss10;
28
29 import java.util.HashMap;
30 import java.util.Map;
31 import jakarta.xml.bind.annotation.XmlAccessType;
32 import jakarta.xml.bind.annotation.XmlAccessorType;
33 import jakarta.xml.bind.annotation.XmlAnyAttribute;
34 import jakarta.xml.bind.annotation.XmlAttribute;
35 import jakarta.xml.bind.annotation.XmlID;
36 import jakarta.xml.bind.annotation.XmlSchemaType;
37 import jakarta.xml.bind.annotation.XmlSeeAlso;
38 import jakarta.xml.bind.annotation.XmlType;
39 import jakarta.xml.bind.annotation.XmlValue;
40 import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
41 import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
42 import javax.xml.namespace.QName;
43
44
45 /**
46 * This type represents an element with arbitrary attributes.
47 *
48 * <p>Java class for AttributedString complex type.
49 *
50 * <p>The following schema fragment specifies the expected content contained within this class.
51 *
52 * <pre>
53 * <complexType name="AttributedString">
54 * <simpleContent>
55 * <extension base="<http://www.w3.org/2001/XMLSchema>string">
56 * <attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
57 * <anyAttribute processContents='lax' namespace='##other'/>
58 * </extension>
59 * </simpleContent>
60 * </complexType>
61 * </pre>
62 *
63 *
64 */
65 @XmlAccessorType(XmlAccessType.FIELD)
66 @XmlType(name = "AttributedString", propOrder = {
67 "value"
68 })
69 @XmlSeeAlso({
70 PasswordString.class,
71 EncodedString.class
72 })
73 public class AttributedString {
74
75 @XmlValue
76 private String value;
77 @XmlAttribute(name = "Id", namespace = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
78 @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
79 @XmlID
80 @XmlSchemaType(name = "ID")
81 private String id;
82 @XmlAnyAttribute
83 private Map<QName, String> otherAttributes = new HashMap<>();
84
85 /**
86 * Gets the value of the value property.
87 *
88 * @return
89 * possible object is
90 * {@link String }
91 *
92 */
93 public String getValue() {
94 return value;
95 }
96
97 /**
98 * Sets the value of the value property.
99 *
100 * @param value
101 * allowed object is
102 * {@link String }
103 *
104 */
105 public void setValue(String value) {
106 this.value = value;
107 }
108
109 /**
110 * Gets the value of the id property.
111 *
112 * @return
113 * possible object is
114 * {@link String }
115 *
116 */
117 public String getId() {
118 return id;
119 }
120
121 /**
122 * Sets the value of the id property.
123 *
124 * @param value
125 * allowed object is
126 * {@link String }
127 *
128 */
129 public void setId(String value) {
130 this.id = value;
131 }
132
133 /**
134 * Gets a map that contains attributes that aren't bound to any typed property on this class.
135 *
136 * <p>
137 * the map is keyed by the name of the attribute and
138 * the value is the string value of the attribute.
139 *
140 * the map returned by this method is live, and you can add new attribute
141 * by updating the map directly. Because of this design, there's no setter.
142 *
143 *
144 * @return
145 * always non-null
146 */
147 public Map<QName, String> getOtherAttributes() {
148 return otherAttributes;
149 }
150
151 }