/** * Public function which removes any data validation, if present */ public virtual void removeDataValidation() { if (!dataValidation) { return; } // If the data validation is shared, then generate a warning DVParser dvp = getDVParser(); if (dvp.extendedCellsValidation()) { //logger.warn("Cannot remove data validation from " + // CellReferenceHelper.getCellReference(writableCell) + // " as it is part of the shared reference " + // CellReferenceHelper.getCellReference(dvp.getFirstColumn(), // dvp.getFirstRow()) + // "-" + // CellReferenceHelper.getCellReference(dvp.getLastColumn(), // dvp.getLastRow())); return; } // Remove the validation from the WritableSheet object if present writableCell.removeDataValidation(); clearValidationSettings(); }