Package com.ibm.wsdl.extensions.mime
Class MIMEPartImpl
- java.lang.Object
-
- com.ibm.wsdl.extensions.mime.MIMEPartImpl
-
- All Implemented Interfaces:
java.io.Serializable
,ElementExtensible
,ExtensibilityElement
,MIMEPart
public class MIMEPartImpl extends java.lang.Object implements MIMEPart
- Author:
- Matthew J. Duftler (duftler@us.ibm.com)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.xml.namespace.QName
elementType
protected java.util.List
extElements
protected java.lang.Boolean
required
static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MIMEPartImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element.javax.xml.namespace.QName
getElementType()
Get the type of this extensibility element.java.util.List
getExtensibilityElements()
Get all the extensibility elements defined here.java.lang.Boolean
getRequired()
Get whether or not the semantics of this extension are required.ExtensibilityElement
removeExtensibilityElement(ExtensibilityElement extElement)
Remove an extensibility element.void
setElementType(javax.xml.namespace.QName elementType)
Set the type of this extensibility element.void
setRequired(java.lang.Boolean required)
Set whether or not the semantics of this extension are required.java.lang.String
toString()
-
-
-
Field Detail
-
elementType
protected javax.xml.namespace.QName elementType
-
required
protected java.lang.Boolean required
-
extElements
protected java.util.List extElements
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setElementType
public void setElementType(javax.xml.namespace.QName elementType)
Set the type of this extensibility element.- Specified by:
setElementType
in interfaceExtensibilityElement
- Parameters:
elementType
- the type
-
getElementType
public javax.xml.namespace.QName getElementType()
Get the type of this extensibility element.- Specified by:
getElementType
in interfaceExtensibilityElement
- Returns:
- the extensibility element's type
-
setRequired
public void setRequired(java.lang.Boolean required)
Set whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.- Specified by:
setRequired
in interfaceExtensibilityElement
-
getRequired
public java.lang.Boolean getRequired()
Get whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.- Specified by:
getRequired
in interfaceExtensibilityElement
-
addExtensibilityElement
public void addExtensibilityElement(ExtensibilityElement extElement)
Add an extensibility element. This is where the MIME elements go.- Specified by:
addExtensibilityElement
in interfaceElementExtensible
- Parameters:
extElement
- the extensibility element to be added
-
removeExtensibilityElement
public ExtensibilityElement removeExtensibilityElement(ExtensibilityElement extElement)
Remove an extensibility element.- Specified by:
removeExtensibilityElement
in interfaceElementExtensible
- Parameters:
extElement
- the extensibility element to be removed- Returns:
- the extensibility element which was removed
-
getExtensibilityElements
public java.util.List getExtensibilityElements()
Get all the extensibility elements defined here.- Specified by:
getExtensibilityElements
in interfaceElementExtensible
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-