|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.wsdl.AbstractWSDLElement
com.ibm.wsdl.PortTypeImpl
public class PortTypeImpl
This class represents a port type. It contains information about operations associated with this port type.
Field Summary | |
---|---|
protected boolean |
isUndefined
|
protected QName |
name
|
protected java.util.List |
nativeAttributeNames
|
protected java.util.List |
operations
|
static long |
serialVersionUID
|
Fields inherited from class com.ibm.wsdl.AbstractWSDLElement |
---|
docEl, extElements, extensionAttributes |
Fields inherited from interface javax.wsdl.extensions.AttributeExtensible |
---|
LIST_OF_QNAMES_TYPE, LIST_OF_STRINGS_TYPE, NO_DECLARED_TYPE, QNAME_TYPE, STRING_TYPE |
Constructor Summary | |
---|---|
PortTypeImpl()
|
Method Summary | |
---|---|
void |
addOperation(Operation operation)
Add an operation to this port type. |
java.util.List |
getNativeAttributeNames()
Get the list of local attribute names defined for this element in the WSDL specification. |
Operation |
getOperation(java.lang.String name,
java.lang.String inputName,
java.lang.String outputName)
Get the specified operation. |
java.util.List |
getOperations()
Get all the operations defined here. |
QName |
getQName()
Get the name of this port type. |
boolean |
isUndefined()
|
Operation |
removeOperation(java.lang.String name,
java.lang.String inputName,
java.lang.String outputName)
Remove the specified operation. |
void |
setQName(QName name)
Set the name of this port type. |
void |
setUndefined(boolean isUndefined)
|
java.lang.String |
toString()
|
Methods inherited from class com.ibm.wsdl.AbstractWSDLElement |
---|
addExtensibilityElement, getDocumentationElement, getExtensibilityElements, getExtensionAttribute, getExtensionAttributes, removeExtensibilityElement, setDocumentationElement, setExtensionAttribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.wsdl.WSDLElement |
---|
getDocumentationElement, setDocumentationElement |
Methods inherited from interface javax.wsdl.extensions.AttributeExtensible |
---|
getExtensionAttribute, getExtensionAttributes, setExtensionAttribute |
Methods inherited from interface javax.wsdl.extensions.ElementExtensible |
---|
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElement |
Field Detail |
---|
protected QName name
protected java.util.List operations
protected java.util.List nativeAttributeNames
protected boolean isUndefined
public static final long serialVersionUID
Constructor Detail |
---|
public PortTypeImpl()
Method Detail |
---|
public void setQName(QName name)
setQName
in interface PortType
name
- the desired namepublic QName getQName()
getQName
in interface PortType
public void addOperation(Operation operation)
addOperation
in interface PortType
operation
- the operation to be addedpublic Operation getOperation(java.lang.String name, java.lang.String inputName, java.lang.String outputName)
The search criteria will be the operation name parameter and any
non-null input or output message name parameters.
To exclude the input or output message name from the search criteria,
specify a null value for the input or output message name parameter.
To search for operations with unnamed input or output messages
(i.e. <input> or <output> elements with the 'name' attribute omitted),
specify the string ":none
" for the input or output message name parameter.
Note: the use of a string value ":none
" rather than null to search for
unnamed input or output messages is necessary to retain backward compatibility
with earlier versions of the JWSDL API, which defined a null value to
mean 'ignore this parameter'.
The colon in ":none
" is to avoid name clashes with input or output
message names, which must be of type NCName (i.e. they cannot contain colons).
getOperation
in interface PortType
name
- the name of the desired operation.inputName
- the name of the input message; if this is null
it will be ignored, if this is ":none
" it means search for an input
message without a name.outputName
- the name of the output message; if this is null
it will be ignored, if this is ":none
" it means search for an output
message without a name.
java.lang.IllegalArgumentException
- if duplicate operations are found.public java.util.List getOperations()
getOperations
in interface PortType
public Operation removeOperation(java.lang.String name, java.lang.String inputName, java.lang.String outputName)
Usage of the input and output message name parameters is as
described for the getOperation
method.
removeOperation
in interface PortType
name
- the name of the desired operation.inputName
- the name of the input message; if this is null
it will be ignored, if this is ":none
" it means search for an input
message without a name.outputName
- the name of the output message; if this is null
it will be ignored, if this is ":none
" it means search for an output
message without a name.
java.lang.IllegalArgumentException
- if duplicate operations are found.getOperation(String, String, String)
public void setUndefined(boolean isUndefined)
setUndefined
in interface PortType
public boolean isUndefined()
isUndefined
in interface PortType
public java.util.List getNativeAttributeNames()
getNativeAttributeNames
in interface AttributeExtensible
public java.lang.String toString()
toString
in class AbstractWSDLElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |