Table of Contents
My task in project Inventory Management System was to implement functionality for providing overviews of sales and validating XML files against given XML Schema and also to write the XML Schemas for all types of XML files that the system works with.
It was needed to write four XML Schemas for import: for items, for categories, for shipments and for sales. One XML Schema is for export actual state of the goods in stock and two XML schemas for export overview of sales, one for overview sales of items, one of categories. To these XML Schemas I wrote also some example XMLs for testing the schemas and then for testing XMLValidator class.
In class XmlValidator are methods validate and isValid, that are used (together with the XML Schemas) in classes working with XML files.
Providing overviews is implemented in class OverviewProvider and allows getting daily, weekly or monthly counts of sold particular items or items belonging to particular category. It uses other interfaces for items, categories and sales and it is used in web interface. I have also implemented class OverviewXmlExporter that can transform result returned from any OvervierProvider method to XML file.