37 import com.sun.tools.internal.xjc.Options;
38 import com.sun.tools.internal.xjc.Plugin;
39
40 /**
41 * {@link JAXBModel} that exposes additional information available
42 * only for the schema->java direction.
43 *
44 * @author Kohsuke Kawaguchi
45 */
46 public interface S2JJAXBModel extends JAXBModel {
47
48 /**
49 * Gets a {@link Mapping} object for the given global element.
50 *
51 * @return
52 * null if the element name is not a defined global element in the schema.
53 */
54 Mapping get( QName elementName );
55
56 /**
57 * Gets all the <tt>ObjectFactory</tt> classes generated by the compilation.
58 *
59 * <p>
60 * This should be used for generating {@link XmlSeeAlso} on the SEI.
61 */
62 List<JClass> getAllObjectFactories();
63
64
65 /**
66 * Gets a read-only view of all the {@link Mapping}s.
67 */
68 Collection<? extends Mapping> getMappings();
69
70 /**
71 * Returns the fully-qualified name of the Java type that is bound to the
72 * specified XML type.
73 *
74 * @param xmlTypeName
75 * must not be null.
76 * @return
77 * null if the XML type is not bound to any Java type.
|
37 import com.sun.tools.internal.xjc.Options;
38 import com.sun.tools.internal.xjc.Plugin;
39
40 /**
41 * {@link JAXBModel} that exposes additional information available
42 * only for the schema->java direction.
43 *
44 * @author Kohsuke Kawaguchi
45 */
46 public interface S2JJAXBModel extends JAXBModel {
47
48 /**
49 * Gets a {@link Mapping} object for the given global element.
50 *
51 * @return
52 * null if the element name is not a defined global element in the schema.
53 */
54 Mapping get( QName elementName );
55
56 /**
57 * Gets all the {@code ObjectFactory} classes generated by the compilation.
58 *
59 * <p>
60 * This should be used for generating {@link XmlSeeAlso} on the SEI.
61 */
62 List<JClass> getAllObjectFactories();
63
64
65 /**
66 * Gets a read-only view of all the {@link Mapping}s.
67 */
68 Collection<? extends Mapping> getMappings();
69
70 /**
71 * Returns the fully-qualified name of the Java type that is bound to the
72 * specified XML type.
73 *
74 * @param xmlTypeName
75 * must not be null.
76 * @return
77 * null if the XML type is not bound to any Java type.
|