*/
public class BinaryExchangeMarshaller extends XSStringMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
BinaryExchange binaryExchange = (BinaryExchange) xmlObject;
String valueType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getValueType());
if (valueType != null) {
domElement.setAttributeNS(null, BinaryExchange.VALUE_TYPE_ATTRIB_NAME, valueType);
}
String encodingType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getEncodingType());
if (encodingType != null) {
domElement.setAttributeNS(null, BinaryExchange.ENCODING_TYPE_ATTRIB_NAME, encodingType);
}
XMLHelper.marshallAttributeMap(binaryExchange.getUnknownAttributes(), domElement);
}