Source Code Cross Referenced for SchemaOutputResolver.java in  » 6.0-JDK-Modules » jaxb-api » javax » xml » bind » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » jaxb api » javax.xml.bind 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        package javax.xml.bind;
02:
03:        import javax.xml.transform.Result;
04:        import java.io.IOException;
05:
06:        /**
07:         * Controls where a JAXB implementation puts the generates
08:         * schema files.
09:         *
10:         * <p>
11:         * An implementation of this abstract class has to be provided by the calling
12:         * application to generate schemas.
13:         *
14:         * <p>
15:         * This is a class, not an interface so as to allow future versions to evolve
16:         * without breaking the compatibility.
17:         *
18:         * @author
19:         *     Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
20:         */
21:        public abstract class SchemaOutputResolver {
22:            /**
23:             * Decides where the schema file (of the given namespace URI)
24:             * will be written, and return it as a {@link Result} object.
25:             *
26:             * <p>
27:             * This method is called only once for any given namespace.
28:             * IOW, all the components in one namespace is always written
29:             * into the same schema document.
30:             *
31:             * @param namespaceUri
32:             *      The namespace URI that the schema declares.
33:             *      Can be the empty string, but never be null.
34:             * @param suggestedFileName
35:             *      A JAXB implementation generates an unique file name (like "schema1.xsd")
36:             *      for the convenience of the callee. This name can be
37:             *      used for the file name of the schema, or the callee can just
38:             *      ignore this name and come up with its own name.
39:             *      This is just a hint.
40:             *
41:             * @return
42:             *      a {@link Result} object that encapsulates the actual destination
43:             *      of the schema.
44:             *
45:             *      If the {@link Result} object has a system ID, it must be an
46:             *      absolute system ID. Those system IDs are relativized by the caller and used
47:             *      for &lt;xs:import> statements.
48:             *
49:             *      If the {@link Result} object does not have a system ID, a schema
50:             *      for the namespace URI is generated but it won't be explicitly
51:             *      &lt;xs:import>ed from other schemas.
52:             *
53:             *      If {@code null} is returned, the schema generation for this
54:             *      namespace URI will be skipped.
55:             */
56:            public abstract Result createOutput(String namespaceUri,
57:                    String suggestedFileName) throws IOException;
58:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.