Test project
Budget: $10 – $30 USD
Please develop a small framework around turning objects into text and vice versa. The framework should provide functionality for converting text to an object of a certain type, an object of a certain type to text, and validating text input. Possible use cases could be any text validation or conversion in an application, e.g. on input fields on a user interface or formatting database output (e.g. a date value) into a textual representation. Therefore, develop a generic formatter interface that offers methods such as: • a method that converts text into an object of a certain type (parse), • a method that converts an object of a certain type into text (format), • a method for validation of text (isValid). When it comes to conversion, the input shall then be converted to an explicit output format. Besides the interface we also would like to see some implementations of it. Possible types could be things like • date, • time, • currency, • number and floating-point number, • email, • social security number, • phone number, • bank account number, • etc. The framework should consider two different types of users (typically developers): • API-user: They will instantiate the formatter objects and use them in their own applications, for example a Swing app, an Eclipse plug-in, or an ETL process. • API-Extension user: Those who extend the framework with a new formatter, or those who want to replace one of your existing formatter implementations with their own. In addition to the basic functionality your framework shall support international usage, e.g. input and output must be open for different languages and locale specifics. Optionally it would be great if your implementations are open for tolerant parsing regarding the data input, e.g. time input as “900” shall be identified as “9:00”. The input shall then be converted to an explicit output format, e. g. “09:00”.