*/
public class ReferenceMarshaller extends AbstractWSSecurityObjectMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
Reference reference = (Reference) xmlObject;
if (!DatatypeHelper.isEmpty(reference.getURI())) {
domElement.setAttributeNS(null, Reference.URI_ATTRIB_NAME, reference.getURI());
}
if (!DatatypeHelper.isEmpty(reference.getValueType())) {
domElement.setAttributeNS(null, Reference.VALUE_TYPE_ATTRIB_NAME, reference.getValueType());
}
XMLHelper.marshallAttributeMap(reference.getUnknownAttributes(), domElement);
}