<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div><div>Not sure if we are on the page wrt to this discussion.</div><div>(you lost me somewhere) but here are my thoughts about the value type descriptions</div><div>and automagic interfaces:</div><div><br></div><div>Instead of using the VALUE_TYPE descriptions to get to know the inner structure of a complex attribute,</div><div>we could aim for a more simple approach: turn complex attributes into sub resources.</div><div><br></div><div>This is not possible straight away and has certain implications:</div><div><br></div><div><b>Sub resources need to be addressable</b></div><div><br></div><div>Consider the "jsp-configuration" of subsystem web for instance.</div><div>it's not addressable per se, but it easily can be made addressable:</div><div><br></div><div><font class="Apple-style-span" face="Courier">/subsystem=web/config=jsp:read-resource</font></div><div><font class="Apple-style-span" face="Courier">/subsystem=web/config=jsp:read-attribute(name=development)</font></div><div><br></div><div>What do we gain? implicit operations for a the sub resource:</div><div>(add, remove, read/write-arribute, etc)</div><div><br></div><div>With this we are much closer to automagic interfaces,</div><div>then the burden parse & analyze some half-baked description of the structures at hand.</div><div><br></div><div>Why "half-baked"? Well, IMO the current description of types and constraints are straight forward </div><div>and easy to understand, but far from be descriptive enough to automagically generate interfaces.</div><div><br></div><div>It's still very hard to generate human interfaces from proper xml schema descriptions</div><div>and the DMR descriptions don't cover the detail and descriptiveness of xml schema yet.</div><div>And in my opinion the shouldn't. </div><div><br></div><div>We better stick to our simple & straight forward mantra</div><div>and improve/refactor the current model descriptions like described above before puling the sledgehammer.</div><div><br></div><div>Ike</div><br><div><div>On Jul 25, 2011, at 1:21 PM, Jason Greene wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div bgcolor="#FFFFFF"><div>Not every complex structure in the DMR tres is addressable. You can have a single attribute that contains multiple values (like passing a map Iin Java, a struct in C etc).</div><div><br></div><div>Read-description is supposed to describe the structure of these complex attributes using VALUE_TYPE</div><div><br>Sent from my iPad</div><div><br>On Jul 25, 2011, at 5:09 AM, Heiko Braun <<a href="mailto:hbraun@redhat.com">hbraun@redhat.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div><div><br></div><div><br></div><div>Can you elaborate on this?</div><div>I don't understand what you mean ...</div><br><div><div>On Jul 23, 2011, at 2:26 PM, Jason Greene wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">If we allow value types then all of our interfaces need to know how to handle them</span></blockquote></div><br></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>jboss-as7-dev mailing list</span><br><span><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a></span><br></div></blockquote></div></blockquote></div><br></body></html>