equal
deleted
inserted
replaced
49 * class Cat extends Animal {} |
49 * class Cat extends Animal {} |
50 * </pre> |
50 * </pre> |
51 * |
51 * |
52 * <p> |
52 * <p> |
53 * The user would be required to create {@link JAXBContext} as |
53 * The user would be required to create {@link JAXBContext} as |
54 * <tt>JAXBContext.newInstance(Dog.class,Cat.class)</tt> |
54 * {@code JAXBContext.newInstance(Dog.class,Cat.class)} |
55 * (<tt>Animal</tt> will be automatically picked up since <tt>Dog</tt> |
55 * ({@code Animal} will be automatically picked up since {@code Dog} |
56 * and <tt>Cat</tt> refers to it.) |
56 * and {@code Cat} refers to it.) |
57 * |
57 * |
58 * <p> |
58 * <p> |
59 * {@link XmlSeeAlso} annotation would allow you to write: |
59 * {@link XmlSeeAlso} annotation would allow you to write: |
60 * <pre> |
60 * <pre> |
61 * @XmlSeeAlso({Dog.class,Cat.class}) |
61 * @XmlSeeAlso({Dog.class,Cat.class}) |
63 * class Dog extends Animal {} |
63 * class Dog extends Animal {} |
64 * class Cat extends Animal {} |
64 * class Cat extends Animal {} |
65 * </pre> |
65 * </pre> |
66 * |
66 * |
67 * <p> |
67 * <p> |
68 * This would allow you to do <tt>JAXBContext.newInstance(Animal.class)</tt>. |
68 * This would allow you to do {@code JAXBContext.newInstance(Animal.class)}. |
69 * By the help of this annotation, JAXB implementations will be able to |
69 * By the help of this annotation, JAXB implementations will be able to |
70 * correctly bind <tt>Dog</tt> and <tt>Cat</tt>. |
70 * correctly bind {@code Dog} and {@code Cat}. |
71 * |
71 * |
72 * @author Kohsuke Kawaguchi |
72 * @author Kohsuke Kawaguchi |
73 * @since 1.6, JAXB 2.1 |
73 * @since 1.6, JAXB 2.1 |
74 */ |
74 */ |
75 @Target({ElementType.TYPE}) |
75 @Target({ElementType.TYPE}) |