com.ibm.wsdl
Class PartImpl
java.lang.Object
|
+--com.ibm.wsdl.PartImpl
- All Implemented Interfaces:
- Part, java.io.Serializable
- public class PartImpl
- extends java.lang.Object
- implements Part
This class represents a message part and contains the part's
name, elementName, typeName, and any extensibility attributes.
- Author:
- Paul Fremantle, Nirmal Mukhi, Matthew J. Duftler
- See Also:
- Serialized Form
Method Summary |
org.w3c.dom.Element |
getDocumentationElement()
Get the documentation element. |
javax.xml.namespace.QName |
getElementName()
|
javax.xml.namespace.QName |
getExtensionAttribute(javax.xml.namespace.QName name)
Retrieve an extension attribute from this part. |
java.util.Map |
getExtensionAttributes()
Get the map containing all the extension attributes defined
on this part. |
java.lang.String |
getName()
Get the name of this part. |
javax.xml.namespace.QName |
getTypeName()
|
void |
setDocumentationElement(org.w3c.dom.Element docEl)
Set the documentation element for this document. |
void |
setElementName(javax.xml.namespace.QName elementName)
|
void |
setExtensionAttribute(javax.xml.namespace.QName name,
javax.xml.namespace.QName value)
Set an extension attribute on this part. |
void |
setName(java.lang.String name)
Set the name of this part. |
void |
setTypeName(javax.xml.namespace.QName typeName)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
protected java.lang.String name
elementName
protected javax.xml.namespace.QName elementName
typeName
protected javax.xml.namespace.QName typeName
docEl
protected org.w3c.dom.Element docEl
extensionAttributes
protected java.util.Map extensionAttributes
PartImpl
public PartImpl()
setName
public void setName(java.lang.String name)
- Set the name of this part.
- Specified by:
setName
in interface Part
- Parameters:
name
- the desired name
getName
public java.lang.String getName()
- Get the name of this part.
- Specified by:
getName
in interface Part
- Returns:
- the part name
setElementName
public void setElementName(javax.xml.namespace.QName elementName)
- Specified by:
setElementName
in interface Part
getElementName
public javax.xml.namespace.QName getElementName()
- Specified by:
getElementName
in interface Part
setTypeName
public void setTypeName(javax.xml.namespace.QName typeName)
- Specified by:
setTypeName
in interface Part
getTypeName
public javax.xml.namespace.QName getTypeName()
- Specified by:
getTypeName
in interface Part
setExtensionAttribute
public void setExtensionAttribute(javax.xml.namespace.QName name,
javax.xml.namespace.QName value)
- Set an extension attribute on this part. Pass in a null
value to remove an extension attribute.
- Specified by:
setExtensionAttribute
in interface Part
- Parameters:
name
- the extension attribute namevalue
- the extension attribute value- See Also:
getExtensionAttribute(javax.xml.namespace.QName)
,
getExtensionAttributes()
getExtensionAttribute
public javax.xml.namespace.QName getExtensionAttribute(javax.xml.namespace.QName name)
- Retrieve an extension attribute from this part. If the
extension attribute is not defined, null is returned.
- Specified by:
getExtensionAttribute
in interface Part
- Parameters:
name
- the extension attribute name- Returns:
- the value of the extension attribute, or null if
it is not defined
- See Also:
setExtensionAttribute(javax.xml.namespace.QName, javax.xml.namespace.QName)
,
getExtensionAttributes()
getExtensionAttributes
public java.util.Map getExtensionAttributes()
- Get the map containing all the extension attributes defined
on this part. The keys are the qnames of the attributes.
- Specified by:
getExtensionAttributes
in interface Part
- Returns:
- a map containing all the extension attributes defined
on this part
- See Also:
setExtensionAttribute(javax.xml.namespace.QName, javax.xml.namespace.QName)
,
getExtensionAttribute(javax.xml.namespace.QName)
setDocumentationElement
public void setDocumentationElement(org.w3c.dom.Element docEl)
- Set the documentation element for this document. This dependency
on org.w3c.dom.Element should eventually be removed when a more
appropriate way of representing this information is employed.
- Specified by:
setDocumentationElement
in interface Part
- Parameters:
docEl
- the documentation element
getDocumentationElement
public org.w3c.dom.Element getDocumentationElement()
- Get the documentation element. This dependency on org.w3c.dom.Element
should eventually be removed when a more appropriate way of
representing this information is employed.
- Specified by:
getDocumentationElement
in interface Part
- Returns:
- the documentation element
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2001 IBM. All Rights Reserved.