
com.ibm.wsdl.extensions.mime.MIMEMimeXmlImpl Maven / Gradle / Ivy
/*
* (c) Copyright IBM Corp 2001, 2005
*/
package com.ibm.wsdl.extensions.mime;
import javax.wsdl.extensions.mime.*;
import javax.xml.namespace.*;
/**
* @author Matthew J. Duftler ([email protected])
*/
public class MIMEMimeXmlImpl implements MIMEMimeXml {
protected QName elementType = MIMEConstants.Q_ELEM_MIME_MIME_XML;
// Uses the wrapper type so we can tell if it was set or not.
protected Boolean required = null;
protected String part = null;
public static final long serialVersionUID = 1;
/**
* Set the type of this extensibility element.
*
* @param elementType
* the type
*/
@Override
public void setElementType(QName elementType) {
this.elementType = elementType;
}
/**
* Get the type of this extensibility element.
*
* @return the extensibility element's type
*/
public QName getElementType() {
return elementType;
}
/**
* Set whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.
*/
@Override
public void setRequired(Boolean required) {
this.required = required;
}
/**
* Get whether or not the semantics of this extension are required. Relates to the wsdl:required attribute.
*/
public Boolean getRequired() {
return required;
}
/**
* Set the part for this MIME mimeXml.
*
* @param part
* the desired part
*/
@Override
public void setPart(String part) {
this.part = part;
}
/**
* Get the part for this MIME mimeXml.
*/
public String getPart() {
return part;
}
@Override
public String toString() {
StringBuilder strBuf = new StringBuilder();
strBuf.append("MIMEMimeXml (" + elementType + "):");
strBuf.append("\nrequired=" + required);
if (part != null) {
strBuf.append("\npart=" + part);
}
return strBuf.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy