Package com.sun.xml.ws.api.model.wsdl
Interface WSDLExtensible
- All Superinterfaces:
WSDLObject
- All Known Subinterfaces:
EditableWSDLBoundFault,EditableWSDLBoundOperation,EditableWSDLBoundPortType,EditableWSDLFault,EditableWSDLInput,EditableWSDLMessage,EditableWSDLModel,EditableWSDLOperation,EditableWSDLOutput,EditableWSDLPort,EditableWSDLPortType,EditableWSDLService,WSDLBoundFault,WSDLBoundOperation,WSDLBoundPortType,WSDLFault,WSDLInput,WSDLMessage,WSDLModel,WSDLOperation,WSDLOutput,WSDLPort,WSDLPortType,WSDLService
- All Known Implementing Classes:
WSDLBoundFaultImpl,WSDLBoundOperationImpl,WSDLBoundPortTypeImpl,WSDLFaultImpl,WSDLInputImpl,WSDLMessageImpl,WSDLModelImpl,WSDLOperationImpl,WSDLOutputImpl,WSDLPortImpl,WSDLPortTypeImpl,WSDLServiceImpl
Interface that represents WSDL concepts that
can have extensions.
- Author:
- Vivek Pandey, Kohsuke Kawaguchi
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtension(WSDLExtension extension) Adds a newWSDLExtensionto this object.voidaddNotUnderstoodExtension(QName extnEl, Locator locator) Marks extension as not understoodbooleanTrue if all required WSDL extensions on Port and Binding are understood<T extends WSDLExtension>
TgetExtension(Class<T> type) Gets the extension that is assignable to the given type.Gets all theWSDLExtensions added throughaddExtension(WSDLExtension).<T extends WSDLExtension>
Iterable<T>getExtensions(Class<T> type) Gets all the extensions that is assignable to the given type.List<? extends WSDLExtension>Lists extensions marked as not understoodMethods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject
getLocation
-
Method Details
-
getExtensions
Iterable<WSDLExtension> getExtensions()Gets all theWSDLExtensions added throughaddExtension(WSDLExtension).- Returns:
- never null.
-
getExtensions
Gets all the extensions that is assignable to the given type.This allows clients to find specific extensions in a type-safe and convenient way.
- Parameters:
type- The type of the extension to obtain. Must not be null.- Returns:
- Can be an empty fromjava.collection but never null.
-
getExtension
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
Adds a newWSDLExtensionto this object.- Parameters:
extension- must not be null.
-
areRequiredExtensionsUnderstood
boolean areRequiredExtensionsUnderstood()True if all required WSDL extensions on Port and Binding are understood- Returns:
- true if all wsdl required extensions on Port and Binding are understood
-
addNotUnderstoodExtension
Marks extension as not understood- Parameters:
extnEl- QName of extensionlocator- Locator
-
getNotUnderstoodExtensions
List<? extends WSDLExtension> getNotUnderstoodExtensions()Lists extensions marked as not understood- Returns:
- List of not understood extensions
-