1 5 6 package javax.xml.bind.annotation; 7 8 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 9 import java.lang.annotation.Retention ; 10 import java.lang.annotation.Target ; 11 12 import static java.lang.annotation.ElementType .*; 13 import static java.lang.annotation.RetentionPolicy .*; 14 15 119 120 @Retention (RUNTIME) @Target ({FIELD, METHOD}) 121 public @interface XmlElement { 122 127 String name() default "##default"; 128 129 134 boolean nillable() default false; 135 136 147 148 boolean required() default false; 149 150 167 String namespace() default "##default"; 168 169 177 String defaultValue() default "\u0000"; 178 179 182 Class type() default DEFAULT.class; 183 184 189 static final class DEFAULT {} 190 } 191 192 193 | Popular Tags |