Java Doc for Model.java in  » 6.0-JDK-Modules » jaxb-xjc » com » sun » tools » xjc » model » 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 xjc » com.sun.tools.xjc.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.tools.xjc.model.Model

Model
final public class Model implements TypeInfoSet<NType, NClass, Void, Void>,CCustomizable(Code)
Root of the object model that represents the code that needs to be generated.

A Model is a schema language neutral representation of the result of a scehma parsing. The back-end then works against this model to turn this into a series of Java source code.
author:
   Kohsuke Kawaguchi



Field Summary
final static  LocatorEMPTY_LOCATOR
    
final  ClassNameAllocatorWrapperallocator
     This allocator has the final say on deciding the class name.
final public  JCodeModelcodeModel
     This model uses this code model exclusively.
 CCustomizationscustomizations
     Single linked list that connects all CCustomizations that belong to this model.
final public  SymbolSpacedefaultSymbolSpace
     Default ID/IDREF symbol space.
final public  Optionsoptions
     Command-line options used for building this model.
public  JClassrootClass
     If non-null, all the generated classes should eventually derive from this class.
public  JClassrootInterface
     If non-null, all the generated interfaces should eventually derive from this interface.
final public  XSSchemaSetschemaComponent
     If this model was built from XML Schema, this field stores the root object of the parse schema model.
public  LongserialVersionUID
     serial version UID to be generated.
public  booleanserializable
     True to generate serializable classes.
public  ImplStructureStrategystrategy
     Specifies the code generation strategy.

Constructor Summary
public  Model(Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent)
    

Method Summary
 voidadd(CEnumLeafInfo e)
    
 voidadd(CClassInfo ci)
    
 voidadd(CElementInfo ei)
    
public  Map<NType, ? extends CArrayInfo>arrays()
     No array mapping generation for XJC.
public  Map<NClass, CClassInfo>beans()
    
public  Map<NType, ? extends CBuiltinLeafInfo>builtins()
    
final public  Map<QName, CClassInfo>createTopLevelBindings()
     Represents the "top-level binding".
public  voiddump(Result out)
    
public  Map<NClass, CEnumLeafInfo>enums()
    
public  OutlinegenerateCode(Options opt, ErrorReceiver receiver)
     Fully-generate the source code into the given model. null if there was any errors.
public  Iterable<? extends CElementInfo>getAllElements()
    
public  CBuiltinLeafInfogetAnyTypeInfo()
    
public  XmlNsFormgetAttributeFormDefault(String nsUri)
    
public  CClassInfogetClassInfo(NClass t)
    
public  CCustomizationsgetCustomizations()
     Gets the global customizations.
public  XmlNsFormgetElementFormDefault(String nsUri)
    
public  CElementInfogetElementInfo(NClass scope, QName name)
    
public  Map<QName, CElementInfo>getElementMappings(NClass scope)
    
public  LocatorgetLocator()
    
final public  NameConvertergetNameConverter()
     Gets the name converter that shall be used to parse XML names into Java names.
public  Navigator<NType, NClass, Void, Void>getNavigator()
    
public  CClassInfoParent.PackagegetPackage(JPackage pkg)
    
public  XSComponentgetSchemaComponent()
    
public  Map<String, String>getSchemaLocations()
    
public  SymbolSpacegetSymbolSpace(String name)
    
public  CNonElementgetTypeInfo(NType type)
    
public  CNonElementgetTypeInfo(Ref<NType, NClass> ref)
    
public  Map<String, String>getXmlNs(String namespaceUri)
     Not implemented in the compile-time model.
public  booleanisPackageLevelAnnotations()
    
public  voidsetNameConverter(NameConverter nameConverter)
    
public  voidsetPackageLevelAnnotations(boolean packageLevelAnnotations)
    
public  Map<QName, TypeUse>typeUses()
    

Field Detail
EMPTY_LOCATOR
final static Locator EMPTY_LOCATOR(Code)



allocator
final ClassNameAllocatorWrapper allocator(Code)
This allocator has the final say on deciding the class name. Must not be null.

Model classes are responsible for using the allocator. This allocator interaction should be transparent to the user/builder of the model.




codeModel
final public JCodeModel codeModel(Code)
This model uses this code model exclusively.



customizations
CCustomizations customizations(Code)
Single linked list that connects all CCustomizations that belong to this model.
See Also:   CCustomizations.next



defaultSymbolSpace
final public SymbolSpace defaultSymbolSpace(Code)
Default ID/IDREF symbol space. Any ID/IDREF without explicit reference to a symbol space is assumed to use this default symbol space.



options
final public Options options(Code)
Command-line options used for building this model.



rootClass
public JClass rootClass(Code)
If non-null, all the generated classes should eventually derive from this class.



rootInterface
public JClass rootInterface(Code)
If non-null, all the generated interfaces should eventually derive from this interface.



schemaComponent
final public XSSchemaSet schemaComponent(Code)
If this model was built from XML Schema, this field stores the root object of the parse schema model. Otherwise null.



serialVersionUID
public Long serialVersionUID(Code)
serial version UID to be generated. null if not to generate serialVersionUID field.



serializable
public boolean serializable(Code)
True to generate serializable classes.



strategy
public ImplStructureStrategy strategy(Code)
Specifies the code generation strategy. Must not be null.




Constructor Detail
Model
public Model(Options opts, JCodeModel cm, NameConverter nc, ClassNameAllocator allocator, XSSchemaSet schemaComponent)(Code)

Parameters:
  nc - Usually this should be set in the constructor, but we do allow this parameterto be initially null, and then set later.
Parameters:
  schemaComponent - The source schema model, if this is built from XSD.




Method Detail
add
void add(CEnumLeafInfo e)(Code)



add
void add(CClassInfo ci)(Code)



add
void add(CElementInfo ei)(Code)



arrays
public Map<NType, ? extends CArrayInfo> arrays()(Code)
No array mapping generation for XJC.



beans
public Map<NClass, CClassInfo> beans()(Code)



builtins
public Map<NType, ? extends CBuiltinLeafInfo> builtins()(Code)



createTopLevelBindings
final public Map<QName, CClassInfo> createTopLevelBindings()(Code)
Represents the "top-level binding".

This is used to support the use of a schema inside WSDL. For XML Schema, the top-level binding is a map from global element declarations to its representation class.

For other schema languages, it should follow the appendicies in WSDL (but in practice no one would use WSDL with a schema language other than XML Schema, so it doesn't really matter.)

This needs to be filled by the front-end.




dump
public void dump(Result out)(Code)



enums
public Map<NClass, CEnumLeafInfo> enums()(Code)



generateCode
public Outline generateCode(Options opt, ErrorReceiver receiver)(Code)
Fully-generate the source code into the given model. null if there was any errors. Otherwise it returns a validOutline object, which captures how the model objectsare mapped to the generated source code.

Add-ons can use those information to further augment the generatedsource code.




getAllElements
public Iterable<? extends CElementInfo> getAllElements()(Code)



getAnyTypeInfo
public CBuiltinLeafInfo getAnyTypeInfo()(Code)



getAttributeFormDefault
public XmlNsForm getAttributeFormDefault(String nsUri)(Code)



getClassInfo
public CClassInfo getClassInfo(NClass t)(Code)



getCustomizations
public CCustomizations getCustomizations()(Code)
Gets the global customizations.



getElementFormDefault
public XmlNsForm getElementFormDefault(String nsUri)(Code)



getElementInfo
public CElementInfo getElementInfo(NClass scope, QName name)(Code)



getElementMappings
public Map<QName, CElementInfo> getElementMappings(NClass scope)(Code)



getLocator
public Locator getLocator()(Code)



getNameConverter
final public NameConverter getNameConverter()(Code)
Gets the name converter that shall be used to parse XML names into Java names.



getNavigator
public Navigator<NType, NClass, Void, Void> getNavigator()(Code)



getPackage
public CClassInfoParent.Package getPackage(JPackage pkg)(Code)



getSchemaComponent
public XSComponent getSchemaComponent()(Code)
Model.schemaComponent



getSchemaLocations
public Map<String, String> getSchemaLocations()(Code)



getSymbolSpace
public SymbolSpace getSymbolSpace(String name)(Code)



getTypeInfo
public CNonElement getTypeInfo(NType type)(Code)



getTypeInfo
public CNonElement getTypeInfo(Ref<NType, NClass> ref)(Code)



getXmlNs
public Map<String, String> getXmlNs(String namespaceUri)(Code)
Not implemented in the compile-time model.



isPackageLevelAnnotations
public boolean isPackageLevelAnnotations()(Code)



setNameConverter
public void setNameConverter(NameConverter nameConverter)(Code)



setPackageLevelAnnotations
public void setPackageLevelAnnotations(boolean packageLevelAnnotations)(Code)



typeUses
public Map<QName, TypeUse> typeUses()(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.