com.ibm.wsdl.extensions.soap.SOAPFaultImpl Maven / Gradle / Ivy
/*
* (c) Copyright IBM Corp 2001, 20054
*/
package com.ibm.wsdl.extensions.soap;
import java.util.*;
import javax.wsdl.extensions.soap.*;
import javax.xml.namespace.*;
/**
* @author Matthew J. Duftler ([email protected])
*/
public class SOAPFaultImpl implements SOAPFault
{
protected QName elementType = SOAPConstants.Q_ELEM_SOAP_FAULT;
protected Boolean required = null;
protected String name = null;
protected String use = null;
protected List encodingStyles = null;
protected String namespaceURI = null;
public static final long serialVersionUID = 1;
/**
* Set the type of this extensibility element.
*
* @param elementType the type
*/
public void setElementType(QName elementType)
{
this.elementType = elementType;
}
/**
* Get the type of this extensibility element.
*
* @return the extensibility element's type
*/
public QName getElementType()
{
return elementType;
}
/**
* Set whether or not the semantics of this extension
* are required. Relates to the wsdl:required attribute.
*/
public void setRequired(Boolean required)
{
this.required = required;
}
/**
* Get whether or not the semantics of this extension
* are required. Relates to the wsdl:required attribute.
*/
public Boolean getRequired()
{
return required;
}
/**
* Set the name for this SOAP fault.
*
* @param name the desired name
*/
public void setName(String name)
{
this.name = name;
}
/**
* Get the name for this SOAP fault.
*/
public String getName()
{
return name;
}
/**
* Set the use for this SOAP fault.
*
* @param use the desired use
*/
public void setUse(String use)
{
this.use = use;
}
/**
* Get the use for this SOAP fault.
*/
public String getUse()
{
return use;
}
/**
* Set the encodingStyles for this SOAP fault.
*
* @param encodingStyles the desired encodingStyles
*/
public void setEncodingStyles(List encodingStyles)
{
this.encodingStyles = encodingStyles;
}
/**
* Get the encodingStyles for this SOAP fault.
*/
public List getEncodingStyles()
{
return encodingStyles;
}
/**
* Set the namespace URI for this SOAP fault.
*
* @param namespaceURI the desired namespace URI
*/
public void setNamespaceURI(String namespaceURI)
{
this.namespaceURI = namespaceURI;
}
/**
* Get the namespace URI for this SOAP fault.
*/
public String getNamespaceURI()
{
return namespaceURI;
}
public String toString()
{
StringBuffer strBuf = new StringBuffer();
strBuf.append("SOAPFault (" + elementType + "):");
strBuf.append("\nrequired=" + required);
if (name != null)
{
strBuf.append("\nname=" + name);
}
if (use != null)
{
strBuf.append("\nuse=" + use);
}
if (encodingStyles != null)
{
strBuf.append("\nencodingStyles=" + encodingStyles);
}
if (namespaceURI != null)
{
strBuf.append("\nnamespaceURI=" + namespaceURI);
}
return strBuf.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy