com.sun.tools.ws.wsdl.document.soap.SOAPFault Maven / Gradle / Ivy
/*
* The contents of this file are subject to the terms
* of the Common Development and Distribution License
* (the License). You may not use this file except in
* compliance with the License.
*
* You can obtain a copy of the license at
* https://glassfish.dev.java.net/public/CDDLv1.0.html.
* See the License for the specific language governing
* permissions and limitations under the License.
*
* When distributing Covered Code, include this CDDL
* Header Notice in each file and include the License file
* at https://glassfish.dev.java.net/public/CDDLv1.0.html.
* If applicable, add the following below the CDDL Header,
* with the fields enclosed by brackets [] replaced by
* you own identifying information:
* "Portions Copyrighted [year] [name of copyright owner]"
*
* Copyright 2006 Sun Microsystems Inc. All Rights Reserved
*/
package com.sun.tools.ws.wsdl.document.soap;
import com.sun.tools.ws.wsdl.framework.ExtensionImpl;
import org.xml.sax.Locator;
import javax.xml.namespace.QName;
/**
* A SOAP fault extension.
*
* @author WS Development Team
*/
public class SOAPFault extends ExtensionImpl {
public SOAPFault(Locator locator) {
super(locator);
_use = SOAPUse.LITERAL;
}
public QName getElementName() {
return SOAPConstants.QNAME_FAULT;
}
public String getName() {
return _name;
}
public void setName(String s) {
_name = s;
}
public String getNamespace() {
return _namespace;
}
public void setNamespace(String s) {
_namespace = s;
}
public SOAPUse getUse() {
return _use;
}
public void setUse(SOAPUse u) {
_use = u;
}
public boolean isEncoded() {
return _use == SOAPUse.ENCODED;
}
public boolean isLiteral() {
return _use == SOAPUse.LITERAL;
}
public String getEncodingStyle() {
return _encodingStyle;
}
public void setEncodingStyle(String s) {
_encodingStyle = s;
}
public void validateThis() {
}
private String _name;
private String _encodingStyle;
private String _namespace;
private SOAPUse _use = SOAPUse.LITERAL;
}