Java Doc for CClassInfo.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.AbstractCTypeInfoImpl
      com.sun.tools.xjc.model.AbstractCElement
         com.sun.tools.xjc.model.CClassInfo

CClassInfo
final public class CClassInfo extends AbstractCElement implements ClassInfo<NType, NClass>,CClassInfoParent,CClass,NClass(Code)
Mutable ClassInfo represenatation.

Schema parsers build these objects.
author:
   Kohsuke Kawaguchi



Field Summary
public  Stringjavadoc
     TODO: revisit this design. we should at least do a basic encapsulation to avoid careless mistakes.
final public  Modelmodel
     The Model object to which this bean belongs.
final public  StringshortName
     short name.

Constructor Summary
public  CClassInfo(Model model, JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations)
    
public  CClassInfo(Model model, CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations)
    
public  CClassInfo(Model model, JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations)
    

Method Summary
public  void_implements(JClass c)
    
final public  Taccept(Visitor<T> visitor)
    
public  voidaddConstructor(String... fieldNames)
     Creates a new constructor declaration and adds it.
public  voidaddProperty(CPropertyInfo prop)
     Adds a new property.
public  Element<NType, NClass>asElement()
    
public  booleandeclaresAttributeWildcard()
     Returns true iff a new attribute wildcard property needs to be declared on this class.
public  StringfullName()
     Returns the FQCN of this bean.
public  CClassInfogetBaseClass()
     This inherited version returns null if this class extends from CClassRef .
public  NClassgetClazz()
    
public  Collection<? extends Constructor>getConstructors()
     list all constructor declarations.
public  QNamegetElementName()
    
public  CNonElementgetInfo()
     Guaranteed to return this.
public  StringgetName()
    
public  JPackagegetOwnerPackage()
    
public  List<CPropertyInfo>getProperties()
     Returns a mutable list.
public  CPropertyInfogetProperty(String name)
     Gets a propery by name.
public  CClassRefgetRefBaseClass()
    
public  CClassInfogetScope()
    
public  StringgetSqueezedName()
     Returns the "squeezed name" of this bean token.
public  CClassInfogetSubstitutionHead()
    
final public  NClassgetType()
    
public  QNamegetTypeName()
    
public  StringgetUserSpecifiedImplClass()
    
public  booleanhasAttributeWildcard()
    
public  voidhasAttributeWildcard(boolean hasAttributeWildcard)
    
public  booleanhasProperties()
    
public  booleanhasSubClasses()
    
public  booleanhasValueProperty()
    
public  booleaninheritsAttributeWildcard()
     Returns true iff this class inherits a wildcard attribute property from its ancestor classes.
public  booleanisBoxedType()
    
public  booleanisElement()
    
public  booleanisFinal()
    
public  booleanisOrdered()
    
public  booleanisSimpleType()
    
public  Iterator<CClassInfo>listSubclasses()
     Enumerates all the sub-classes of this class.
public  CClassInfoParentparent()
    
public  voidsetBaseClass(CClass base)
     This method accepts both CClassInfo (which means the base class is also generated), or CClassRef (which means the base class is already generated and simply referenced.) The latter is treated somewhat special --- from the rest of the model this external base class is invisible.
public  voidsetOrdered(boolean value)
    
public  voidsetUserSpecifiedImplClass(String implClass)
    
public  StringtoString()
    
final public  JClasstoType(Outline o, Aspect aspect)
    

Field Detail
javadoc
public String javadoc(Code)
TODO: revisit this design. we should at least do a basic encapsulation to avoid careless mistakes. Maybe we should even differ the javadoc generation by queueing runners.



model
final public Model model(Code)
The Model object to which this bean belongs.



shortName
final public String shortName(Code)
short name.




Constructor Detail
CClassInfo
public CClassInfo(Model model, JPackage pkg, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations)(Code)



CClassInfo
public CClassInfo(Model model, CClassInfoParent p, String shortName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations)(Code)



CClassInfo
public CClassInfo(Model model, JCodeModel cm, String fullName, Locator location, QName typeName, QName elementName, XSComponent source, CCustomizations customizations)(Code)




Method Detail
_implements
public void _implements(JClass c)(Code)



accept
final public T accept(Visitor<T> visitor)(Code)



addConstructor
public void addConstructor(String... fieldNames)(Code)
Creates a new constructor declaration and adds it.



addProperty
public void addProperty(CPropertyInfo prop)(Code)
Adds a new property.



asElement
public Element<NType, NClass> asElement()(Code)



declaresAttributeWildcard
public boolean declaresAttributeWildcard()(Code)
Returns true iff a new attribute wildcard property needs to be declared on this class.



fullName
public String fullName()(Code)
Returns the FQCN of this bean.



getBaseClass
public CClassInfo getBaseClass()(Code)
This inherited version returns null if this class extends from CClassRef .
See Also:   CClassInfo.getRefBaseClass()



getClazz
public NClass getClazz()(Code)



getConstructors
public Collection<? extends Constructor> getConstructors()(Code)
list all constructor declarations.



getElementName
public QName getElementName()(Code)



getInfo
public CNonElement getInfo()(Code)
Guaranteed to return this.



getName
public String getName()(Code)



getOwnerPackage
public JPackage getOwnerPackage()(Code)



getProperties
public List<CPropertyInfo> getProperties()(Code)
Returns a mutable list.



getProperty
public CPropertyInfo getProperty(String name)(Code)
Gets a propery by name.



getRefBaseClass
public CClassRef getRefBaseClass()(Code)



getScope
public CClassInfo getScope()(Code)



getSqueezedName
public String getSqueezedName()(Code)
Returns the "squeezed name" of this bean token.

The squeezed name of a bean is the concatenation of the names of its outer classes and itself.

Thus if the bean is "org.acme.foo.Bean", then the squeezed name is "Bean", if the bean is "org.acme.foo.Outer1.Outer2.Bean", then "Outer1Outer2Bean".

This is used by the code generator




getSubstitutionHead
public CClassInfo getSubstitutionHead()(Code)



getType
final public NClass getType()(Code)



getTypeName
public QName getTypeName()(Code)



getUserSpecifiedImplClass
public String getUserSpecifiedImplClass()(Code)



hasAttributeWildcard
public boolean hasAttributeWildcard()(Code)



hasAttributeWildcard
public void hasAttributeWildcard(boolean hasAttributeWildcard)(Code)



hasProperties
public boolean hasProperties()(Code)



hasSubClasses
public boolean hasSubClasses()(Code)



hasValueProperty
public boolean hasValueProperty()(Code)



inheritsAttributeWildcard
public boolean inheritsAttributeWildcard()(Code)
Returns true iff this class inherits a wildcard attribute property from its ancestor classes.



isBoxedType
public boolean isBoxedType()(Code)



isElement
public boolean isElement()(Code)



isFinal
public boolean isFinal()(Code)



isOrdered
public boolean isOrdered()(Code)



isSimpleType
public boolean isSimpleType()(Code)



listSubclasses
public Iterator<CClassInfo> listSubclasses()(Code)
Enumerates all the sub-classes of this class.



parent
public CClassInfoParent parent()(Code)



setBaseClass
public void setBaseClass(CClass base)(Code)
This method accepts both CClassInfo (which means the base class is also generated), or CClassRef (which means the base class is already generated and simply referenced.) The latter is treated somewhat special --- from the rest of the model this external base class is invisible. This modeling might need more thoughts to get right.



setOrdered
public void setOrdered(boolean value)(Code)



setUserSpecifiedImplClass
public void setUserSpecifiedImplClass(String implClass)(Code)



toString
public String toString()(Code)



toType
final public JClass toType(Outline o, Aspect aspect)(Code)



Methods inherited from com.sun.tools.xjc.model.AbstractCElement
public Locator getLocator()(Code)(Java Doc)
public boolean isAbstract()(Code)(Java Doc)
public void setAbstract()(Code)(Java Doc)

Methods inherited from com.sun.tools.xjc.model.AbstractCTypeInfoImpl
final public boolean canBeReferencedByIDREF()(Code)(Java Doc)
public JExpression createConstant(Outline outline, XmlString lexical)(Code)(Java Doc)
final public CAdapter getAdapterUse()(Code)(Java Doc)
public CCustomizations getCustomizations()(Code)(Java Doc)
public MimeType getExpectedMimeType()(Code)(Java Doc)
final public Location getLocation()(Code)(Java Doc)
final public XSComponent getSchemaComponent()(Code)(Java Doc)
final public Locatable getUpstream()(Code)(Java Doc)
final public ID idUse()(Code)(Java Doc)
final public boolean isCollection()(Code)(Java Doc)

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.