The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Key uniqueness within a messageblock


  • Subject: Key uniqueness within a messageblock
  • From: mark_harrison_uk2
  • Date: Thu, 05 Jun 2003 23:30:00 +0000

From the spec:

"The order of name-value pairs within a message section has no
significance. The same name may be used more than once in the same
section if required, although by convention, multiple entities are
usually differentiated through the use of an index element (e.g.
my.thing.0 ; my.thing.1)."

Is anyone actually using messageblocks with multiple identical
keyword (names?)

If not, can anyone think of a case where you'd WANT to?

If not (to both the questions above), can I move that NAMEs have to
be unique within a given messageblock?

If they AREN'T unique, then we are introducing non-determinism into
the "get value by name" semantics...

... and using Collections as a way of handling them programatically
runs the risk of erroring when parsing a message with non-unique
keywords.


Note that this is NOT about whether multiple, identically named,
messageblocks can exist - there is clearly a good reason for these
(cf xAPnews)

Regards,

Mark






xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.