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

xmlparser.annotations.XmlAttribute 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 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