|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.beans.FeatureDescriptor
java.beans.PropertyDescriptor
public class PropertyDescriptor
PropertyDescriptor´Â Java Bean°¡ ÇÑ ¹úÀÇ ¾×¼¼½º¿ë ¸Þ¼µå¸¦ »ç¿ëÇØ export ÇÏ´Â ´ÜÀÏÀÇ ÇÁ·ÎÆÛƼ¸¦ ±â¼úÇÕ´Ï´Ù.
| »ý¼ºÀÚ °³¿ä | |
|---|---|
PropertyDescriptor (String propertyName,
Class <? > beanClass)
¾×¼¼½º¿ë ¸Þ¼µå getFoo ¹× setFoo¸¦ »ç¿ëÇØ, Ç¥ÁØÀÇ Java ±Ô¾à¿¡ ÁذÅÇϰí ÀÖ´Â ÇÁ·ÎÆÛƼÀÇ PropertyDescriptor¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
PropertyDescriptor (String propertyName,
Class <? > beanClass,
String readMethodName,
String writeMethodName)
ÀÌ »ý¼ºÀÚ´Â ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× write¹«ÀÇ ¸Þ¼µå¸íÀ» Àμö¿¡ ÃëÇÕ´Ï´Ù. |
|
PropertyDescriptor (String propertyName,
Method readMethod,
Method writeMethod)
ÀÌ »ý¼ºÀÚ´Â ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× write¹«ÀÇ Method °´Ã¼¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
PropertyEditor |
createPropertyEditor (Object bean)
ÇöÀçÀÇ ÇÁ·ÎÆÛƼ ¿¡µðÅÍ Å¬·¡½º¸¦ »ç¿ëÇØ, ÇÁ·ÎÆÛƼ ¿¡µðÅÍÀÇ ÀνºÅϽº¸¦ ±¸ÃàÇÕ´Ï´Ù. |
boolean |
equals (Object obj)
PropertyDescriptor¿Í
ÁöÁ¤µÈ °´Ã¼¸¦ Á¶ÇÕÇÕ´Ï´Ù. |
Class <? > |
getPropertyEditorClass ()
ÀÌ ÇÁ·ÎÆÛƼÀÇ ¸í½ÃÀûÀÎ µî·ÏÀÌ ³¡³ PropertyEditor Ŭ·¡½º¸¦ ÃëµæÇÕ´Ï´Ù. |
Class <? > |
getPropertyType ()
ÇÁ·ÎÆÛƼÀÇ Class °´Ã¼¸¦ ÃëµæÇÕ´Ï´Ù. |
Method |
getReadMethod ()
ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ÃëµæÇÕ´Ï´Ù. |
Method |
getWriteMethod ()
ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ÃëµæÇÕ´Ï´Ù. |
int |
hashCode ()
ÀÌ °´Ã¼ÀÇ ÇØ½Ã Äڵ尪À» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isBound ()
¹Ù¿îµå ÇÁ·ÎÆÛƼ¸¦ °»½ÅÇØ, ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ PropertyChange À̺¥Æ®°¡ Æ®¸®°Å µÇµµ·Ï ÇÕ´Ï´Ù. |
boolean |
isConstrained ()
Á¦¾à ÇÁ·ÎÆÛƼÀÇ °»½ÅÀ» ½ÃµµÇØ ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ VetoableChange À̺¥Æ®°¡ Æ®¸®°Å µÇµµ·Ï ÇÕ´Ï´Ù. |
void |
setBound (boolean bound)
¹Ù¿îµå ÇÁ·ÎÆÛƼ¸¦ °»½ÅÇØ, ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ PropertyChange À̺¥Æ®°¡ Æ®¸®°Å µÇµµ·Ï ÇÕ´Ï´Ù. |
void |
setConstrained (boolean constrained)
Á¦¾à ÇÁ·ÎÆÛƼÀÇ °»½ÅÀ» ½ÃµµÇØ ÇÁ·ÎÆÛƼÀÇ º¯°æ½Ã¿¡ VetoableChange À̺¥Æ®°¡ Æ®¸®°Å µÇµµ·Ï ÇÕ´Ï´Ù. |
void |
setPropertyEditorClass (Class <? > propertyEditorClass)
º¸Åë, PropertyEditor´Â PropertyEditorManager¸¦ »ç¿ëÇØ °Ë»öµË´Ï´Ù¸¸, ¾î¶°ÇÑ ÀÌÀ¯¿¡ ÀÇÇØ ƯÁ¤ÀÇ PropertyEditor¸¦ ÁöÁ¤ ÇÁ·ÎÆÛƼ¿¡ °ü·ÃÁþ°í ½ÍÀº °æ¿ì´Â ÀÌ ¸Þ¼µå¸¦ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. |
void |
setReadMethod (Method readMethod)
ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setWriteMethod (Method writeMethod)
ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
| Ŭ·¡½º java.beans. FeatureDescriptor ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
attributeNames,
getDisplayName,
getName,
getShortDescription,
getValue,
isExpert,
isHidden,
isPreferred,
setDisplayName,
setExpert,
setHidden,
setName,
setPreferred,
setShortDescription,
setValue |
| Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
clone,
finalize,
getClass,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| »ý¼ºÀÚ »ó¼¼ |
|---|
public PropertyDescriptor(String propertyName,
Class <? > beanClass)
throws IntrospectionException
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íbeanClass - Ÿ°Ù bean
Class °´Ã¼. ¿¹¸¦ µé¾î
sun.beans.OurButton.class
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
public PropertyDescriptor(String propertyName,
Class <? > beanClass,
String readMethodName,
String writeMethodName)
throws IntrospectionException
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íbeanClass - Ÿ°Ù bean
Class °´Ã¼. ¿¹¸¦ µé¾î
sun.beans.OurButton.classreadMethodName - ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå¸í. ÇÁ·ÎÆÛƼ°¡ Ãâ·ÂÀü¿ëÀÇ °æ¿ì´Â nullwriteMethodName - ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå¸í. ÇÁ·ÎÆÛƼ°¡ Àбâ Àü¿ë
ÀÇ °æ¿ì´Â null
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
public PropertyDescriptor(String propertyName,
Method readMethod,
Method writeMethod)
throws IntrospectionException
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íreadMethod - ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå. ÇÁ·ÎÆÛƼ°¡ Ãâ·ÂÀü¿ëÀÇ °æ¿ì´Â nullwriteMethod - ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå. ÇÁ·ÎÆÛƼ°¡ Àбâ Àü¿ë
ÀÇ °æ¿ì´Â null
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public Class <? > getPropertyType()
ReadMethod°¡ µ¹·ÁÁÖ´Â ÇüÅÂ
public Method getReadMethod()
public void setReadMethod(Method readMethod)
throws IntrospectionException
readMethod - »õ·Î¿î read ¸Þ¼µå
IntrospectionException public Method getWriteMethod()
public void setWriteMethod(Method writeMethod)
throws IntrospectionException
writeMethod - »õ·Î¿î write ¸Þ¼µå
IntrospectionException public boolean isBound()
public void setBound(boolean bound)
bound - ¹Ù¿îµå ÇÁ·ÎÆÛƼÀÇ °æ¿ì´Â truepublic boolean isConstrained()
public void setConstrained(boolean constrained)
constrained - Á¦¾à ÇÁ·ÎÆÛƼÀÇ °æ¿ì´Â truepublic void setPropertyEditorClass(Class <? > propertyEditorClass)
propertyEditorClass - PropertyEditor
Classpublic Class <? > getPropertyEditorClass()
public PropertyEditor createPropertyEditor(Object bean)
ÇÁ·ÎÆÛƼ ¿¡µðÅÍ Å¬·¡½º¿¡ Object Àμö¸¦ ÃëÇÏ´Â public »ý¼ºÀÚ°¡ ÀÖ´Â °æ¿ì´Â bean ÆÄ¶ó¹ÌÅ͸¦ Àμö·Î¼ »ç¿ëÇØ È£ÃâÇÕ´Ï´Ù. ±× ¿ÜÀÇ °æ¿ì´Â µðÆúÆ®ÀÇ »ý¼ºÀÚ°¡ È£ÃâµË´Ï´Ù.
bean - ¼Ò½º °´Ã¼
public boolean equals(Object obj)
PropertyDescriptor¿Í
ÁöÁ¤µÈ °´Ã¼¸¦ Á¶ÇÕÇÕ´Ï´Ù. ¾çÀÚ°¡ µî°¡ÀÎ °æ¿ì, true¸¦ ¸®ÅÏÇÕ´Ï´Ù. Àбâ, Ãâ·ÂÇØ, ÇÁ·ÎÆÛƼÀÇ ÇüÅÂ, ÇÁ·ÎÆÛƼ ¿¡µðÅÍ ¹× Ç÷¡±×°¡ µ¿ÀÏÇϸé, 2°³ÀÇ PropertyDescriptor´Â °°½À´Ï´Ù.
Object ³»ÀÇ equals obj - ºñ±³ ´ë»óÀÇ ÂüÁ¶ °´Ã¼
true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falseObject.hashCode(),
Hashtable public int hashCode()
Object.hashCode()¸¦
ÂüÁ¶ÇϽʽÿÀ.
Object ³»ÀÇ hashCode Object.equals(java.lang.Object),
Hashtable
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.