Mercurial > repos > ganjoo > webservice_toolsuite
diff WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/extensions/ExtensionDeserializer.java @ 0:d5cd409b8a18 default tip
Migrated tool version 1.0.0 from old tool shed archive to new tool shed repository
author | ganjoo |
---|---|
date | Tue, 07 Jun 2011 18:00:50 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WebServiceToolWorkflow/lib/SAWADLParser/src/javax/wadls/extensions/ExtensionDeserializer.java Tue Jun 07 18:00:50 2011 -0400 @@ -0,0 +1,44 @@ +/* + * (c) Copyright IBM Corp 2001, 2005 + */ + +package javax.wadls.extensions; + +import org.w3c.dom.*; + +import javax.wadls.*; +import javax.xml.namespace.*; + +/** + * This interface should be implemented by classes which deserialize + * org.w3c.dom.Elements into extension-specific instances of + * ExtensibilityElement. + * + * @author Matthew J. Duftler (duftler@us.ibm.com) + */ +public interface ExtensionDeserializer +{ + /** + * This method deserializes elements into instances of classes + * which implement the ExtensibilityElement interface. The + * return value should be explicitly cast to the more-specific + * implementing type. + * + * @param parentType a class object indicating where in the WSDL + * document this extensibility element was encountered. For + * example, javax.wsdls.Binding.class would be used to indicate + * this element was encountered as an immediate child of + * a <wsdl:binding> element. + * @param elementType the qname of the extensibility element + * @param el the extensibility element to deserialize + * @param def the definition this extensibility element was + * encountered in + * @param extReg the ExtensionRegistry to use (if needed again) + */ + public ExtensibilityElement unmarshall(Class parentType, + QName elementType, + Element el, + Application app, + ExtensionRegistry extReg) + throws WADLSException; +} \ No newline at end of file