Java Doc for JavaBeanClass.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.JavaBeanClass

JavaBeanClass
public class JavaBeanClass extends AbstractCodeGeneratorClass implements CodeGeneratorClass(Code)


Field Summary
final protected  intelementTypeSetnull
    

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

Method Summary
protected  voidbeginAttrIterator(String attr, Property a, String elementName)
    
protected  voidbeginAttrProcessing(String nodeName)
    
protected  voiddeclareAttrsForRead(String nodeName)
    
protected  voiddeclareLogger()
    
protected  StringdeclareQName(String namespaceUri, String localPart, String prefix)
     Declare the QNAME as a constant.
public  voidgenAccessors()
    
protected  voidgenAllParts()
    
protected  voidgenCallMethodOnBeans(String methodParams)
    
protected  voidgenCallMethodOnSubBeans(String methodName)
    
public  voidgenChildBeans()
    
public  voidgenClassName(int out)
    
public  voidgenConstructor()
    
 voidgenDeepCopy()
    
public  voidgenElementPositions()
    
public  voidgenEqualsHashCode()
    
public  voidgenExtendBaseBean()
    
protected  voidgenExtendBaseBeanConstructor()
     Whenever we create a constructor, call this method first.
protected  voidgenFetchXMLEventReader()
    
protected  voidgenFinder(GraphNode startingGraphNode, BeanBuilder.Finder finder)
    
protected  voidgenFinder(GraphNode startingGraphNode, String selectorXPath, String fieldXPath, boolean isListFindExpr)
    
protected  voidgenFinder(Property a, GraphNode startingGraphNode, String attr, String keyName, String returnType, String nameToFind, String selectorXPath, String fieldXPath, boolean isListFindExpr)
    
public  voidgenFinishClass(int out)
    
public  voidgenHasChanged()
    
public  voidgenHeader(int out)
    
public  voidgenImports(int out)
    
protected  voidgenMadeChange()
    
public  voidgenName()
    
protected  voidgenNewEvent(Property a, String index, String oldValue, String newValue, String type)
    
public  voidgenPackage(int out)
    
public  voidgenPrintXML()
    
protected  voidgenProcessDocType()
    
public  voidgenPropertiesByName()
    
public  voidgenPropertyEvents()
    
protected  voidgenReadAttr(Property a, String nodeName)
    
protected  voidgenReadAttr(String attr, String type, String dtdName, String nodeName, SchemaRep.WhiteSpace ws, boolean isIndexed, String addMethod, boolean isScalar, SchemaRep.EncodingStyle style)
    
protected  booleangenReadType(String type, String var, String expr, boolean isIndexed, String addMethod, boolean isScalar, SchemaRep.EncodingStyle style)
    
public  voidgenSpecialTypes()
     Generate stuff for special types as needed.
public  voidgenStoreEvents()
    
public  voidgenToString()
    
public  voidgenTrailer(int out)
    
public  voidgenTransactions()
    
protected  voidgenUpdateNamespaces(String namespaceMapName, String firstNamespaceVarName)
    
public  voidgenValidate()
    
protected  voidgenValidateFail(String detail, String name, boolean quoteDetail, ValidateException.FailureType ft, JavaWriter out)
    
public  voidgenVetoable()
    
protected  voidgenWriteAttr(Property a)
    
protected  voidgenWriteAttr(Property a, String varName)
    
protected  voidgenWriteType(Property a, String varName, boolean isAttribute)
    
public  voidgenXMLIO()
    
public  voidgenerate(OutputStream out, MetaDD mdd)
     Generate the java code in the out stream, using the optional metaDD bean graph.
protected  booleanhasDeepCopyConstructor()
    
protected  voidoutWrite(String text)
    
public  voidsetInvalidPropertyNames(Map invalidNames)
    

Field Detail
elementTypeSetnull
final protected int elementTypeSetnull(Code)




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




Method Detail
beginAttrIterator
protected void beginAttrIterator(String attr, Property a, String elementName) throws IOException(Code)



beginAttrProcessing
protected void beginAttrProcessing(String nodeName) throws IOException(Code)



declareAttrsForRead
protected void declareAttrsForRead(String nodeName) throws IOException(Code)



declareLogger
protected void declareLogger() throws IOException(Code)



declareQName
protected String declareQName(String namespaceUri, String localPart, String prefix) throws IOException(Code)
Declare the QNAME as a constant. the name of the identifier choosen.



genAccessors
public void genAccessors() throws IOException(Code)



genAllParts
protected void genAllParts() throws IOException(Code)



genCallMethodOnBeans
protected void genCallMethodOnBeans(String methodParams) throws IOException(Code)



genCallMethodOnSubBeans
protected void genCallMethodOnSubBeans(String methodName) throws IOException(Code)



genChildBeans
public void genChildBeans() throws IOException(Code)



genClassName
public void genClassName(int out) throws IOException(Code)



genConstructor
public void genConstructor() throws IOException(Code)



genDeepCopy
void genDeepCopy() throws IOException(Code)



genElementPositions
public void genElementPositions() throws IOException(Code)



genEqualsHashCode
public void genEqualsHashCode() throws IOException(Code)



genExtendBaseBean
public void genExtendBaseBean() throws IOException(Code)



genExtendBaseBeanConstructor
protected void genExtendBaseBeanConstructor() throws IOException(Code)
Whenever we create a constructor, call this method first.



genFetchXMLEventReader
protected void genFetchXMLEventReader() throws IOException(Code)



genFinder
protected void genFinder(GraphNode startingGraphNode, BeanBuilder.Finder finder) throws IOException(Code)



genFinder
protected void genFinder(GraphNode startingGraphNode, String selectorXPath, String fieldXPath, boolean isListFindExpr) throws IOException(Code)



genFinder
protected void genFinder(Property a, GraphNode startingGraphNode, String attr, String keyName, String returnType, String nameToFind, String selectorXPath, String fieldXPath, boolean isListFindExpr) throws IOException(Code)



genFinishClass
public void genFinishClass(int out)(Code)



genHasChanged
public void genHasChanged() throws IOException(Code)



genHeader
public void genHeader(int out) throws IOException(Code)



genImports
public void genImports(int out)(Code)



genMadeChange
protected void genMadeChange() throws IOException(Code)



genName
public void genName() throws IOException(Code)



genNewEvent
protected void genNewEvent(Property a, String index, String oldValue, String newValue, String type) throws IOException(Code)



genPackage
public void genPackage(int out)(Code)



genPrintXML
public void genPrintXML() throws IOException(Code)



genProcessDocType
protected void genProcessDocType() throws IOException(Code)



genPropertiesByName
public void genPropertiesByName() throws IOException(Code)



genPropertyEvents
public void genPropertyEvents() throws IOException(Code)



genReadAttr
protected void genReadAttr(Property a, String nodeName) throws IOException(Code)



genReadAttr
protected void genReadAttr(String attr, String type, String dtdName, String nodeName, SchemaRep.WhiteSpace ws, boolean isIndexed, String addMethod, boolean isScalar, SchemaRep.EncodingStyle style) throws IOException(Code)



genReadType
protected boolean genReadType(String type, String var, String expr, boolean isIndexed, String addMethod, boolean isScalar, SchemaRep.EncodingStyle style) throws IOException(Code)
whether or not a setter was generated.



genSpecialTypes
public void genSpecialTypes() throws IOException(Code)
Generate stuff for special types as needed.



genStoreEvents
public void genStoreEvents() throws IOException(Code)



genToString
public void genToString() throws IOException(Code)



genTrailer
public void genTrailer(int out)(Code)



genTransactions
public void genTransactions() throws IOException(Code)



genUpdateNamespaces
protected void genUpdateNamespaces(String namespaceMapName, String firstNamespaceVarName) throws IOException(Code)



genValidate
public void genValidate() throws IOException(Code)



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



genVetoable
public void genVetoable() throws IOException(Code)



genWriteAttr
protected void genWriteAttr(Property a) throws IOException(Code)



genWriteAttr
protected void genWriteAttr(Property a, String varName) throws IOException(Code)



genWriteType
protected void genWriteType(Property a, String varName, boolean isAttribute) throws IOException(Code)



genXMLIO
public void genXMLIO() 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.



hasDeepCopyConstructor
protected boolean hasDeepCopyConstructor()(Code)



outWrite
protected void outWrite(String text) throws IOException(Code)



setInvalidPropertyNames
public void setInvalidPropertyNames(Map invalidNames)(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.