190 CHAPTER 10 PLUGGABLE ANNOTATION PROCESSING UPDATES
192 CHAPTER 10 PLUGGABLE ANNOTATION PROCESSING UPDATES For the negative cases, there are only two: // Default naming public interface MyClass { } @MXBean(false) public interface MyMXBean { } The javax.xml.bind.annotation Package The javax.xml.bind.annotation package is for customizing Java program elements to an XML Schema mapping, as shown in Chapter 6. It defines the annotations shown in Table 10-1. Table 10-1. Annotations Found in the javax.xml.bind.annotation Package Annotation Description XmlAccessorOrder Controls the ordering of fields and properties in a class XmlAccessorType Controls whether fields or JavaBean properties are serialized by default XmlAnyAttribute Maps a JavaBean property to a map of wildcard attributes XmlAnyElement Maps a JavaBean property to an XML infoset representation and/or JAXB element XmlAttachmentRef Marks a field/property to indicate that its XML form is a URI reference to mime content XmlAttribute Maps a JavaBean property to an XML attribute XmlElement Maps a JavaBean property to an XML element derived from the property name XmlElementDecl Maps a factory method to an XML element XmlElementRef Maps a JavaBean property to an XML element derived from the property s type XmlElementRefs Marks a property that refers to classes with XmlElement or JAXBElement XmlElements Contains multiple @XmlElement annotations XmlElementWrapper Generates a wrapper element around an XML representation XmlEnum Maps an enumeration of type Enum to an XML representation XmlEnumValue Maps an enumerated constant in an Enum type to XML representation XmlID Maps a JavaBean property to XML ID
Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Java Web Hosting services