Class PortTypeImpl
- All Implemented Interfaces:
Serializable, AttributeExtensible, ElementExtensible, PortType, WSDLElement
- Author:
- Paul Fremantle, Nirmal Mukhi, Matthew J. Duftler
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected QNameprotected Listprotected Liststatic final longFields inherited from class AbstractWSDLElement
docEl, extElements, extensionAttributesFields inherited from interface AttributeExtensible
LIST_OF_QNAMES_TYPE, LIST_OF_STRINGS_TYPE, NO_DECLARED_TYPE, QNAME_TYPE, STRING_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperation(Operation operation) Add an operation to this port type.Get the list of local attribute names defined for this element in the WSDL specification.getOperation(String name, String inputName, String outputName) Get the specified operation.Get all the operations defined here.getQName()Get the name of this port type.booleanremoveOperation(String name, String inputName, String outputName) Remove the specified operation.voidSet the name of this port type.voidsetUndefined(boolean isUndefined) toString()Methods inherited from class AbstractWSDLElement
addExtensibilityElement, getDocumentationElement, getExtensibilityElements, getExtensionAttribute, getExtensionAttributes, removeExtensibilityElement, setDocumentationElement, setExtensionAttributeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface AttributeExtensible
getExtensionAttribute, getExtensionAttributes, setExtensionAttributeMethods inherited from interface ElementExtensible
addExtensibilityElement, getExtensibilityElements, removeExtensibilityElementMethods inherited from interface WSDLElement
getDocumentationElement, setDocumentationElement
-
Field Details
-
name
-
operations
-
nativeAttributeNames
-
isUndefined
protected boolean isUndefined -
serialVersionUID
public static final long serialVersionUID- See Also:
-
-
Constructor Details
-
PortTypeImpl
public PortTypeImpl()
-
-
Method Details
-
setQName
-
getQName
-
addOperation
Add an operation to this port type.- Specified by:
addOperationin interfacePortType- Parameters:
operation- the operation to be added
-
getOperation
Get the specified operation. Note that operation names can be overloaded within a PortType. In case of overloading, the names of the input and output messages can be used to further refine the search.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).- Specified by:
getOperationin interfacePortType- Parameters:
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.- Returns:
- the corresponding operation, or null if there wasn't any matching operation
- Throws:
IllegalArgumentException- if duplicate operations are found.
-
getOperations
Get all the operations defined here.- Specified by:
getOperationsin interfacePortType
-
removeOperation
Remove the specified operation. Note that operation names can be overloaded within a PortType. In case of overloading, the names of the input and output messages can be used to further refine the search.Usage of the input and output message name parameters is as described for the
getOperationmethod.- Specified by:
removeOperationin interfacePortType- Parameters:
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.- Returns:
- the operation which was removed, or null if there wasn't any matching operation
- Throws:
IllegalArgumentException- if duplicate operations are found.- See Also:
-
setUndefined
public void setUndefined(boolean isUndefined) - Specified by:
setUndefinedin interfacePortType
-
isUndefined
public boolean isUndefined()- Specified by:
isUndefinedin interfacePortType
-
getNativeAttributeNames
Get the list of local attribute names defined for this element in the WSDL specification.- Specified by:
getNativeAttributeNamesin interfaceAttributeExtensible- Returns:
- a List of Strings, one for each local attribute name
-
toString
- Overrides:
toStringin classAbstractWSDLElement
-