[jboss-jira] [JBoss JIRA] Created: (JBXB-181) Java collection type bound to XmlType with collection items bound to model groups
Alexey Loubyansky (JIRA)
jira-events at lists.jboss.org
Mon Feb 16 09:55:44 EST 2009
Java collection type bound to XmlType with collection items bound to model groups
---------------------------------------------------------------------------------
Key: JBXB-181
URL: https://jira.jboss.org/jira/browse/JBXB-181
Project: JBoss XML Binding (JBossXB)
Issue Type: Sub-task
Reporter: Alexey Loubyansky
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.1.Beta2
Use case like this:
@XmlType
public class ChoiceCollectionXmlType extends ArrayList<AbstractChoice>
{
private String a; // attribute
private String e; // element
private String value; // value
...
@JBossXmlModelGroup
(
name="ab",
kind=JBossXmlConstants.MODEL_GROUP_CHOICE,
particles={
@JBossXmlModelGroup.Particle(element=@XmlElement(name="a"), type = ChoiceA.class),
@JBossXmlModelGroup.Particle(element=@XmlElement(name="b"), type = ChoiceB.class)
}
)
public class AbstractChoice
{
private String value;
@XmlValue
public String getValue()
{
return value;
}
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list