001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
009: * See the License for the specific language governing
010: * permissions and limitations under the License.
011: *
012: * When distributing Covered Code, include this CDDL
013: * Header Notice in each file and include the License file
014: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015: * If applicable, add the following below the CDDL Header,
016: * with the fields enclosed by brackets [] replaced by
017: * you own identifying information:
018: * "Portions Copyrighted [year] [name of copyright owner]"
019: *
020: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021: */
022:
023: //
024: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0.2-b01-fcs
025: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
026: // Any modifications to this file will be lost upon recompilation of the source schema.
027: // Generated on: 2006.08.10 at 02:34:36 PM IST
028: //
029:
030: package com.sun.xml.ws.security.secext10;
031:
032: import java.util.HashMap;
033: import java.util.Map;
034: import javax.xml.bind.annotation.XmlAccessType;
035: import javax.xml.bind.annotation.XmlAccessorType;
036: import javax.xml.bind.annotation.XmlAnyAttribute;
037: import javax.xml.bind.annotation.XmlAttribute;
038: import javax.xml.bind.annotation.XmlID;
039: import javax.xml.bind.annotation.XmlType;
040: import javax.xml.bind.annotation.XmlValue;
041: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
042: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
043: import javax.xml.namespace.QName;
044:
045: /**
046: * This type represents an element with arbitrary attributes.
047: *
048: * <p>Java class for AttributedString complex type.
049: *
050: * <p>The following schema fragment specifies the expected content contained within this class.
051: *
052: * <pre>
053: * <complexType name="AttributedString">
054: * <simpleContent>
055: * <extension base="<http://www.w3.org/2001/XMLSchema>string">
056: * <attribute ref="{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Id"/>
057: * </extension>
058: * </simpleContent>
059: * </complexType>
060: * </pre>
061: *
062: *
063: */
064: @XmlAccessorType(XmlAccessType.FIELD)
065: @XmlType(name="AttributedString",propOrder={"value"})
066: public class AttributedString {
067:
068: @XmlValue
069: protected String value;
070: @XmlAttribute(name="Id",namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd")
071: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
072: @XmlID
073: protected String id;
074: @XmlAnyAttribute
075: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
076:
077: /**
078: * Gets the value of the id property.
079: *
080: * @return
081: * possible object is
082: * {@link String }
083: *
084: */
085: public String getId() {
086: return id;
087: }
088:
089: /**
090: * Sets the value of the id property.
091: *
092: * @param value
093: * allowed object is
094: * {@link String }
095: *
096: */
097: public void setId(String value) {
098: this .id = value;
099: }
100:
101: /**
102: * Gets a map that contains attributes that aren't bound to any typed property on this class.
103: *
104: * <p>
105: * the map is keyed by the name of the attribute and
106: * the value is the string value of the attribute.
107: *
108: * the map returned by this method is live, and you can add new attribute
109: * by updating the map directly. Because of this design, there's no setter.
110: *
111: *
112: * @return
113: * always non-null
114: */
115: public Map<QName, String> getOtherAttributes() {
116: return otherAttributes;
117: }
118:
119: public void setValue(String value) {
120: this .value = value;
121: }
122:
123: public String getValue() {
124: return this.value;
125: }
126: }
|