Java Doc for BeanClass.java in  » IDE-Netbeans » schema2beans » org » netbeans » modules » schema2beansdev » 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 » IDE Netbeans » schema2beans » org.netbeans.modules.schema2beansdev 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.schema2beansdev.AbstractCodeGeneratorClass
      org.netbeans.modules.schema2beansdev.BeanClass

BeanClass
public class BeanClass extends AbstractCodeGeneratorClass implements CodeGeneratorClass(Code)
This class generates the bean classes code. There is one instance of this class per bean to generate. The BeanBuilder creates one instance of the BeanClass class for every bean class to generate, and for each of these instances, the BeanBuilder calls the addPropertyMethod() in order to populate the list of properties contained by the bean. Then it calls the process() method, which makes the class to generate its java output into the output stream specified in the process parameter. The BeanBuilder might give an optional MetaDD bean graph which contains extra information that didn't exist in the dtd. The content of this graph is used to generate extra information about the properties of the bean (for example the default values, well known values, wrapper class)


Field Summary
final static  StringPCL
    
final static  StringPCL_FULL_CLASS_NAME
    
final static  StringVCL
    
final static  StringVCL_FULL_CLASS_NAME
    

Constructor Summary
 BeanClass(BeanBuilder.BeanElement be, GenBeans.Config config)
    

Method Summary
protected  voidaddExtraMethods()
    
 voidgenAccessors(int out)
    
 voidgenAttribute(String name, AttrProp attr)
    
 voidgenAttributes(int out, AttrProp[] attributes, String name)
    
 voidgenBody(int out)
    
 voidgenClassName(int out)
    
 voidgenConstructor(int out)
    
 voidgenDeclarations(int out)
    
 voidgenHeader(int out)
    
 voidgenImports(int out)
    
 voidgenInitializer()
     This method needs to be run after genAccessors is run, so that all of the a.isIndexed values are correct (for attributes).
 voidgenPackage(int out)
    
 voidgenTrailer(int out)
    
 voidgenValidate()
    
protected  voidgenValidateFail(String detail, String name, boolean quoteDetail, ValidateException.FailureType ft, JavaWriter out)
    
public  voidgenerate(OutputStream out, MetaDD mdd)
     Generate the java code in the out stream, using the optional metaDD bean graph.
 voidsetBeanName(String n)
    
public  voidsetInvalidPropertyNames(Map invalidNames)
    
 booleanshouldThrowException()
    
protected  StringtestIfPropertyNotSet(Property prop)
    
protected  StringtestIfPropertySet(Property prop)
    

Field Detail
PCL
final static String PCL(Code)



PCL_FULL_CLASS_NAME
final static String PCL_FULL_CLASS_NAME(Code)



VCL
final static String VCL(Code)



VCL_FULL_CLASS_NAME
final static String VCL_FULL_CLASS_NAME(Code)




Constructor Detail
BeanClass
BeanClass(BeanBuilder.BeanElement be, GenBeans.Config config)(Code)




Method Detail
addExtraMethods
protected void addExtraMethods()(Code)



genAccessors
void genAccessors(int out) throws IOException(Code)



genAttribute
void genAttribute(String name, AttrProp attr)(Code)



genAttributes
void genAttributes(int out, AttrProp[] attributes, String name)(Code)



genBody
void genBody(int out) throws IOException(Code)



genClassName
void genClassName(int out)(Code)



genConstructor
void genConstructor(int out) throws IOException(Code)



genDeclarations
void genDeclarations(int out)(Code)



genHeader
void genHeader(int out) throws IOException(Code)
Generate the different parts of the class



genImports
void genImports(int out)(Code)



genInitializer
void genInitializer() throws IOException(Code)
This method needs to be run after genAccessors is run, so that all of the a.isIndexed values are correct (for attributes).



genPackage
void genPackage(int out)(Code)



genTrailer
void genTrailer(int out)(Code)



genValidate
void genValidate() throws IOException(Code)



genValidateFail
protected void genValidateFail(String detail, String name, boolean quoteDetail, ValidateException.FailureType ft, JavaWriter out) throws IOException(Code)



generate
public void generate(OutputStream out, MetaDD mdd) throws IOException(Code)
Generate the java code in the out stream, using the optional metaDD bean graph.



setBeanName
void setBeanName(String n)(Code)



setInvalidPropertyNames
public void setInvalidPropertyNames(Map invalidNames)(Code)



shouldThrowException
boolean shouldThrowException()(Code)



testIfPropertyNotSet
protected String testIfPropertyNotSet(Property prop)(Code)



testIfPropertySet
protected String testIfPropertySet(Property prop)(Code)



Fields inherited from org.netbeans.modules.schema2beansdev.AbstractCodeGeneratorClass
protected int ACCESS_SECTION(Code)(Java Doc)
final protected static Signature.TypeOfMethod ADD(Code)(Java Doc)
protected int BODY_SECTION(Code)(Java Doc)
final protected static int BOOLEAN(Code)(Java Doc)
final protected static int CLASS(Code)(Java Doc)
protected int CONSTRUCTOR_SECTION(Code)(Java Doc)
protected int DECL_SECTION(Code)(Java Doc)
protected int EQUALS_SECTION(Code)(Java Doc)
final protected static int FINAL(Code)(Java Doc)
final protected static Signature.TypeOfMethod GETTER(Code)(Java Doc)
final protected static Signature.TypeOfMethod GETTERINDEXED(Code)(Java Doc)
final protected static Signature.TypeOfMethod GETTERLIST(Code)(Java Doc)
protected int HASHCODE_SECTION(Code)(Java Doc)
protected int HEADER_SECTION(Code)(Java Doc)
final protected static int IMPORT(Code)(Java Doc)
protected int INITIALIZE_SECTION(Code)(Java Doc)
final protected static int INT(Code)(Java Doc)
protected int MAXVALUE(Code)(Java Doc)
final public static int MAX_DUMP_TREE_LINE_COUNT(Code)(Java Doc)
protected int NEW_METHOD_SECTION(Code)(Java Doc)
final protected static Signature.TypeOfMethod OTHER(Code)(Java Doc)
final protected static int PACKAGE(Code)(Java Doc)
final protected static int PRIVATE(Code)(Java Doc)
final protected static int PROTECTED(Code)(Java Doc)
final protected static int PUBLIC(Code)(Java Doc)
final protected static Signature.TypeOfMethod REMOVE(Code)(Java Doc)
final protected static Signature.TypeOfMethod SETTER(Code)(Java Doc)
final protected static Signature.TypeOfMethod SETTERINDEXED(Code)(Java Doc)
final protected static Signature.TypeOfMethod SIZE(Code)(Java Doc)
final protected static int STATIC(Code)(Java Doc)
final protected static int STRING(Code)(Java Doc)
protected int TRAILER_SECTION(Code)(Java Doc)
final protected static int VOID(Code)(Java Doc)
final protected static String arrKeywords(Code)(Java Doc)
protected ArrayList attrList(Code)(Java Doc)
protected BeanBuilder.BeanElement beanElement(Code)(Java Doc)
protected String className(Code)(Java Doc)
protected GenBeans.Config config(Code)(Java Doc)
protected String fullClassName(Code)(Java Doc)
protected Map generatedNewMethods(Code)(Java Doc)
JavaWriter jw(Code)(Java Doc)
protected MetaDD mdd(Code)(Java Doc)
protected MetaElement metaElement(Code)(Java Doc)
protected String packageName(Code)(Java Doc)
protected PrefixGuesser prefixGuesser(Code)(Java Doc)
protected BeanBuilder.BeanElement rootBeanElement(Code)(Java Doc)

Methods inherited from org.netbeans.modules.schema2beansdev.AbstractCodeGeneratorClass
protected void PC()(Code)(Java Doc)
protected void PO()(Code)(Java Doc)
public Property addProperty(String name, String dtdName, String namespace, GraphNode node, GraphLink l, String classType, int nestedLevel, int eltInstance, int groupInstance, int type, boolean ored, AttrProp[] propAttributes, String constName, String defaultValue, boolean directChild, List extraData, boolean isUnion)(Code)(Java Doc)
protected int beanTree(GraphLink l, StringBuffer str, String indent, String indentBy, int lineCount)(Code)(Java Doc)
protected void begin()(Code)(Java Doc)
protected void beginNoI18N()(Code)(Java Doc)
protected void comment()(Code)(Java Doc)
protected void comment(String s)(Code)(Java Doc)
protected void comment(String s, String s2)(Code)(Java Doc)
protected String commonBeanType()(Code)(Java Doc)
protected int countNumberOfNonAttributeProperties()(Code)(Java Doc)
protected int countNumberOfNonAttributePropertiesRecurse(BeanBuilder.BeanElement be)(Code)(Java Doc)
protected void cr()(Code)(Java Doc)
protected int dumpAttributes(GraphNode elt, StringBuffer str, String indent, int lineCount)(Code)(Java Doc)
public void dumpBeanTree(java.io.Writer out, String indent, String indentBy) throws java.io.IOException(Code)(Java Doc)
protected int dumpBeanTree(BeanBuilder.BeanElement be, StringBuffer str, String indent, String indentBy, int lineCount)(Code)(Java Doc)
protected void end()(Code)(Java Doc)
protected void end(boolean cr)(Code)(Java Doc)
protected void endNoI18N()(Code)(Java Doc)
protected void eol()(Code)(Java Doc)
protected void eol(boolean cr)(Code)(Java Doc)
protected void eolNoI18N()(Code)(Java Doc)
protected void findAttributeOwners()(Code)(Java Doc)
protected Property findProperty(AttrProp attr)(Code)(Java Doc)
protected static String firstInCommaSeparatedList(String lst)(Code)(Java Doc)
protected void gen(String s)(Code)(Java Doc)
protected void gen(StringBuffer s)(Code)(Java Doc)
protected void gen(String s1, String s2)(Code)(Java Doc)
protected void gen(String s1, String s2, String s3)(Code)(Java Doc)
protected void gen(int a)(Code)(Java Doc)
protected void gen(int a, String s)(Code)(Java Doc)
protected void gen(int a, String s, String s2)(Code)(Java Doc)
protected void gen(int a, int b, String s, String s2)(Code)(Java Doc)
protected void gen(int a, int b, String s)(Code)(Java Doc)
protected void gen(int a, int b, int c, String s)(Code)(Java Doc)
protected void gen(int a, int b, int c, int d, String s)(Code)(Java Doc)
protected void gen(Signature sig) throws IOException(Code)(Java Doc)
protected void genCopy(String src, Property a, String justData) throws IOException(Code)(Java Doc)
protected boolean genCopyWillCopy(Property a)(Code)(Java Doc)
protected void genDefaultsAccessable(Property a) throws IOException(Code)(Java Doc)
protected void genForRestrictions(Property a, String attr) throws IOException(Code)(Java Doc)
protected void genInvalidName(String var) throws IOException(Code)(Java Doc)
protected void genNewDefault(Property prop, boolean wantConcreteType) throws IOException(Code)(Java Doc)
protected String genNewMethod(String abstractType, String concreteType) throws IOException(Code)(Java Doc)
protected String genNewMethod(String abstractType, String concreteType, String concreteFullTypeName) throws IOException(Code)(Java Doc)
protected void genResetMutuallyExclusive(Property a, boolean genTest) throws IOException(Code)(Java Doc)
protected void genRethrowExceptions(List exceps)(Code)(Java Doc)
protected void genSetValP(boolean b, String s1, String s2)(Code)(Java Doc)
protected void genSetValue(boolean isScalar, String classType)(Code)(Java Doc)
abstract protected void genValidateFail(String detail, String name, boolean quoteDetail, ValidateException.FailureType ft, JavaWriter out) throws IOException(Code)(Java Doc)
protected void genValidateIf(String test, String name, ValidateException.FailureType ft, JavaWriter out) throws IOException(Code)(Java Doc)
protected void genValidateProperties() throws IOException(Code)(Java Doc)
protected void genWhiteSpaceRestriction(SchemaRep.WhiteSpace ws, String var, String type) throws IOException(Code)(Java Doc)
protected void gencr(String s)(Code)(Java Doc)
protected void gencr(String s, String s2)(Code)(Java Doc)
protected void gencr(int a, String s)(Code)(Java Doc)
protected void gencr(int a, String s, String s2)(Code)(Java Doc)
protected void gencr(int a, int b, String s, String s2)(Code)(Java Doc)
protected void gencr(int a, int b, String s)(Code)(Java Doc)
protected void gencr(int a, int b, int c, String s)(Code)(Java Doc)
protected void gencrNoI18N(String s)(Code)(Java Doc)
protected void gencrNoI18N(String s, String s2)(Code)(Java Doc)
protected void geneol(String s)(Code)(Java Doc)
public void generate(String filename, MetaDD mdd) throws IOException(Code)(Java Doc)
abstract public void generate(OutputStream out, MetaDD mdd) throws IOException(Code)(Java Doc)
public void generateDelegator(OutputStream out, MetaDD mdd, String delegatorClassName, String delegatorPackageName) throws IOException(Code)(Java Doc)
protected void generateDelegator(JavaWriter.Method method, String delegatorClassName) throws IOException(Code)(Java Doc)
protected void generateDelegatorConstructors(String delegatorClassName) throws IOException(Code)(Java Doc)
protected void generateSwitches() throws IOException(Code)(Java Doc)
protected void genforprop()(Code)(Java Doc)
protected void gengetprop()(Code)(Java Doc)
protected void gengetpropbyname()(Code)(Java Doc)
protected void gensig1(String s)(Code)(Java Doc)
protected void gensig2(String s)(Code)(Java Doc)
protected void gentab(int n)(Code)(Java Doc)
protected void get(String s)(Code)(Java Doc)
public String getDefaultNamespace()(Code)(Java Doc)
public Collection getGeneratedMethods()(Code)(Java Doc)
protected MetaElement getMetaElement(BeanBuilder.BeanElement be)(Code)(Java Doc)
protected MetaElement getMetaElement(Property prop)(Code)(Java Doc)
protected MetaElement getMetaElement(String dtdName, String namespace)(Code)(Java Doc)
protected MetaProperty getMetaProperty(Property prop)(Code)(Java Doc)
protected MetaProperty getMetaProperty(String name)(Code)(Java Doc)
public List getPropertyList()(Code)(Java Doc)
protected String getRootClassName()(Code)(Java Doc)
protected Signatures getSignatures(Property a)(Code)(Java Doc)
protected String getTypeFullClassName(Property a)(Code)(Java Doc)
protected String getTypeFullClassName(Property a, String typeName)(Code)(Java Doc)
protected void geti(String s)(Code)(Java Doc)
protected void getidx(String s, boolean b)(Code)(Java Doc)
protected boolean hasDeepCopyConstructor()(Code)(Java Doc)
protected void init(BeanBuilder.BeanElement be, GenBeans.Config config)(Code)(Java Doc)
protected boolean isCloneCallNeededOnType(Property prop)(Code)(Java Doc)
protected boolean isMutableType(Property prop)(Code)(Java Doc)
protected boolean isMutuallyExclusive(Property a)(Code)(Java Doc)
protected boolean isTypeQName(String type)(Code)(Java Doc)
protected void noI18N()(Code)(Java Doc)
protected String parentBeanType()(Code)(Java Doc)
protected void printComment(String indent) throws IOException(Code)(Java Doc)
protected void printGenBuffers(OutputStream out) throws IOException(Code)(Java Doc)
protected void printSchema() throws IOException(Code)(Java Doc)
protected void resetGenBuffers()(Code)(Java Doc)
protected void select(int o)(Code)(Java Doc)
public void setDefaultNamespace(String ns)(Code)(Java Doc)
public void setIndent(String indent)(Code)(Java Doc)
public void setPackageName(String n)(Code)(Java Doc)
public void setPrefixGuesser(PrefixGuesser guesser)(Code)(Java Doc)
public void setRootBeanElement(BeanBuilder.BeanElement element)(Code)(Java Doc)
protected void sp()(Code)(Java Doc)
protected void tabIn()(Code)(Java Doc)
protected String testIfPropertyNotSet(Property prop)(Code)(Java Doc)
protected String testIfPropertySet(Property prop)(Code)(Java Doc)
public String toString()(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.