*/
public class RelatesToMarshaller extends XSURIMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
RelatesTo relatesTo = (RelatesTo) xmlObject;
String relationshipType = DatatypeHelper.safeTrimOrNullString(relatesTo.getRelationshipType());
if (relationshipType != null) {
domElement.setAttributeNS(null, RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME, relationshipType);
}
XMLHelper.marshallAttributeMap(relatesTo.getUnknownAttributes(), domElement);
}