Java Doc for BoundClass.java in  » XML » jibx-1.1.5 » org » jibx » binding » classes » 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 » XML » jibx 1.1.5 » org.jibx.binding.classes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jibx.binding.classes.BoundClass

BoundClass
public class BoundClass (Code)
Bound class handler. Each instance controls and organizes information for a class included in one or more binding definitions.
author:
   Dennis M. Sosnoski
version:
   1.0




Method Summary
public  voidaddFactory(String fact)
     Add binding factory to class.
public  StringderiveClassName(String prefix, String suffix)
     Derive generated class name for bound class.
public  ClassFilegetClassFile()
     Get bound class file information.
public  StringgetClassName()
     Get bound class file name.
public static  BoundClassgetInstance(ClassFile cf, BoundClass context)
     Get binding information for class.
public static  BoundClassgetInstance(String name, BoundClass context)
     Get binding information for class.
public  ClassItemgetLoadMethod(ClassItem item, ClassFile from)
     Get load access method for member of this class.
public  ClassFilegetMungedFile()
     Get munged class file information.
public  ClassItemgetStoreMethod(ClassItem item, ClassFile from)
     Get store access method for member of this class.
public  BindingMethodgetUniqueMethod(MethodBuilder builder)
     Get unique method.
public  BindingMethodgetUniqueNamed(MethodBuilder builder)
     Get unique method.
public  booleanisDirectAccess()
     Check if class being changed directly.
public static  voidreset()
     Discard cached information and reset in preparation for a new binding run.
public  voidsetFactoryList()
     Generate factory list.
public static  voidsetModify(File root, String pkg)
     Discard cached information and reset in preparation for a new binding run.



Method Detail
addFactory
public void addFactory(String fact)(Code)
Add binding factory to class. Makes sure that there's no surrogate class for code generation, then delegates to the modified class handling.
Parameters:
  fact - binding factory name



deriveClassName
public String deriveClassName(String prefix, String suffix)(Code)
Derive generated class name for bound class. This generates a JiBX class name from the name of this class, using the supplied prefix and suffix information. The derived class name is always in the same package as the munged class for this class.
Parameters:
  prefix - generated class name prefix
Parameters:
  suffix - generated class name suffix derived class name



getClassFile
public ClassFile getClassFile()(Code)
Get bound class file information. class file information for bound class



getClassName
public String getClassName()(Code)
Get bound class file name. name of bound class



getInstance
public static BoundClass getInstance(ClassFile cf, BoundClass context) throws JiBXException(Code)
Get binding information for class. This finds the class in which code generation for the target class takes place. Normally this class will be the target class itself, but in cases where the target class is not modifiable an alternate class will be used. This can take two forms. If the context class is provided and it is a subclass of the target class, code for the target class is instead added to the context class. If there is no context class, or if the context class is not a subclass of the target class, a unique catch-all class is used.
Parameters:
  cf - bound class information
Parameters:
  context - context class for code generation, or nullif no context binding information for class
throws:
  JiBXException - on configuration error



getInstance
public static BoundClass getInstance(String name, BoundClass context) throws JiBXException(Code)
Get binding information for class. This version takes a fully-qualified class name, calling the paired method if necessary to create a new instance.
Parameters:
  name - fully qualified name of bound class
Parameters:
  context - context class for code generation, or nullif no context binding information for class
throws:
  JiBXException - on configuration error



getLoadMethod
public ClassItem getLoadMethod(ClassItem item, ClassFile from) throws JiBXException(Code)
Get load access method for member of this class. If the access method does not already exist it's created by this call. If the access method does exist but without access from the context class, the access permission on the method is broadened (from package to protected or public, or from protected to public).
Parameters:
  item - field or method to be accessed
Parameters:
  from - context class from which access is required the item itself if it's accessible from the required context, anaccess method that is accessible if the item is not itself
throws:
  JiBXException - on configuration error



getMungedFile
public ClassFile getMungedFile()(Code)
Get munged class file information. class file information for class being modified



getStoreMethod
public ClassItem getStoreMethod(ClassItem item, ClassFile from) throws JiBXException(Code)
Get store access method for member of this class. If the access method does not already exist it's created by this call. If the access method does exist but without access from the context class, the access permission on the method is broadened (from package to protected or public, or from protected to public).
Parameters:
  item - field or method to be accessed
Parameters:
  from - context class from which access is required the item itself if it's accessible from the required context, anaccess method that is accessible if the item is not itself
throws:
  JiBXException - on configuration error



getUniqueMethod
public BindingMethod getUniqueMethod(MethodBuilder builder) throws JiBXException(Code)
Get unique method. Just delegates to the modified class handling, with unique suffix appended to method name.
Parameters:
  builder - method to be defined defined method item
throws:
  JiBXException - on configuration error



getUniqueNamed
public BindingMethod getUniqueNamed(MethodBuilder builder) throws JiBXException(Code)
Get unique method. Just delegates to the modified class handling. The supplied name is used without change.
Parameters:
  builder - method to be defined defined method item
throws:
  JiBXException - on configuration error



isDirectAccess
public boolean isDirectAccess()(Code)
Check if class being changed directly. true if bound class is being modified,false if using a surrogate



reset
public static void reset()(Code)
Discard cached information and reset in preparation for a new binding run.



setFactoryList
public void setFactoryList() throws JiBXException(Code)
Generate factory list. Makes sure that there's no surrogate class for code generation, then delegates to the modified class handling.
throws:
  JiBXException - on configuration error



setModify
public static void setModify(File root, String pkg)(Code)
Discard cached information and reset in preparation for a new binding run.



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.