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

org.eclipse.persistence.oxm.annotations.XmlNameTransformer Maven / Gradle / Ivy

There is a newer version: 5.0.0-B03
Show newest version
/*
 * Copyright (c) 1998, 2024 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0,
 * or the Eclipse Distribution License v. 1.0 which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
 */

// Contributors:
//     Denise Smith - EclipseLink 2.3 - Initial Implementation
package org.eclipse.persistence.oxm.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * An XmlNameTransformer allows for a user defined class to transform names.
 * The class has the following restriction:
 * 
    *
  • It must implement the {@linkplain org.eclipse.persistence.oxm.XMLNameTransformer} interface.
  • *
*

* This method will be used to decide what XML name to create from a Java class or attribute name. *

* The XmlNameTransformer must only be set on a package. */ @Target({ElementType.PACKAGE, ElementType.TYPE}) @Retention(RetentionPolicy.RUNTIME) public @interface XmlNameTransformer { /** * Defines the name of the XML name transformer that should be applied to names. */ Class value(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy