All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.persistence.jaxb.MarshallerProperties Maven / Gradle / Ivy

There is a newer version: 5.0.0-B03
Show newest version
/*******************************************************************************
 * Copyright (c) 2012 Oracle. All rights reserved.
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
 * which accompanies this distribution.
 * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
 * and the Eclipse Distribution License is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * Contributors:
 *     Blaise Doughan - 2.3.3 - initial implementation
 ******************************************************************************/
package org.eclipse.persistence.jaxb;

/**
 * These are properties that may be set on an instance of Marshaller:
 * 
 * Marshaller marshaller = jaxbContext.createMarshaller();
 * marshaller.setProperty();
 * 
*/ public class MarshallerProperties { /** * The Constant CHARACTER_ESCAPE_HANDLER. Allows for customization of character escaping when marshalling. * Value should be an implementation of org.eclipse.persistence.oxm.CharacterEscapeHandler. * @since 2.3.3 */ public static final String CHARACTER_ESCAPE_HANDLER = "eclipselink.character-escape-handler"; /** * The Constant INDENT_STRING. Property used to set the string used when indenting formatted marshalled documents. * The default for formatted documents is " " (three spaces). * @since 2.3.3 */ public static final String INDENT_STRING = "eclipselink.indent-string"; /** * The Constant NAMESPACE_PREFIX_MAPPER. Provides a means to customize the namespace prefixes used * while marshalling to XML. Used for both marshal and unmarshal when mediaType is set to "application/json". * Value is either a Map of URIs to prefixes, or an implementation of * org.eclipse.persistence.oxm.NamespacePrefixMapper. * @since 2.3.3 */ public static final String NAMESPACE_PREFIX_MAPPER = "eclipselink.namespace-prefix-mapper"; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy