[
https://jira.jboss.org/jira/browse/JBXB-241?page=com.atlassian.jira.plugi...
]
Alexey Loubyansky commented on JBXB-241:
----------------------------------------
A new enum has been added org.jboss.xb.annotations.JBossXmlAccessMode:
public enum JBossXmlAccessMode
{
// not specified which means it will inherit the value from somewhere else depending on
the context
NOT_SPECIFIED,
// equivalent to javax.xml.bind.annotation.XmlAccessType.PROPERTY and
org.jboss.beans.info.spi.BeanAccessMode.STANDARD
PROPERTY,
// equivalent to javax.xml.bind.annotation.XmlAccessType.PUBLIC_MEMBER and
org.jboss.beans.info.spi.BeanAccessMode.FIELD
PUBLIC_MEMBER,
// org.jboss.beans.info.spi.BeanAccessMode.ALL
ALL
}
And a new element has been added to JBossXmlSchema, JBossXmlType and JBossXmlModelGroup:
JBossXmlAccessMode accessMode().
For JBossXmlSchema the default value is JBossXmlAccessMode.PROPERTY and for JBossXmlType
and JBossXmlModelGroup it's JBossXmlAccessMode.NOT_SPECIFIED, which means types and
groups will by default inherit the value from the schema.
choosing the desired BeanAccessMode for Java types
--------------------------------------------------
Key: JBXB-241
URL:
https://jira.jboss.org/jira/browse/JBXB-241
Project: JBoss XML Binding (JBossXB)
Issue Type: Feature Request
Reporter: Alexey Loubyansky
Assignee: Alexey Loubyansky
Fix For: JBossXB-2.0.2.GA
At the moment the properties to be bound are limited to getter/setter access mode. It
would be useful to be able to bind public and non-public fields as well.
--
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