ReadingQuality validation
As per the schema (https://github.com/greenbuttonalliance/OpenESPI-Common-java/blob/master/etc/usage.xsd ) reading quality(quality of the reading) has definite set of values.Need validation/check, in reading data import/export, to enforce this.
The schema has an extensible enumeration model which is a union of the defined set of values and an integer. Therefore, the schema permits any value. It leaves to implementation agreements the defined interoperability if a limit to the value space is desired.
Is there a particular requirement you have in mind?
this leads to the larger question (beyond reading quality) of the need for all enumerations to be specifically implemented (thus enabling the validation/check of these enumerations when marshalling/unmarshalling).
Is there a need to validate the values of any/all of relevant attributes of the ESPI resources?
MDM system has many quality values but consumer application may not required all those. I am trying to map our internal MDM quality values to GreenButton values. Quality flag defined in existing schema could be sufficient for us.