This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.xml.bind.annotation
annotation XmlSeeAlso
public interface annotation XmlSeeAlso
extends Annotation
Instructs JAXB to also bind other classes when binding this class.
Java makes it impractical/impossible to list all sub-classes of
a given class. This often gets in a way of JAXB users, as it JAXB
cannot automatically list up the classes that need to be known
to {@link JAXBContext}.
For example, with the following class definitions:
class Animal {}
class Dog extends Animal {}
class Cat extends Animal {}
The user would be required to create {@link JAXBContext} as
JAXBContext.newInstance(Dog.class,Cat.class)
(Animal will be automatically picked up since Dog
and Cat refers to it.)
{@link XmlSeeAlso} annotation would allow you to write:
@XmlSeeAlso({Dog.class,Cat.class})
class Animal {}
class Dog extends Animal {}
class Cat extends Animal {}
This would allow you to do JAXBContext.newInstance(Animal.class).
By the help of this annotation, JAXB implementations will be able to
correctly bind Dog and Cat.
value
public Class[] value()
-
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.