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

xmlparser.annotations.XmlNameFromClass Maven / Gradle / Ivy

The newest version!
package xmlparser.annotations;

import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Instructs the parser to ignore the field name and use the name from the class.
 * The parser will also honor the @XmlName annotation on the class.
 * 
 * {@code
 *     class Envelope {
 *         @XmlNameFromClass
 *         public Object body = new MyBody();
 *     }
 *
 *     @XmlName("custom")
 *     class MyBody {
 *         ...
 *     }
 * }
 * 
* Serializes into: *
 * {@code
 *     
 * }
 * 
*/ @Retention(RUNTIME) public @interface XmlNameFromClass { }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy