|
||||||||||
| 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 |
com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension
|
| Nested classes/interfaces inherited from interface com.sun.xml.ws.api.model.wsdl.WSDLModel |
|---|
WSDLModel.WSDLParser |
| Field Summary | |
|---|---|
protected Set<WSDLExtension> |
extensions
|
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> |
notUnderstoodExtensions
|
| Constructor Summary | |
|---|---|
WSDLModelImpl()
To create WSDLModelImpl from WSDL that doesn't have a system ID. |
|
WSDLModelImpl(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(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()
Gives a Map of wsdl:binding QName and WSDLBoundPortType |
|
|
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). |
|
|
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 com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> |
getNotUnderstoodExtensions()
Lists extensions marked as not understood |
|
PolicyMap |
getPolicyMap()
Gives the PolicyMap associated with the WSDLModel |
|
EditableWSDLPortType |
getPortType(QName name)
Gets WSDLPortType that models wsdl:portType |
|
Map<QName,EditableWSDLPortType> |
getPortTypes()
Gives a Map of wsdl:portType QName and WSDLPortType |
|
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(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 Set<WSDLExtension> extensions
protected List<com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> notUnderstoodExtensions
| Constructor Detail |
|---|
public WSDLModelImpl(@NotNull
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(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(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(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(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 Map<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 Map<QName,EditableWSDLPortType> getPortTypes()
WSDLModelMap of wsdl:portType QName and WSDLPortType
getPortTypes in interface EditableWSDLModelgetPortTypes in interface WSDLModel@NotNull public Map<QName,? extends EditableWSDLBoundPortType> getBindings()
WSDLModelMap of wsdl:binding QName and WSDLBoundPortType
getBindings in interface EditableWSDLModelgetBindings in interface WSDLModel@NotNull public Map<QName,EditableWSDLService> getServices()
WSDLModelMap of wsdl:service qualified name and WSDLService
getServices in interface EditableWSDLModelgetServices in interface WSDLModelpublic QName getFirstServiceName()
getFirstServiceName in interface WSDLModel
public 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 QName
public void finalizeRpcLitBinding(EditableWSDLBoundPortType boundPortType)
EditableWSDLModel
finalizeRpcLitBinding in interface EditableWSDLModelboundPortType - Bindingpublic PolicyMap getPolicyMap()
getPolicyMap in interface WSDLModelpublic void setPolicyMap(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 com.sun.xml.ws.model.wsdl.AbstractExtensibleImpl.UnknownWSDLExtension> getNotUnderstoodExtensions()
WSDLExtensible
getNotUnderstoodExtensions in interface WSDLExtensible
public void addNotUnderstoodExtension(QName extnEl,
Locator locator)
addNotUnderstoodExtension in interface WSDLExtensibleextnEl - locator - public boolean areRequiredExtensionsUnderstood()
areRequiredExtensionsUnderstood in interface WSDLExtensible@NotNull public final Locator getLocation()
WSDLObject
getLocation in interface WSDLObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||