Java Doc for Property.java in  » Testing » Ejb3Unit » com » bm » introspectors » 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 » Testing » Ejb3Unit » com.bm.introspectors 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.bm.introspectors.Property

Property
public class Property (Code)
Every persistent property of a EJB3 entity bean can be defined as field access or method access (using setter/getters). The property class abstracts from the access method and represtets a field (AccessType.FIELD) OR getter/setter (AccessType.PROPERTY)
author:
   Daniel Wiese



Constructor Summary
public  Property(Class declaringClass, PropertyDescriptor property)
     Contructor using getter/setter access.
public  Property(FieldAnnotationMetadata metaData)
     Contructor using field access.
public  Property(Field fieldName)
     Contructor uing field access.

Method Summary
public  booleanequals(Object other)
     Equals.
public  TgetAnnotation(Class<T> annnotation)
     Returns a annotation for the current property if present.
public  ClassgetDeclaringClass()
     Returns the class where the property is declared.
public  ObjectgetField(Object instance)
     Returns a value of an field.
public  TypegetGenericType()
     Returns the generic Type of this property.
public  Class<Object>getGenericTypeClass()
     If the propety represents a genericType (e.g.
public  StringgetName()
     Return the name.
public  PropertyDescriptorgetProperty()
     Returns the property.
public  StringgetPropertyName()
     Returns null if the accestype is field.
public  ClassgetType()
     Returns the type of the property.
public  inthashCode()
     Hash Code.
public  voidsetField(Object instance, Object value)
     Sets a value of the field / getterMethod.
public  StringtoString()
     To String.


Constructor Detail
Property
public Property(Class declaringClass, PropertyDescriptor property)(Code)
Contructor using getter/setter access.
Parameters:
  declaringClass - -the class wich declares the property
Parameters:
  property - -the property descriptor



Property
public Property(FieldAnnotationMetadata metaData)(Code)
Contructor using field access. Ejb3 metadata is passed directly.
Parameters:
  metaData - the ejb3 metadata information



Property
public Property(Field fieldName)(Code)
Contructor uing field access.
Parameters:
  fieldName - -der name des feldes




Method Detail
equals
public boolean equals(Object other)(Code)
Equals.
Parameters:
  other - the other to compare - true if equal
See Also:   java.lang.Object.equals(java.lang.Object)



getAnnotation
public T getAnnotation(Class<T> annnotation)(Code)
Returns a annotation for the current property if present. <
Parameters:
  T - >the annotation type.
Parameters:
  annnotation - the annotation class the annotation instance



getDeclaringClass
public Class getDeclaringClass()(Code)
Returns the class where the property is declared. Returns the declaringClass.



getField
public Object getField(Object instance) throws IllegalAccessException(Code)
Returns a value of an field.
author:
   Daniel Wiese
Parameters:
  instance - -the instance - the value of the paremeter of the instance
throws:
  IllegalAccessException - -in error case



getGenericType
public Type getGenericType()(Code)
Returns the generic Type of this property. E.g. id the proprty is. Collection/Order/ then Order will be returned.
author:
   Daniel Wiese
since:
   28.10.2005 the generic Type of this property



getGenericTypeClass
public Class<Object> getGenericTypeClass()(Code)
If the propety represents a genericType (e.g. Collection/Order/) ! Typed class thit ONE type) -> then the type is returned. - the type of the typed class or null



getName
public String getName()(Code)
Return the name. - the name



getProperty
public PropertyDescriptor getProperty()(Code)
Returns the property. Returns the property.



getPropertyName
public String getPropertyName()(Code)
Returns null if the accestype is field. Returns the propertyName.



getType
public Class getType()(Code)
Returns the type of the property. - the type



hashCode
public int hashCode()(Code)
Hash Code. the hash code
See Also:   java.lang.Object.hashCode



setField
public void setField(Object instance, Object value) throws IllegalAccessException(Code)
Sets a value of the field / getterMethod.
author:
   Daniel Wiese
Parameters:
  instance - -the instance (Typed)
Parameters:
  value - -the new value
throws:
  IllegalAccessException - -in error case



toString
public String toString()(Code)
To String. - formatted string
See Also:   java.lang.Object.toString



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.