public final class WSDLModelImpl extends Object implements EditableWSDLModel
WSDLModel| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractExtensibleImpl.UnknownWSDLExtension |
WSDLModel.WSDLParser| Modifier and Type | Field and Description |
|---|---|
protected Set<WSDLExtension> |
extensions |
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions |
| Constructor and Description |
|---|
WSDLModelImpl()
To create
WSDLModelImpl from WSDL that doesn't have a system ID. |
WSDLModelImpl(String systemId) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBinding(EditableWSDLBoundPortType boundPortType)
Add Binding
|
void |
addExtension(WSDLExtension ex)
Adds a new
WSDLExtension
to this object. |
void |
addMessage(EditableWSDLMessage msg)
Add message
|
void |
addNotUnderstoodExtension(QName extnEl,
Locator locator)
This can be used if a WSDL extension element that has wsdl:required=true
is not understood
|
void |
addPortType(EditableWSDLPortType pt)
Add port type
|
void |
addService(EditableWSDLService svc)
Add service
|
boolean |
areRequiredExtensionsUnderstood()
This method should be called after freezing the WSDLModel
|
void |
finalizeRpcLitBinding(EditableWSDLBoundPortType boundPortType)
Finalize rpc-lit binding
|
void |
freeze()
Invoked at the end of the model construction to fix up references, etc.
|
EditableWSDLBoundPortType |
getBinding(QName name)
Gets
WSDLBoundPortType that models wsdl:binding |
EditableWSDLBoundPortType |
getBinding(QName serviceName,
QName portName)
Give a
WSDLBoundPortType for the given wsdl:service and wsdl:port names. |
Map<QName,? extends EditableWSDLBoundPortType> |
getBindings()
|
<T extends WSDLExtension> |
getExtension(Class<T> type)
Gets the extension that is assignable to the given type.
|
Iterable<WSDLExtension> |
getExtensions()
Gets all the
WSDLExtensions
added through WSDLExtensible.addExtension(WSDLExtension). |
<T extends WSDLExtension> |
getExtensions(Class<T> type)
Gets all the extensions that is assignable to the given type.
|
QName |
getFirstServiceName()
Returns the first service QName from insertion order
|
Locator |
getLocation()
Gets the source location information in the parsed WSDL.
|
EditableWSDLMessage |
getMessage(QName name)
Returns the message with the given QName
|
Map<QName,EditableWSDLMessage> |
getMessages()
Gives a
Map of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesage |
List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> |
getNotUnderstoodExtensions()
Lists extensions marked as not understood
|
com.sun.xml.ws.policy.PolicyMap |
getPolicyMap()
Gives the PolicyMap associated with the WSDLModel
|
EditableWSDLPortType |
getPortType(QName name)
Gets
WSDLPortType that models wsdl:portType |
Map<QName,EditableWSDLPortType> |
getPortTypes()
|
EditableWSDLService |
getService(QName name)
Gets
WSDLService that models wsdl:service |
Map<QName,EditableWSDLService> |
getServices()
Gives a
Map of wsdl:service qualified name and WSDLService |
void |
setPolicyMap(com.sun.xml.ws.policy.PolicyMap policyMap)
Set PolicyMap for the WSDLModel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensionsgetLocationprotected final Set<WSDLExtension> extensions
protected List<AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
public WSDLModelImpl(@NotNull
String systemId)
public WSDLModelImpl()
WSDLModelImpl from WSDL that doesn't have a system ID.public void addMessage(EditableWSDLMessage msg)
EditableWSDLModeladdMessage in interface EditableWSDLModelmsg - Messagepublic EditableWSDLMessage getMessage(QName name)
WSDLModelgetMessage in interface EditableWSDLModelgetMessage in interface WSDLModelname - Message namepublic void addPortType(EditableWSDLPortType pt)
EditableWSDLModeladdPortType in interface EditableWSDLModelpt - Port typepublic EditableWSDLPortType getPortType(QName name)
WSDLModelWSDLPortType that models wsdl:portTypegetPortType in interface EditableWSDLModelgetPortType in interface WSDLModelname - non-null quaified name of wsdl:message, where the localName is the value of wsdl:portType@name and
the namespaceURI is the value of wsdl:definitions@targetNamespaceWSDLPortType or null if no wsdl:portType found.public void addBinding(EditableWSDLBoundPortType boundPortType)
EditableWSDLModeladdBinding in interface EditableWSDLModelboundPortType - Bound port typepublic EditableWSDLBoundPortType getBinding(QName name)
WSDLModelWSDLBoundPortType that models wsdl:bindinggetBinding in interface EditableWSDLModelgetBinding in interface WSDLModelname - non-null quaified name of wsdl:binding, where the localName is the value of wsdl:binding@name and
the namespaceURI is the value of wsdl:definitions@targetNamespaceWSDLBoundPortType or null if no wsdl:binding foundpublic void addService(EditableWSDLService svc)
EditableWSDLModeladdService in interface EditableWSDLModelsvc - Servicepublic EditableWSDLService getService(QName name)
WSDLModelWSDLService that models wsdl:servicegetService in interface EditableWSDLModelgetService in interface WSDLModelname - non-null quaified name of wsdl:service, where the localName is the value of wsdl:service@name and
the namespaceURI is the value of wsdl:definitions@targetNamespaceWSDLService or null if no wsdl:service foundpublic Map<QName,EditableWSDLMessage> getMessages()
WSDLModelMap of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesagegetMessages in interface EditableWSDLModelgetMessages in interface WSDLModel@NotNull public Map<QName,EditableWSDLPortType> getPortTypes()
WSDLModelgetPortTypes in interface EditableWSDLModelgetPortTypes in interface WSDLModel@NotNull public Map<QName,? extends EditableWSDLBoundPortType> getBindings()
WSDLModelgetBindings in interface EditableWSDLModelgetBindings in interface WSDLModel@NotNull public Map<QName,EditableWSDLService> getServices()
WSDLModelMap of wsdl:service qualified name and WSDLServicegetServices in interface EditableWSDLModelgetServices in interface WSDLModelpublic QName getFirstServiceName()
getFirstServiceName in interface WSDLModelpublic EditableWSDLBoundPortType getBinding(QName serviceName, QName portName)
WSDLModelWSDLBoundPortType for the given wsdl:service and wsdl:port names.getBinding in interface EditableWSDLModelgetBinding in interface WSDLModelserviceName - non-null service QNameportName - non-null port QNamepublic void finalizeRpcLitBinding(EditableWSDLBoundPortType boundPortType)
EditableWSDLModelfinalizeRpcLitBinding in interface EditableWSDLModelboundPortType - Bindingpublic com.sun.xml.ws.policy.PolicyMap getPolicyMap()
getPolicyMap in interface WSDLModelpublic void setPolicyMap(com.sun.xml.ws.policy.PolicyMap policyMap)
setPolicyMap in interface EditableWSDLModelpolicyMap - public void freeze()
freeze in interface EditableWSDLModelpublic final Iterable<WSDLExtension> getExtensions()
WSDLExtensibleWSDLExtensions
added through WSDLExtensible.addExtension(WSDLExtension).getExtensions in interface WSDLExtensiblepublic final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
WSDLExtensibleThis allows clients to find specific extensions in a type-safe and convenient way.
getExtensions in interface WSDLExtensibletype - The type of the extension to obtain. Must not be null.public <T extends WSDLExtension> T getExtension(Class<T> type)
WSDLExtensibleThis is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
getExtension in interface WSDLExtensiblepublic void addExtension(WSDLExtension ex)
WSDLExtensibleWSDLExtension
to this object.addExtension in interface WSDLExtensibleex - must not be null.public List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensiblegetNotUnderstoodExtensions in interface WSDLExtensiblepublic void addNotUnderstoodExtension(QName extnEl, Locator locator)
addNotUnderstoodExtension in interface WSDLExtensibleextnEl - locator - public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood in interface WSDLExtensible@NotNull public final Locator getLocation()
WSDLObjectgetLocation in interface WSDLObjectCopyright © 2015 Oracle Corporation. All rights reserved.