|
||||||||||
| 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(EditableWSDLBoundPortType boundPortType)
Add Binding |
|
void |
addExtension(WSDLExtension ex)
Adds a new WSDLExtension
to this object. |
|
void |
addMessage(EditableWSDLMessage msg)
Add message |
|
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(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(javax.xml.namespace.QName name)
Gets WSDLBoundPortType that models wsdl:binding |
|
EditableWSDLBoundPortType |
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,? extends EditableWSDLBoundPortType> |
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 |
getFirstServiceName()
Returns the first service QName from insertion order |
|
org.xml.sax.Locator |
getLocation()
Gets the source location information in the parsed WSDL. |
|
EditableWSDLMessage |
getMessage(javax.xml.namespace.QName name)
Returns the message with the given QName |
|
java.util.Map<javax.xml.namespace.QName,EditableWSDLMessage> |
getMessages()
Gives a Map of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesage |
|
java.util.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(javax.xml.namespace.QName name)
Gets WSDLPortType that models wsdl:portType |
|
java.util.Map<javax.xml.namespace.QName,EditableWSDLPortType> |
getPortTypes()
Gives a Map of wsdl:portType QName and WSDLPortType |
|
EditableWSDLService |
getService(javax.xml.namespace.QName name)
Gets WSDLService that models wsdl:service |
|
java.util.Map<javax.xml.namespace.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. |
|
| 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, addNotUnderstoodExtension, areRequiredExtensionsUnderstood, getExtension, getExtensions, getExtensions, getNotUnderstoodExtensions |
| 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(EditableWSDLMessage msg)
EditableWSDLModel
addMessage in interface EditableWSDLModelmsg - Messagepublic EditableWSDLMessage getMessage(javax.xml.namespace.QName name)
WSDLModel
getMessage in interface EditableWSDLModelgetMessage in interface WSDLModelname - Message name
public void addPortType(EditableWSDLPortType pt)
EditableWSDLModel
addPortType in interface EditableWSDLModelpt - Port typepublic EditableWSDLPortType getPortType(javax.xml.namespace.QName name)
WSDLModelWSDLPortType that models wsdl:portType
getPortType 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@targetNamespace
WSDLPortType or null if no wsdl:portType found.public void addBinding(EditableWSDLBoundPortType boundPortType)
EditableWSDLModel
addBinding in interface EditableWSDLModelboundPortType - Bound port typepublic EditableWSDLBoundPortType getBinding(javax.xml.namespace.QName name)
WSDLModelWSDLBoundPortType that models wsdl:binding
getBinding 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@targetNamespace
WSDLBoundPortType or null if no wsdl:binding foundpublic void addService(EditableWSDLService svc)
EditableWSDLModel
addService in interface EditableWSDLModelsvc - Servicepublic EditableWSDLService getService(javax.xml.namespace.QName name)
WSDLModelWSDLService that models wsdl:service
getService 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@targetNamespace
WSDLService or null if no wsdl:service foundpublic java.util.Map<javax.xml.namespace.QName,EditableWSDLMessage> getMessages()
WSDLModelMap of wsdl:message qualified name and com.sun.xml.ws.api.model.wsdl.WSDLMesage
getMessages in interface EditableWSDLModelgetMessages in interface WSDLModel@NotNull public java.util.Map<javax.xml.namespace.QName,EditableWSDLPortType> getPortTypes()
WSDLModelMap of wsdl:portType QName and WSDLPortType
getPortTypes in interface EditableWSDLModelgetPortTypes in interface WSDLModel@NotNull public java.util.Map<javax.xml.namespace.QName,? extends EditableWSDLBoundPortType> getBindings()
WSDLModelMap of wsdl:binding QName and WSDLBoundPortType
getBindings in interface EditableWSDLModelgetBindings in interface WSDLModel@NotNull public java.util.Map<javax.xml.namespace.QName,EditableWSDLService> getServices()
WSDLModelMap of wsdl:service qualified name and WSDLService
getServices in interface EditableWSDLModelgetServices in interface WSDLModelpublic javax.xml.namespace.QName getFirstServiceName()
getFirstServiceName in interface WSDLModel
public EditableWSDLBoundPortType getBinding(javax.xml.namespace.QName serviceName,
javax.xml.namespace.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 QName
public void finalizeRpcLitBinding(EditableWSDLBoundPortType boundPortType)
EditableWSDLModel
finalizeRpcLitBinding 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 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 java.util.List<? extends AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensible
getNotUnderstoodExtensions in interface WSDLExtensible
public void addNotUnderstoodExtension(javax.xml.namespace.QName extnEl,
org.xml.sax.Locator locator)
addNotUnderstoodExtension in interface WSDLExtensibleextnEl - locator - public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood in interface WSDLExtensible@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 | |||||||||