
xmlparser.annotations.XmlAttribute 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 treat the field as an attribute in XML. This
* annotation works for both serialization as deserialization
*
* {@code
* class Pojo {
* \@XmlAttribute
* public String name = "Hello";
* }
* }
*
* Turns into:
*
* {@code
*
* }
*
*/
@Retention(RUNTIME)
public @interface XmlAttribute {
String pattern() default "";
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy