Please analyze the following code file and determine whether it belongs…
- User
Assistant: User: Please analyze the following code file and determine whether it belongs to any of the provided modules based on the listed module descriptions. Note that the provided list of modules may not be exhaustive, and some files may not belong to any of the modules. If the code belongs to a module, Only output the module name, without any explanation or additional information; otherwise, return 'None' if it does not belong to any module.
Modules : { "UI": "Handles the front-end user interface, consisting of HTML, CSS, and JavaScript files generated by the Angular framework. It processes user requests and interacts with the server using AJAX for data retrieval and client-side interactions.""Test Driver": "Facilitates automated regression testing and handles transmission of test data in JSON format. It performs Java testing using TestNG and JavaScript unit-testing with Jest. It also sets up a simulated web server for servlet-level tests and automates end-to-end testing using Selenium Java." "Logic": "Manages the business logic of TEAMMATES, including handling relationships between entities, managing transactions, input value sanitization, access control rights, and interfacing with GAE-provided or third-party APIs." "Storage": "Performs CRUD operations on data entities, validation of data, and abstraction of GQL queries, hiding the complexities of datastore from the Logic component." "Common": "Contains utility classes, custom exceptions, and data transfer objects used across the entire application for easy consolidation and transfer of structured data." "E2E": "Handles end-to-end testing and load & performance testing, providing helpers, abstractions of browser pages, and test cases for E2E tests and L&P tests." "Client": "Contains scripts for administrative tasks, such as migrating data to a new schema and calculating statistics. This module connects directly to the application back-end for administrative purposes." }
Code: package teammates.common.datatransfer.attributes; /** * Base class for Attribute classes (Attribute classes represent attributes of * persistable entities). * * @param <E> type of persistable entity being wrapped */ public abstract class EntityAttributes<E extends BaseEntity> { /** * Returns true if the attributes represent a valid state for the entity. */ public boolean isValid() { return getInvalidityInfo().isEmpty(); } /** * Returns a {@code List} of strings, one string for each attribute whose * value is invalid. The string explains why the value is invalid * and what should values are acceptable. These explanations are * good enough to show to the user. Returns an empty {@code List} if * all attributes are valid. */ public abstract List<String> getInvalidityInfo(); /** * Returns a {@code Object} corresponding to the attributes defined by {@code this} * {@link EntityAttributes} class. */ public abstract E toEntity(); /** * Perform any sanitization that needs to be done before saving. * e.g. trim strings */ public abstract void sanitizeForSaving(); /** * Adds {@code error} to {@code errors} if {@code error} is a non-empty string. * * @param error An error message, possibly empty. * @param errors A List of errors, to add {@code error} to. */ void addNonEmptyError(String error, List<String> errors) { if (error.isEmpty()) { return; } errors.add(error); } /** * Helper class to determine whether a field should be updated or not. * * <p>The class behaves like {@link java.util.Optional} but allows null value. * * @param <T> type of object being updated */ protected static class UpdateOption<T> { private static final UpdateOption<?> EMPTY = new UpdateOption<>(); private boolean isValuePresent; private T value; private UpdateOption() { this.value = null; this.isValuePresent = false; } private UpdateOption(T value) { this.value = value; this.isValuePresent = true; } /** * Returns an {@code UpdateOption} with the specified present value. */ public static <T> UpdateOption<T> of(T value) { return new UpdateOption<>(value); } /** * Returns an empty {@code UpdateOption} instance. * * <p>No value is present for this UpdateOption. */ @SuppressWarnings("unchecked") public static <T> UpdateOption<T> empty() { return (UpdateOption<T>) EMPTY; } /** * If a value is present, invoke the specified consumer with the value, * otherwise do nothing. * * @param consumer block to be executed if a value is present * @throws NullPointerException if value is present and {@code consumer} is null */ void ifPresent(Consumer<? super T> consumer) { if (isValuePresent) { consumer.accept(value); } } /** * Returns {@code true} if value is present, {@code false} otherwise. */ boolean isPresent() { return isValuePresent; } @Override public String toString() { return isValuePresent ? String.format("UpdateOption[%s]", value) : "UpdateOption.empty"; } } } - Assistant
Common