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
WSDLExtension s
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, wait
addExtension, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions
getLocation
protected 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)
EditableWSDLModel
addMessage
in interface EditableWSDLModel
msg
- Messagepublic EditableWSDLMessage getMessage(QName name)
WSDLModel
getMessage
in interface EditableWSDLModel
getMessage
in interface WSDLModel
name
- Message namepublic void addPortType(EditableWSDLPortType pt)
EditableWSDLModel
addPortType
in interface EditableWSDLModel
pt
- Port typepublic EditableWSDLPortType getPortType(QName name)
WSDLModel
WSDLPortType
that models wsdl:portType
getPortType
in interface EditableWSDLModel
getPortType
in interface WSDLModel
name
- 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)
EditableWSDLModel
addBinding
in interface EditableWSDLModel
boundPortType
- Bound port typepublic EditableWSDLBoundPortType getBinding(QName name)
WSDLModel
WSDLBoundPortType
that models wsdl:binding
getBinding
in interface EditableWSDLModel
getBinding
in interface WSDLModel
name
- 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)
EditableWSDLModel
addService
in interface EditableWSDLModel
svc
- Servicepublic EditableWSDLService getService(QName name)
WSDLModel
WSDLService
that models wsdl:service
getService
in interface EditableWSDLModel
getService
in interface WSDLModel
name
- 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()
WSDLModel
Map
of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesage
getMessages
in interface EditableWSDLModel
getMessages
in interface WSDLModel
@NotNull public Map<QName,EditableWSDLPortType> getPortTypes()
WSDLModel
getPortTypes
in interface EditableWSDLModel
getPortTypes
in interface WSDLModel
@NotNull public Map<QName,? extends EditableWSDLBoundPortType> getBindings()
WSDLModel
getBindings
in interface EditableWSDLModel
getBindings
in interface WSDLModel
@NotNull public Map<QName,EditableWSDLService> getServices()
WSDLModel
Map
of wsdl:service qualified name and WSDLService
getServices
in interface EditableWSDLModel
getServices
in interface WSDLModel
public QName getFirstServiceName()
getFirstServiceName
in interface WSDLModel
public EditableWSDLBoundPortType getBinding(QName serviceName, QName portName)
WSDLModel
WSDLBoundPortType
for the given wsdl:service and wsdl:port names.getBinding
in interface EditableWSDLModel
getBinding
in interface WSDLModel
serviceName
- non-null service QNameportName
- non-null port QNamepublic void finalizeRpcLitBinding(EditableWSDLBoundPortType boundPortType)
EditableWSDLModel
finalizeRpcLitBinding
in interface EditableWSDLModel
boundPortType
- Bindingpublic com.sun.xml.ws.policy.PolicyMap getPolicyMap()
getPolicyMap
in interface WSDLModel
public void setPolicyMap(com.sun.xml.ws.policy.PolicyMap policyMap)
setPolicyMap
in interface EditableWSDLModel
policyMap
- public void freeze()
freeze
in interface EditableWSDLModel
public final Iterable<WSDLExtension> getExtensions()
WSDLExtensible
WSDLExtension
s
added through WSDLExtensible.addExtension(WSDLExtension)
.getExtensions
in interface WSDLExtensible
public final <T extends WSDLExtension> Iterable<T> getExtensions(Class<T> type)
WSDLExtensible
This allows clients to find specific extensions in a type-safe and convenient way.
getExtensions
in interface WSDLExtensible
type
- The type of the extension to obtain. Must not be null.public <T extends WSDLExtension> T getExtension(Class<T> type)
WSDLExtensible
This is just a convenient version that does
Iterator itr = getExtensions(type); if(itr.hasNext()) return itr.next(); else return null;
getExtension
in interface WSDLExtensible
public void addExtension(WSDLExtension ex)
WSDLExtensible
WSDLExtension
to this object.addExtension
in interface WSDLExtensible
ex
- must not be null.public List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensible
getNotUnderstoodExtensions
in interface WSDLExtensible
public void addNotUnderstoodExtension(QName extnEl, Locator locator)
addNotUnderstoodExtension
in interface WSDLExtensible
extnEl
- locator
- public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood
in interface WSDLExtensible
@NotNull public final Locator getLocation()
WSDLObject
getLocation
in interface WSDLObject
Copyright © 2015 Oracle Corporation. All rights reserved.