[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [obix-comment] Contract inheritance
The root's href should not be inherited because it is the public identifier for the contract. But I think your question is related to the children of the root, perhaps something like this: <obj href='Person'> <str name='firstName' href='firstName'/> <str name='lastName' href='lastName' /> </obj> Is that what you are asking - such that instances of Person inherit the hrefs for firstName and lastName? I think I like that, although the major downside is that it requires all implementations of the contract to support addressing down to the children. Personally I think of href as part of the "value side" rather than the "contract side" because it's a server implementation detail. Brian -----Original Message----- From: Richards, Dave [mailto:drichards@trane.com] Sent: Tuesday, October 24, 2006 11:23 AM To: obix-comment@lists.oasis-open.org Subject: [obix-comment] Contract inheritance What was the rationale for not inheriting href's in contracts? Since the non-root href's will be relative, it would seem to simplify matters if they were inherited. That way derived types would not have to override elements simply to assign/reassign href's. Dave Richards drichards@trane.com <mailto:drichards@trane.com>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]