javax.wsdl.extensions.UnknownExtensionDeserializer 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 2001, 2005
*/
package javax.wsdl.extensions;
import org.w3c.dom.*;
import javax.wsdl.*;
import javax.xml.namespace.*;
import com.ibm.wsdl.*;
import com.ibm.wsdl.util.xml.*;
/**
* This class is used to deserialize arbitrary elements into
* UnknownExtensibilityElement instances.
*
* @see UnknownExtensibilityElement
* @see UnknownExtensionSerializer
*
* @author Matthew J. Duftler ([email protected])
*/
public class UnknownExtensionDeserializer implements ExtensionDeserializer,
java.io.Serializable
{
public static final long serialVersionUID = 1;
public ExtensibilityElement unmarshall(Class> parentType,
QName elementType,
Element el,
Definition def,
ExtensionRegistry extReg)
throws WSDLException
{
UnknownExtensibilityElement unknownExt = new UnknownExtensibilityElement();
String requiredStr = DOMUtils.getAttributeNS(el,
Constants.NS_URI_WSDL,
Constants.ATTR_REQUIRED);
unknownExt.setElementType(elementType);
if (requiredStr != null)
{
unknownExt.setRequired(Boolean.valueOf(requiredStr));
}
unknownExt.setElement(el);
return unknownExt;
}
}