geronimo-xbean-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dain Sundstrom (JIRA)" <j...@apache.org>
Subject [jira] Commented: (XBEAN-96) Enum properties appear as elements not attributes in the xsd schema
Date Thu, 28 Feb 2008 23:29:51 GMT

    [ https://issues.apache.org/jira/browse/XBEAN-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12573516#action_12573516
] 

Dain Sundstrom commented on XBEAN-96:
-------------------------------------

Can you supply a test case or example?  Alternatively, a patch :)

> Enum properties appear as elements not attributes in the xsd schema
> -------------------------------------------------------------------
>
>                 Key: XBEAN-96
>                 URL: https://issues.apache.org/jira/browse/XBEAN-96
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>            Reporter: alex322
>
> XsdGenerator makes a decision on whether a property is going to be an attribute or an
element  based on Util.isSimpleType
> isSimpleType doesn't have a specific check for Enums.
> Moreover I think it may make sense to allow attributes for complex properties to support
references:
> <util:list id="mylist"....
> <my:mybean id="mybean" list="#mylist"/>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message