001 //
002 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b11-EA
003 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
004 // Any modifications to this file will be lost upon recompilation of the source schema.
005 // Generated on: 2005.05.06 at 02:17:10 BST
006 //
007
008
009 package org.codehaus.activesoap.policy.addressing;
010
011 import org.codehaus.activesoap.util.QNameHelper;
012 import org.codehaus.activesoap.handler.stax.AnyElementMarshaler;
013
014 import javax.xml.namespace.NamespaceContext;
015 import javax.xml.namespace.QName;
016 import javax.xml.stream.XMLStreamException;
017 import javax.xml.stream.XMLStreamWriter;
018
019 /**
020 * @XmlAccessorType(value = AccessType.FIELD)
021 * @XmlType(name = "AttributedQName", namespace = "http://schemas.xmlsoap.org/ws/2003/03/addressing")
022 */
023 public class AttributedQName extends AnyAttributeSupport {
024
025 /**
026 * @XmlValue
027 */
028 protected QName value;
029
030 /**
031 * Gets the value of the value property.
032 *
033 * @return possible object is
034 * {@link QName}
035 */
036 public QName getValue() {
037 return value;
038 }
039
040 /**
041 * Sets the value of the value property.
042 *
043 * @param value allowed object is
044 * {@link QName}
045 */
046 public void setValue(QName value) {
047 this.value = value;
048 }
049
050 public String toString() {
051 return getClass().getName() + "(" + getValue() + ")";
052 }
053
054 public void putValue(NamespaceContext namespaceContext, String value) {
055 setValue(QNameHelper.asQName(namespaceContext, value));
056 }
057
058 public void writeContent(AnyElementMarshaler marshaler, XMLStreamWriter out) throws XMLStreamException {
059 if (value != null) {
060 out.writeCharacters(QNameHelper.getQualifiedName(value));
061 }
062 }
063 }