Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EclipseLink/Development/370574"

(New page: <div style="margin:5px;float:right;border:1px solid #000000;padding:5px">__TOC__</div> = Design Documentation: IndentString = [http://bugs.eclipse.org/370574 ER 370574])
 
Line 4: Line 4:
  
 
[http://bugs.eclipse.org/370574 ER 370574]
 
[http://bugs.eclipse.org/370574 ER 370574]
 +
 +
In the current JAXB RI, developed by Sun, there are a series of "proprietary" JAXB extensions that are available to provide advanced JAXB functionality outside of the JAXB spec.
 +
 +
The '''Marshaller''' property '''com.sun.xml.bind.indentString''' provided in the Sun JAXB implementation allows users to override the indent string that is used when marshalling objects.
 +
 +
This document will outline the design for an EclipseLink equivalent to this extension.
 +
 +
 +
= Requirements =
 +
 +
* Provide support in EclipseLink's JAXBMarshaller to customize the indent string used.
 +
* Allow the usage of Sun JAXB property names to set this feature, so that no code changes are required for users migrating from Sun to EclipseLink JAXB.
 +
 +
 +
= Behaviour =
 +
 +
If a custom indent string has been set on the '''Marshaller''', then an element of depth ''k'' will be indented by printing this string ''k'' times.

Revision as of 11:54, 7 February 2012

Design Documentation: IndentString

ER 370574

In the current JAXB RI, developed by Sun, there are a series of "proprietary" JAXB extensions that are available to provide advanced JAXB functionality outside of the JAXB spec.

The Marshaller property com.sun.xml.bind.indentString provided in the Sun JAXB implementation allows users to override the indent string that is used when marshalling objects.

This document will outline the design for an EclipseLink equivalent to this extension.


Requirements

  • Provide support in EclipseLink's JAXBMarshaller to customize the indent string used.
  • Allow the usage of Sun JAXB property names to set this feature, so that no code changes are required for users migrating from Sun to EclipseLink JAXB.


Behaviour

If a custom indent string has been set on the Marshaller, then an element of depth k will be indented by printing this string k times.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.