|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.model.wsdl.WSDLModelImpl
public final class WSDLModelImpl
Implementation of WSDLModel
| Nested Class Summary | |
|---|---|
protected static class |
AbstractExtensibleImpl.UnknownWSDLExtension
|
| Nested classes/interfaces inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLModel |
|---|
WSDLModel.WSDLParser |
| Field Summary | |
|---|---|
protected java.util.Set<WSDLExtension> |
extensions
|
protected java.util.List<AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions
|
| Constructor Summary | |
|---|---|
WSDLModelImpl()
To create WSDLModelImpl from WSDL that doesn't have a system ID. |
|
WSDLModelImpl(java.lang.String systemId)
|
|
| Method Summary | ||
|---|---|---|
void |
addBinding(WSDLBoundPortTypeImpl boundPortType)
|
|
void |
addExtension(WSDLExtension ex)
Adds a new WSDLExtension
to this object. |
|
void |
addMessage(WSDLMessageImpl msg)
|
|
void |
addNotUnderstoodExtension(javax.xml.namespace.QName extnEl,
org.xml.sax.Locator locator)
This can be used if a WSDL extension element that has wsdl:required=true is not understood |
|
void |
addPortType(WSDLPortTypeImpl pt)
|
|
void |
addService(WSDLServiceImpl svc)
|
|
boolean |
areRequiredExtensionsUnderstood()
This method should be called after freezing the WSDLModel |
|
void |
freeze()
Invoked at the end of the model construction to fix up references, etc. |
|
WSDLBoundPortTypeImpl |
getBinding(javax.xml.namespace.QName name)
Gets WSDLBoundPortType that models wsdl:binding |
|
WSDLBoundPortTypeImpl |
getBinding(javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName)
Give a WSDLBoundPortType for the given wsdl:service and wsdl:port names. |
|
java.util.Map<javax.xml.namespace.QName,WSDLBoundPortType> |
getBindings()
Gives a Map of wsdl:binding QName and WSDLBoundPortType |
|
|
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 WSDLExtensible.addExtension(WSDLExtension). |
|
|
getExtensions(java.lang.Class<T> type)
Gets all the extensions that is assignable to the given type. |
|
javax.xml.namespace.QName |
getFirstPortName()
Returns first port QName from first service as per the insertion order |
|
javax.xml.namespace.QName |
getFirstServiceName()
Returns the first service QName from insertion order |
|
org.xml.sax.Locator |
getLocation()
Gets the source location information in the parsed WSDL. |
|
WSDLPortImpl |
getMatchingPort(javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portType)
gets the first port in the wsdl which matches the serviceName and portType |
|
WSDLMessageImpl |
getMessage(javax.xml.namespace.QName name)
|
|
java.util.Map<javax.xml.namespace.QName,WSDLMessageImpl> |
getMessages()
|
|
com.sun.xml.ws.policy.PolicyMap |
getPolicyMap()
Gives the PolicyMap associated with the WSDLModel |
|
WSDLPortTypeImpl |
getPortType(javax.xml.namespace.QName name)
Gets WSDLPortType that models wsdl:portType |
|
java.util.Map<javax.xml.namespace.QName,WSDLPortTypeImpl> |
getPortTypes()
Gives a Map of wsdl:portType QName and WSDLPortType |
|
WSDLServiceImpl |
getService(javax.xml.namespace.QName name)
Gets WSDLService that models wsdl:service |
|
java.util.Map<javax.xml.namespace.QName,WSDLServiceImpl> |
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLExtensible |
|---|
addExtension, getExtension, getExtensions, getExtensions |
| Methods inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLObject |
|---|
getLocation |
| Field Detail |
|---|
protected final java.util.Set<WSDLExtension> extensions
protected java.util.List<AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
| Constructor Detail |
|---|
public WSDLModelImpl(@NotNull
java.lang.String systemId)
public WSDLModelImpl()
WSDLModelImpl from WSDL that doesn't have a system ID.
| Method Detail |
|---|
public void addMessage(WSDLMessageImpl msg)
public WSDLMessageImpl getMessage(javax.xml.namespace.QName name)
public void addPortType(WSDLPortTypeImpl pt)
public WSDLPortTypeImpl getPortType(javax.xml.namespace.QName name)
WSDLModelWSDLPortType that models wsdl:portType
getPortType 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@targetNamespace
WSDLPortType or null if no wsdl:portType found.public void addBinding(WSDLBoundPortTypeImpl boundPortType)
public WSDLBoundPortTypeImpl getBinding(javax.xml.namespace.QName name)
WSDLModelWSDLBoundPortType that models wsdl:binding
getBinding 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@targetNamespace
WSDLBoundPortType or null if no wsdl:binding foundpublic void addService(WSDLServiceImpl svc)
public WSDLServiceImpl getService(javax.xml.namespace.QName name)
WSDLModelWSDLService that models wsdl:service
getService 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@targetNamespace
WSDLService or null if no wsdl:service foundpublic java.util.Map<javax.xml.namespace.QName,WSDLMessageImpl> getMessages()
@NotNull public java.util.Map<javax.xml.namespace.QName,WSDLPortTypeImpl> getPortTypes()
WSDLModelMap of wsdl:portType QName and WSDLPortType
getPortTypes in interface WSDLModel@NotNull public java.util.Map<javax.xml.namespace.QName,WSDLBoundPortType> getBindings()
WSDLModelMap of wsdl:binding QName and WSDLBoundPortType
getBindings in interface WSDLModel@NotNull public java.util.Map<javax.xml.namespace.QName,WSDLServiceImpl> getServices()
WSDLModelMap of wsdl:service qualified name and WSDLService
getServices in interface WSDLModelpublic javax.xml.namespace.QName getFirstServiceName()
public javax.xml.namespace.QName getFirstPortName()
public WSDLPortImpl getMatchingPort(javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portType)
public WSDLBoundPortTypeImpl getBinding(javax.xml.namespace.QName serviceName,
javax.xml.namespace.QName portName)
WSDLModelWSDLBoundPortType for the given wsdl:service and wsdl:port names.
getBinding in interface WSDLModelserviceName - non-null service QNameportName - non-null port QName
public com.sun.xml.ws.policy.PolicyMap getPolicyMap()
getPolicyMap in interface WSDLModelpublic void setPolicyMap(com.sun.xml.ws.policy.PolicyMap policyMap)
policyMap - public void freeze()
public final java.lang.Iterable<WSDLExtension> getExtensions()
WSDLExtensibleWSDLExtensions
added through WSDLExtensible.addExtension(WSDLExtension).
getExtensions in interface WSDLExtensiblepublic final <T extends WSDLExtension> java.lang.Iterable<T> getExtensions(java.lang.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(java.lang.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 void addNotUnderstoodExtension(javax.xml.namespace.QName extnEl,
org.xml.sax.Locator locator)
extnEl - locator - public boolean areRequiredExtensionsUnderstood()
@NotNull public final org.xml.sax.Locator getLocation()
WSDLObject
getLocation in interface WSDLObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||