[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Updated: (XMLBEANS-279) Add convenience XmlOptions setter
From: Niels_Ull_Harremoës_(JIRA) <xmlbeans-dev () xml ! apache ! org>
Date: 2006-07-18 8:59:24
Message-ID: 31385969.1153213164633.JavaMail.jira () brutus
[Download RAW message or body]
[ http://issues.apache.org/jira/browse/XMLBEANS-279?page=all ]
Niels Ull Harremoës updated XMLBEANS-279:
-----------------------------------------
Summary: Add convenience XmlOptions setter methods with boolean arguments \
(was: XmlOptions setter methods are not Spring Friendly) Description:
I would suggest that XmlOptions was extended with convenience methods like
public XmlOptions setSavePrettyPrint(boolean flag)
for all the no-arg setters.
This would also allow us to do stuff like
XmlOptions customOptions = new \
XmlOptions(standardOptions).setSavePrettyPrint(false); There is currently no elegant \
way of turning off options.
In addition, this would allow us to configure XmlOptions as part of our spring \
configuration. For example:
<bean name="saveXmlOptions" class="org.apache.xmlbeans.XmlOptions">
<property name="saveNamespacesFirst" value="true">
<property name="savePrettyPrint" value="true">
</bean>
This is not currently possible, since the spring cannot call no-arg setters, so we \
have to use a custom BeanFactory.
was:
I would suggest that XmlOptions was extended with convenience methods like
public XmlOptions setSavePrettyPrint(boolean flag)
This would also allow us to do stuff like
XmlOptions customOptions = new \
XmlOptions(standardOptions).setSavePrettyPrint(false); There is currently no elegant \
way of turning off options.
In addition, this would allow us to configure XmlOptions as part of our spring \
configuration. For example:
<bean class="saveXmlOptions">
<property name="saveNamespacesFirst" value="true">
<property name="savePrettyPrint" value="true">
</bean>
This is not currently possible, since the spring cannot call no-arg setters.
> Add convenience XmlOptions setter methods with boolean arguments
> ----------------------------------------------------------------
>
> Key: XMLBEANS-279
> URL: http://issues.apache.org/jira/browse/XMLBEANS-279
> Project: XMLBeans
> Issue Type: Improvement
> Components: XmlObject
> Affects Versions: Version 2.2
> Reporter: Niels Ull Harremoës
> Priority: Minor
>
> I would suggest that XmlOptions was extended with convenience methods like
> public XmlOptions setSavePrettyPrint(boolean flag)
> for all the no-arg setters.
> This would also allow us to do stuff like
> XmlOptions customOptions = new \
> XmlOptions(standardOptions).setSavePrettyPrint(false); There is currently no \
> elegant way of turning off options. In addition, this would allow us to configure \
> XmlOptions as part of our spring configuration. For example: <bean \
> name="saveXmlOptions" class="org.apache.xmlbeans.XmlOptions"> <property \
> name="saveNamespacesFirst" value="true"> <property name="savePrettyPrint" \
> value="true"> </bean>
> This is not currently possible, since the spring cannot call no-arg setters, so we \
> have to use a custom BeanFactory.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: \
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic