[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: enums, generics and other animals

alesj do-not-reply at jboss.com
Fri Mar 7 11:35:25 EST 2008


"adrian at jboss.org" wrote : I'm assuming you have such a type in the schema? :-).
  | 
Sure.

  |       <xsd:attribute name="mode" type="controllerModeType" use="optional"/>
  |       <xsd:attribute name="autowire-type" type="autowireTypeType" use="optional"/>
  |       <xsd:attribute name="option" type="optionType" use="optional" default="Strict"/>
  |       <xsd:attribute name="fromContext" type="contextType" use="optional"/>
  | 

"adrian at jboss.org" wrote : 
  | 
  |   | TypeBInding type = schemaBinding.getTypeBinding(qNameFromSchema);
  |   | type.setValueAdapter(new EnumValueAdapter(...));
  |   | 
How do you use this with attributes?
Since currently we're only handling attributes in the way my last post showed - iterating over string values, matching localName and using the string value from Attributes.getValue(index).


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134904#4134904

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134904



More information about the jboss-dev-forums mailing list