OpenESPI-Common-java icon indicating copy to clipboard operation
OpenESPI-Common-java copied to clipboard

ReadingQuality validation

Open janad-lh opened this issue 10 years ago • 3 comments

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.

janad-lh avatar Jan 13 '15 17:01 janad-lh

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?

MartyBurns avatar Jan 14 '15 12:01 MartyBurns

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?

jateeter avatar Jan 14 '15 15:01 jateeter

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.

janad-lh avatar Jan 14 '15 15:01 janad-lh