CodeType.java revision 325
430N/A/*
2362N/A * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
430N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
430N/A *
430N/A * This code is free software; you can redistribute it and/or modify it
430N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
430N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
430N/A *
430N/A * This code is distributed in the hope that it will be useful, but WITHOUT
430N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
430N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
430N/A * version 2 for more details (a copy is included in the LICENSE file that
430N/A * accompanied this code).
430N/A *
430N/A * You should have received a copy of the GNU General Public License version
430N/A * 2 along with this work; if not, write to the Free Software Foundation,
430N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
430N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
430N/A */
430N/A
430N/Apackage com.sun.xml.internal.ws.fault;
430N/A
430N/Aimport javax.xml.bind.annotation.XmlType;
430N/Aimport javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.namespace.QName;
/**
* <pre>
* &lt;env:Code>
* &lt;env:Value>env:Sender&lt;/env:Value>
* &lt;env:Subcode>
* &lt;env:Value>m:MessageTimeout1&lt;/env:Value>
* &lt;env:Subcode>
* &lt;env:Value>m:MessageTimeout2&lt;/env:Value>
* &lt;/env:Subcode>
* &lt;/env:Subcode>
* &lt;/env:Code>
* </pre>
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CodeType", namespace = "http://www.w3.org/2003/05/soap-envelope", propOrder = {
"Value",
"Subcode"
})
class CodeType {
@XmlTransient
private static final String ns="http://www.w3.org/2003/05/soap-envelope";
/**
* mandatory, minOccurs=1
*/
@XmlElement(namespace = ns)
private QName Value;
/**
* optional, minOcccurs=0, maxOccurs="1"
*/
@XmlElement(namespace = ns)
private SubcodeType Subcode;
CodeType(QName value) {
Value = value;
}
CodeType() {
}
QName getValue(){
return Value;
}
SubcodeType getSubcode(){
return Subcode;
}
void setSubcode(SubcodeType subcode) {
Subcode = subcode;
}
}