Java 教程是为 JDK 8 编写的。本页中描述的示例和实践未利用在后续版本中引入的改进。
代表 XML 内容
This section describes how JAXB represents XML content as Java objects.
Java Representation of XML Schema
JAXB supports the grouping of generated classes in Java packages. A package consists of the following:
- A Java class name that is derived from the XML element name or specified by a binding customization.
- An ObjectFactory class, which is a factory that
is used to return instances of a bound Java class.