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


java.lang.Object
   org.jibx.binding.def.PropertyDefinition

PropertyDefinition
public class PropertyDefinition (Code)
Property definition from binding. This organizes shared information for bindings linked to fields or get/set methods of an object, and provides methods for related code generation.
author:
   Dennis M. Sosnoski



Constructor Summary
public  PropertyDefinition(IContainer parent, IContextObj obj, String type, boolean isthis, boolean opt, String fname, String test, String get, String set)
     Constructor.
public  PropertyDefinition(IContextObj obj, boolean opt)
     Constructor for "this" object reference.
public  PropertyDefinition(String type, IContextObj obj, boolean opt)
     Constructor for implicit object reference.

Method Summary
public  voidgenLoad(ContextMethodBuilder mb)
     Generate code to load property value to stack.
public  voidgenStore(MethodBuilder mb)
     Generate code to store property value from stack.
public  BranchWrappergenTest(ContextMethodBuilder mb)
     Generate code to test if property is present.
public  StringgetGetValueType()
     Get value type as fully qualified name for loaded property value.
public  StringgetName()
     Get property name.
public  StringgetSetValueType()
     Get value type as fully qualified name for stored property value.
public  StringgetTypeName()
     Get declared type fully qualified name.
public  booleanhasTest()
     Check if property has presence test.
public  booleanisImplicit()
     Check if property is implicit value from collection.
public  booleanisOptional()
     Check if property is optional.
public  booleanisThis()
     Check if property is "this" reference for object.
public  voidsetOptional(boolean opt)
     Set flag for an optional property.
public  voidswitchProperty()
     Switch property from "this" to "implicit".
public  StringtoString()
    


Constructor Detail
PropertyDefinition
public PropertyDefinition(IContainer parent, IContextObj obj, String type, boolean isthis, boolean opt, String fname, String test, String get, String set) throws JiBXException(Code)
Constructor.
Parameters:
  parent - containing binding definition structure
Parameters:
  obj - containing object context
Parameters:
  type - fully qualified name of type
Parameters:
  isthis - "this" object reference flag
Parameters:
  opt - optional property flag
Parameters:
  fname - containing object field name for property (may benull)
Parameters:
  test - containing object method to test for property present (may benull)
Parameters:
  get - containing object method to get property value (may benull)
Parameters:
  set - containing object method to set property value (may benull)
throws:
  JiBXException - if configuration error



PropertyDefinition
public PropertyDefinition(IContextObj obj, boolean opt)(Code)
Constructor for "this" object reference.
Parameters:
  obj - containing object context
Parameters:
  opt - optional property flag



PropertyDefinition
public PropertyDefinition(String type, IContextObj obj, boolean opt)(Code)
Constructor for implicit object reference.
Parameters:
  type - object type supplied
Parameters:
  obj - containing object context
Parameters:
  opt - optional property flag




Method Detail
genLoad
public void genLoad(ContextMethodBuilder mb) throws JiBXException(Code)
Generate code to load property value to stack. The generated code assumes that the top of the stack is the reference for the containing object. It consumes this and leaves the actual value on the stack. If the property value is not directly accessible from the context of the method being generated this automatically constructs an access method and uses that method.
Parameters:
  mb - method builder
throws:
  JiBXException - if configuration error



genStore
public void genStore(MethodBuilder mb) throws JiBXException(Code)
Generate code to store property value from stack. The generated code assumes that the reference to the containing object and the value to be stored have already been pushed on the stack. It consumes these, leaving nothing. If the property value is not directly accessible from the context of the method being generated this automatically constructs an access method and uses that method.
Parameters:
  mb - method builder
throws:
  JiBXException - if configuration error



genTest
public BranchWrapper genTest(ContextMethodBuilder mb)(Code)
Generate code to test if property is present. The generated code assumes that the top of the stack is the reference for the containing object, and consumes this value for the test. The target for the returned branch instruction must be set by the caller.
Parameters:
  mb - method builder wrapper for branch instruction taken when property is missing



getGetValueType
public String getGetValueType()(Code)
Get value type as fully qualified name for loaded property value. fully qualified class name of value type



getName
public String getName()(Code)
Get property name. If a field is defined this is the same as the field; otherwise it is either the get method name (with leading "get" stripped, if present) or the set method (with leading "set" stripped, if present), whichever is found. name for this property



getSetValueType
public String getSetValueType()(Code)
Get value type as fully qualified name for stored property value. fully qualified class name of value type



getTypeName
public String getTypeName()(Code)
Get declared type fully qualified name. fully qualified class name of declared type



hasTest
public boolean hasTest()(Code)
Check if property has presence test. Code needs to be generated to check for the presence of the property if it is optional and either a test method is defined or the value is an object reference. true if presence test needed, false ifnot



isImplicit
public boolean isImplicit()(Code)
Check if property is implicit value from collection. true if implicit, false if not



isOptional
public boolean isOptional()(Code)
Check if property is optional. true if optional, false if required



isThis
public boolean isThis()(Code)
Check if property is "this" reference for object. true if reference to "this", false ifnot



setOptional
public void setOptional(boolean opt)(Code)
Set flag for an optional property.
Parameters:
  opt - true if optional property, false ifnot



switchProperty
public void switchProperty()(Code)
Switch property from "this" to "implicit".



toString
public String toString()(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.