com.ibm.wsdl.extensions.soap12.SOAP12AddressImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libre-wsdl4j Show documentation
Show all versions of libre-wsdl4j Show documentation
Open and Free WSDL library: Web Services Description Language. Libre-wsdl4j is a fork of WSDL4J 1.6.3. WSL4j is a Java stub generator for WSDL. Many software projects still depends on WSL4j, so the idea is that libre-wsdl4j should be an actively maintained version of this software on GitHub. "WSDL, that's an anchronym i haven't heard in almost ten years." Still big in the enterprise world" - comments on the Internet.
The newest version!
/*
* (c) Copyright IBM Corp 2006
*/
package com.ibm.wsdl.extensions.soap12;
import javax.wsdl.extensions.soap12.*;
import javax.xml.namespace.*;
/**
* Copied from com.ibm.wsdl.extensions.soap.SOAPAddressImpl
*/
public class SOAP12AddressImpl implements SOAP12Address
{
protected QName elementType = SOAP12Constants.Q_ELEM_SOAP_ADDRESS;
// Uses the wrapper type so we can tell if it was set or not.
protected Boolean required = null;
protected String locationURI = null;
public static final long serialVersionUID = 1;
/**
* Set the type of this extensibility element.
*
* @param elementType the type
*/
@Override
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.
*/
@Override
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 location URI for this SOAP address.
*
* @param locationURI the desired location URI
*/
@Override
public void setLocationURI(String locationURI)
{
this.locationURI = locationURI;
}
/**
* Get the location URI for this SOAP address.
*/
public String getLocationURI()
{
return locationURI;
}
@Override
public String toString()
{
StringBuffer strBuf = new StringBuffer();
strBuf.append("SOAPAddress (" + elementType + "):");
strBuf.append("\nrequired=" + required);
if (locationURI != null)
{
strBuf.append("\nlocationURI=" + locationURI);
}
return strBuf.toString();
}
}