public class WSDLPortType extends NamedItem implements Attributable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SUFFIX |
| Constructor and Description |
|---|
WSDLPortType() |
WSDLPortType(QName name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOperation(WSDLOperation operation) |
CustomAttributeValue |
getAttribute(QName name)
Returns the value of the attribute with the given
name or null, if
this attribute is not available (or if its value is actually explicitly set to null
). |
HashMap |
getAttributes()
Returns all attributes explicitly set for this
Attributable instance. |
WSDLOperation |
getOperation(java.lang.String name,
java.lang.String inputName,
java.lang.String outputName) |
DataStructure |
getOperations() |
WSDL |
getWsdl() |
boolean |
hasAttributes()
Returns
true only if this instance has at least one attribute set. |
boolean |
isEventSource() |
void |
serializeAttributes(XmlSerializer serializer)
Serializes the attributes stored within this instance, if any.
|
void |
setAttribute(QName name,
CustomAttributeValue value)
Sets the
value for the attribute with the specified name. |
void |
setAttribute(QName name,
java.lang.String value)
Sets the
value for the attribute with the specified name. |
void |
setAttributes(HashMap attributes)
Sets all attributes at once to those contained within argument
attributes. |
void |
setEventSource(boolean eventSource) |
java.lang.String |
toString() |
getLocalName, getName, getNamespace, setNamepublic static final java.lang.String SUFFIX
public WSDLPortType()
public WSDLPortType(QName name)
public CustomAttributeValue getAttribute(QName name)
Attributablename or null, if
this attribute is not available (or if its value is actually explicitly set to null
).getAttribute in interface Attributablename - the name of the attribute of which to query the valuenullpublic void setAttribute(QName name, CustomAttributeValue value)
Attributablevalue for the attribute with the specified name. Throws a
java.lang.IllegalArgumentException in case name is null.setAttribute in interface Attributablename - the name of the attribute to set, must not be nullvalue - the value to set the named attribute to (may be nullpublic void setAttribute(QName name, java.lang.String value)
Attributablevalue for the attribute with the specified name. The value
will be represented as plain String. It will be wrapped within a new instance of StringAttributeValue. This method throws a java.lang.IllegalArgumentException in
case name is null.
This is a shorthand for setAttribute(name, new StringAttributeValue(value)).
setAttribute in interface Attributablename - the name of the attribute to set, must not be nullvalue - the value to set the named attribute to (may be nullpublic HashMap getAttributes()
AttributableAttributable instance. Note that
depending on the actual implementation the returned reference may point at the 'life map', i
.e. the actual storage for the attributes. Thus, modifications to that map should be performed
with care and keeping this in mind.getAttributes in interface Attributablepublic void setAttributes(HashMap attributes)
Attributableattributes. Note
that depending on the actual implementation it is possible that the map attributes
points at may be used for the actual internal storage of the attributes (i.e. without copying
it). That is why, after passing it to this method, modifications to this map should be made
with care. This method throws a java.lang.IllegalArgumentException in cases where
attributes is null.setAttributes in interface Attributableattributes - the new attributes to setpublic boolean hasAttributes()
Attributabletrue only if this instance has at least one attribute set. Returns
false in any other case.hasAttributes in interface Attributabletrue only if there is at least one attribute set within this instancepublic void serializeAttributes(XmlSerializer serializer) throws java.io.IOException
AttributableserializeAttributes in interface Attributableserializer - the serializer to which to send outputjava.io.IOException - in case writing to serializer fails for any reasonpublic boolean isEventSource()
public void setEventSource(boolean eventSource)
eventSource - the eventSource to setpublic WSDLOperation getOperation(java.lang.String name, java.lang.String inputName, java.lang.String outputName)
name - the local name of the operation to returninputName - the name of the operation's input element if any; needed, in case more than one operation with the same
name is defined within the same port typeoutputName - the name of the operation's output element, if any; needed in case more than one operation with the same
name is defined within the same port typenullpublic DataStructure getOperations()
public void addOperation(WSDLOperation operation)
operation - throws IllegalArgumentException in case an operation with exactly the same name and NO input and output
already existspublic WSDL getWsdl()