PropertyDescriptor
Stay organized with collections
Save and categorize content based on your preferences.
Describes one Java Bean property.
NOTE: PropertyEditor support is not available in j2objc, since it depends
on core AWT classes.
Public Constructor Summary
Public Method Summary
boolean
|
equals( Object object)
Compares this instance with the specified object and indicates if they
are equal.
|
Class<?>
|
|
Method
|
|
Method
|
|
int
|
hashCode()
Returns an integer hash code for this object.
|
boolean
|
|
boolean
|
|
void
|
|
void
|
|
void
|
|
void
|
|
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Public Constructors
public
PropertyDescriptor
(String propertyName, Class<?> beanClass, String getterName, String setterName)
Parameters
propertyName |
|
beanClass |
|
getterName |
|
setterName |
|
public
PropertyDescriptor
(String propertyName, Method getter, Method setter)
Parameters
propertyName |
|
getter |
|
setter |
|
public
PropertyDescriptor
(String propertyName, Class<?> beanClass)
Public Methods
public
boolean
equals
(Object object)
Compares this instance with the specified object and indicates if they
are equal. In order to be equal, o
must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true
only if this ==
o
. See Writing a correct
equals
method
if you intend implementing your own equals
method.
The general contract for the equals
and hashCode()
methods is that if equals
returns true
for
any two objects, then hashCode()
must return the same value for
these objects. This means that subclasses of Object
usually
override either both methods or neither of them.
Parameters
object |
the object to compare this instance with. |
Returns
true
if the specified object is equal to this Object
; false
otherwise.
public
Class<?>
getPropertyType
()
public
Method
getReadMethod
()
public
Method
getWriteMethod
()
public
int
hashCode
()
Returns an integer hash code for this object. By contract, any two
objects for which equals(Object)
returns true
must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals
comparisons also changes.
See Writing a correct
hashCode
method
if you intend implementing your own hashCode
method.
public
boolean
isBound
()
public
boolean
isConstrained
()
public
void
setBound
(boolean bound)
public
void
setConstrained
(boolean constrained)
public
void
setReadMethod
(Method getter)
public
void
setWriteMethod
(Method setter)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePropertyDescriptor\u003c/code\u003e class describes a single property of a Java Bean, providing information about its type, read and write methods, and constraints.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eFeatureDescriptor\u003c/code\u003e and provides methods to access and modify property attributes.\u003c/p\u003e\n"],["\u003cp\u003eIncludes constructors to initialize a \u003ccode\u003ePropertyDescriptor\u003c/code\u003e using property name, bean class, and getter/setter methods or names.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePropertyEditor\u003c/code\u003e support isn't available in j2objc due to its dependency on AWT classes.\u003c/p\u003e\n"],["\u003cp\u003eOffers methods like \u003ccode\u003egetPropertyType\u003c/code\u003e, \u003ccode\u003egetReadMethod\u003c/code\u003e, \u003ccode\u003egetWriteMethod\u003c/code\u003e to retrieve property information and \u003ccode\u003esetReadMethod\u003c/code\u003e, \u003ccode\u003esetWriteMethod\u003c/code\u003e to modify it.\u003c/p\u003e\n"]]],[],null,[]]