
xmlparser.annotations.XmlNameFromClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simplexml Show documentation
Show all versions of simplexml Show documentation
A clean and simple XML parser, serializer, and deserializer.
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