From: <ale...@jb...> - 2005-06-01 13:41:30
|
Current binding elements are described here http://www.jboss.org/wiki/Wiki.jsp?page=JBossXB_JBXBAnnotations View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879757#3879757 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879757 |
From: <ad...@jb...> - 2005-06-01 19:52:29
|
I'd like to drop the pojoserver test in the testsuite (I don't want to cross maintain this everytime new features are added) in favour of more clearly defined unit tests of the features I'm using in the MC (where they are not already tested). e.g. 1) recursion in the value processing 2) polymorphism in the value processing 3) holders Basically, turn each one of the patterns I use in BeanSchemaBinding into a unit test that can be tested with both a programmatic binding and an annotated binding. Does this sounds acceptable to you? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879821#3879821 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879821 |
From: <ale...@jb...> - 2005-06-02 11:06:21
|
> Does this sounds acceptable to you? Yes. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879910#3879910 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879910 |
From: <ale...@jb...> - 2005-06-14 09:52:25
|
Here I explain binding to java.util.Map http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossXB_BindingToJavaUtilMap Any feedback is appreciated. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881390#3881390 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881390 |
From: <ad...@jb...> - 2005-06-14 16:50:31
|
I notice you didn't try to support | <map> | <key>xxx</key><value>yyy</value> | <key>zzz</key><value>qqq</value> | </map> | What are the rules for referencing types across namespaces and "parameterizing them"? i.e. Is there a way for me to say I accept any of those map types and but the implementation of the map/key/value should be of a specific class or another element type? e.g. I want would like to use any of your rules/bindings from the map namespace but override the map type to AbstractMapMetaData and the key/value to one of my ValueMetaData types. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881443#3881443 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881443 |
From: <ale...@jb...> - 2005-06-15 12:15:19
|
AFAIU, this style needs support for element group binding which is not supported yet. But I'll look into how hard it would be to add this and let you know. I am not entirely clear about the other question. As I understand it, there is a schema which is already bound. And you want to use that schema's types in your other schema and override type bindings from the first schema? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881578#3881578 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881578 |
From: <ad...@jb...> - 2005-06-15 15:01:20
|
"ale...@jb..." wrote : | I am not entirely clear about the other question. | As I understand it, there is a schema which is already bound. And you want to use that schema's types in your other schema and override type bindings from the first schema? Yes. I want to sort of inherit your complex type into my namespace and specialize it (name the classes or maybe override the annotations?). And also let the user choose what type of entry binding they would like to use (the short form or the long form) depending upon whether the values are Strings or something more complex? i.e. JBossXB provides some template types for some of the more common use cases. I was merely asking whether such a thing is possible (even it it requires creating some special jbxb annotations to define it?). The two advantages are: 1) I don't have to do all the work of defining what a map means 2) Consistency of form across our schemas. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881612#3881612 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881612 |
From: <ale...@jb...> - 2005-06-16 12:56:59
|
Let's plan inheriting types and their bindings from other schemas for the future for now. It is possible. But I haven't tried it yet. In schemas it should be done with | <xsd:include schemaLocation="other.xsd"/> | jbxb:mapEntry, jbxb:mapEntryValue, jbxb:mapEntryKey are *mostly* assembling annotations. In some cases, mapEntry can define types to the entry itself and its value. Otherwise, you just use jbxb:class. PS: I have a new [getting started tutorial|http://jboss.org/wiki/Wiki.jsp?page=JBossXB_POTutorial]. I will probably edit it to include some more basic customizations. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881760#3881760 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881760 |