Java Doc for SchemaUtil.java in  » ESB » cbesb-1.2 » com » bostechcorp » cbesb » common » wsdl » 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 » ESB » cbesb 1.2 » com.bostechcorp.cbesb.common.wsdl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bostechcorp.cbesb.common.wsdl.SchemaUtil

SchemaUtil
public class SchemaUtil (Code)

author:
   mpreston


Field Summary
protected static transient  Loglogger
    
protected static  XSDFactoryxsdFactory
     A cached XSDFactory: one per lifetime.
protected static  XSDPackagexsdPackage
     A cached XSDPackage: one per lifetime.


Method Summary
public static  XSDAnnotationaddUserInformation(XSDConcreteComponent component, String sourceURI, String text)
     Add a local annotation with userInfo to the given item.
public static  XSDSchemacreateBlankSchema()
    
public static  XSDSchemacreateBlankSchema(String targetNamespace, String targetPrefix)
    
public static  XSDSchemacreateSchemaFromElement(Element schemaElement)
    
public static  XSDFactorygetXSDFactory()
    

The initialization sequence depends on some specific versions of Eclipse and may depend on how your application is run (as an Eclipse plugin or as a headless program, etc.).

public static  XSDSchemaloadSchema(File schema)
     Use the ResourceSet to load a schema into the library.

This performs initialization of various dependencies and then asks a ResourceSet to parse and load the schema and any dependencies into memory.

public static  voidsaveXSDSchema(XSDSchema xsdSchema, File destFile)
    

Field Detail
logger
protected static transient Log logger(Code)



xsdFactory
protected static XSDFactory xsdFactory(Code)
A cached XSDFactory: one per lifetime.
See Also:   SchemaUtil.getXSDFactory()



xsdPackage
protected static XSDPackage xsdPackage(Code)
A cached XSDPackage: one per lifetime.
See Also:   SchemaUtil.getXSDFactory()





Method Detail
addUserInformation
public static XSDAnnotation addUserInformation(XSDConcreteComponent component, String sourceURI, String text)(Code)
Add a local annotation with userInfo to the given item.

Note: We take an XSDConcreteComponent, however we must then cast it to one of the types that has a setAnnotation call defined, since it doesn't have a clear 'parent' interface for annotations.

Also note that UserInformation and ApplicationInformation objects can only be added after the parent of the annotation has been added to an XSDSchema object. This is because these objects are modeled in the concrete DOM layer only, and otherwise will throw a DOMException.


Parameters:
  component - to add annotation to; may be any kind of XSDConcreteComponent object including an XSDSchema
Parameters:
  sourceURI - to set for the userInformation
Parameters:
  text - text to add as the userInformation (xsd:documentation) node to the annotation the XSDAnnotation object created, after having been added to the component; null if any error occoured




createBlankSchema
public static XSDSchema createBlankSchema()(Code)



createBlankSchema
public static XSDSchema createBlankSchema(String targetNamespace, String targetPrefix)(Code)



createSchemaFromElement
public static XSDSchema createSchemaFromElement(Element schemaElement)(Code)



getXSDFactory
public static XSDFactory getXSDFactory()(Code)

The initialization sequence depends on some specific versions of Eclipse and may depend on how your application is run (as an Eclipse plugin or as a headless program, etc.). Note this caches the package and factory objects, and does not bother to re-call init() unless needed. This actual implementation is meant to be run as a standalone headless program although it may be suitable for other applications.

an XSDFactory already initialized; or a cached one if we'vebeen previously called



loadSchema
public static XSDSchema loadSchema(File schema)(Code)
Use the ResourceSet to load a schema into the library.

This performs initialization of various dependencies and then asks a ResourceSet to parse and load the schema and any dependencies into memory. We then iterate through the Resources in the Resource set to find the first one which is the specific schema we asked for. If this schema included, imported, or redefined any other schemas, they would be reflected as additional Resources in the set that we could also access.


Parameters:
  URL - of a schema.xsd file a schema object constructed from that model; null if error
throws:
  any - underlying exceptions



saveXSDSchema
public static void saveXSDSchema(XSDSchema xsdSchema, File destFile) throws IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.