org.jvnet.wom.api
Interface WSDLExtensible

All Known Implementing Classes:
WSDLBoundFault, WSDLBoundFaultImpl, WSDLBoundInput, WSDLBoundInputImpl, WSDLBoundOperation, WSDLBoundOperationImpl, WSDLBoundOutput, WSDLBoundOutputImpl, WSDLBoundPortType, WSDLBoundPortTypeImpl, WSDLDefinitions, WSDLDefinitionsImpl, WSDLEntity, WSDLFault, WSDLFaultImpl, WSDLInput, WSDLInputImpl, WSDLMessage, WSDLMessageImpl, WSDLOperation, WSDLOperationImpl, WSDLOutput, WSDLOutputImpl, WSDLPart, WSDLPartImpl, WSDLPort, WSDLPortImpl, WSDLPortType, WSDLPortTypeImpl, WSDLService, WSDLServiceImpl, WSDLTypes, WSDLTypesImpl

public interface WSDLExtensible

Interface that represents WSDL concepts that can have extensions.

Author:
Vivek Pandey, Kohsuke Kawaguchi

Method Summary
 void addExtension(java.util.Collection<WSDLExtension> extension)
          Adds a new WSDLExtension to this object.
<T extends WSDLExtension>
java.util.Collection<T>
getExtension(java.lang.Class<T> type)
          Gets the extension that is assignable to the given type.
 java.lang.Iterable<WSDLExtension> getExtensions()
          Gets all the WSDLExtensions added through #addExtension(Collection).
 

Method Detail

getExtensions

java.lang.Iterable<WSDLExtension> getExtensions()
Gets all the WSDLExtensions added through #addExtension(Collection).

Returns:
never null.

getExtension

<T extends WSDLExtension> java.util.Collection<T> getExtension(java.lang.Class<T> type)
Gets the extension that is assignable to the given type.

This is just a convenient version that does

 Iterator itr = getExtensions(type);
 if(itr.hasNext())  return itr.next();
 else               return null;
 

Returns:
null if the extension was not found.

addExtension

void addExtension(java.util.Collection<WSDLExtension> extension)
Adds a new WSDLExtension to this object.

Parameters:
extension - must not be null.


Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved.