|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
| °³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | |||||||||
java.lang.Objectjava.beans.FeatureDescriptor
java.beans.PropertyDescriptor
java.beans.IndexedPropertyDescriptor
public class IndexedPropertyDescriptor
IndexPropertyDescriptor´Â ¹è¿°ú °°Àº ±â´ÉÀ» °¡Áö´Â ÇÁ·ÎÆÛƼ¸¦ ±â¼úÇÔ°ú ÇÔ²², ¹è¿³»ÀÇ Æ¯Á¤ÀÇ ¿ä¼Ò¿¡ÀÇ ¾×¼¼½º¿¡ »ç¿ëÇÏ´Â À妽º ÷ºÎÀÇ read ¸Þ¼µå³ª Ãâ·Â¸Þ¼µå¸¦ °®Ãß°í ÀÖ½À´Ï´Ù.
À妽º ÷ºÎ ÇÁ·ÎÆÛƼ´Â À妽º°¡ ºÙÁö ¾ÊÀº ´Ü¼øÇÑ read ¹× Ãâ·Â¸Þ¼µåµµ Á¦°øÇÕ´Ï´Ù. À̰͵éÀº À妽º ºÙ¾î read ¸Þ¼µå·ÎºÎÅÍ ¸®ÅÏµÈ ¹è¿ÀÇ read ¹× write¸¦ ½Ç½ÃÇÕ´Ï´Ù.
| »ý¼ºÀÚ °³¿ä | |
|---|---|
IndexedPropertyDescriptor (String propertyName,
Class <? > beanClass)
ÀÌ »ý¼ºÀÚ´Â À妽º ÷ºÎÀÇ ¾×¼¼½º¿Í ¹è¿ ¾×¼¼½ºÀÇ ¾îµð¶óµµ, ¾×¼¼½º¿ë ¸Þ¼µå getFoo ¹× setFoo¸¦ »ç¿ëÇØ, Ç¥ÁØ Java ±Ô¾à¿¡ ÁذÅÇÑ ÇÁ·ÎÆÛƼÀÇ IndexPropertyDescriptor¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
IndexedPropertyDescriptor (String propertyName,
Class <? > beanClass,
String readMethodName,
String writeMethodName,
String indexedReadMethodName,
String indexedWriteMethodName)
ÀÌ »ý¼ºÀÚ´Â ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× write¹«ÀÇ ¸Þ¼µå¸í (À妽º ÷ºÎ ¸Þ¼µå¿Í ºñÀ妽º ÷ºÎ ¸Þ¼µåÀÇ ¾çÂÊ ¸ðµÎ)À» Àμö¿¡ ÃëÇÕ´Ï´Ù. |
|
IndexedPropertyDescriptor (String propertyName,
Method readMethod,
Method writeMethod,
Method indexedReadMethod,
Method indexedWriteMethod)
ÀÌ »ý¼ºÀÚ´Â ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× write¹«ÀÇ Method °´Ã¼¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù. |
|
| ¸Þ¼µå °³¿ä | |
|---|---|
boolean |
equals (Object obj)
PropertyDescriptor¿Í
ÁöÁ¤µÈ °´Ã¼¸¦ Á¶ÇÕÇÕ´Ï´Ù. |
Class <? > |
getIndexedPropertyType ()
À妽º ÷ºÎ ÇÁ·ÎÆÛƼÀÇ ÇüŸ¦ ³ªÅ¸³»´Â Class °´Ã¼¸¦ ÃëµæÇÕ´Ï´Ù. |
Method |
getIndexedReadMethod ()
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ÃëµæÇÕ´Ï´Ù. |
Method |
getIndexedWriteMethod ()
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ÃëµæÇÕ´Ï´Ù. |
int |
hashCode ()
ÀÌ °´Ã¼ÀÇ ÇØ½Ã Äڵ尪À» ¸®ÅÏÇÕ´Ï´Ù. |
void |
setIndexedReadMethod (Method readMethod)
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
void |
setIndexedWriteMethod (Method writeMethod)
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå¸¦ ¼³Á¤ÇÕ´Ï´Ù. |
| Ŭ·¡½º java.beans. PropertyDescriptor ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
|---|
createPropertyEditor,
getPropertyEditorClass,
getPropertyType,
getReadMethod,
getWriteMethod,
isBound,
isConstrained,
setBound,
setConstrained,
setPropertyEditorClass,
setReadMethod,
setWriteMethod |
| Ŭ·¡½º 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 IndexedPropertyDescriptor(String propertyName,
Class <? > beanClass)
throws IntrospectionException
Àμö¸íÀÌ ¡¸fred¡¹ÀÇ °æ¿ì, À妽º ºÙ¾î read ¸Þ¼µå ¡¸getFred¡¹, ºñÀ妽º ÷ºÎ (¹è¿) read ¸Þ¼µå ¡¸getFred¡¹, À妽º ºÙ¾î Ãâ·Â ¸Þ¼µå ¡¸setFred¡¹ ¹× ºñÀ妽º ºÙ¾î Ãâ·Â ¸Þ¼µå ¡¸setFred¡¹°¡ Á¸ÀçÇÏ°Ô µË´Ï´Ù.
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íbeanClass - Ÿ°Ù Bean
Class °´Ã¼
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
public IndexedPropertyDescriptor(String propertyName,
Class <? > beanClass,
String readMethodName,
String writeMethodName,
String indexedReadMethodName,
String indexedWriteMethodName)
throws IntrospectionException
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íbeanClass - Ÿ°Ù Bean
Class °´Ã¼readMethodName - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿·Î¼ Àо ¶§ »ç¿ëÇÏ´Â ¸Þ¼µå¸í. ÇÁ·ÎÆÛƼ°¡ Ãâ·ÂÀü¿ëÀÇ °æ¿ì´Â null, ±× ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎwriteMethodName - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿·Î¼ Ãâ·ÂÇÒ ¶§ »ç¿ëÇÏ´Â ¸Þ¼µå¸í. ÇÁ·ÎÆÛƼ°¡ Àбâ Àü¿ë
ÀÇ °æ¿ì´Â null, ±× ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎindexedReadMethodName - À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå¸í. ÇÁ·ÎÆÛƼ°¡ Ãâ·ÂÀü¿ëÀÇ °æ¿ì´Â nullindexedWriteMethodName - À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå¸í. ÇÁ·ÎÆÛƼ°¡ Àбâ Àü¿ë
ÀÇ °æ¿ì´Â null
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
public IndexedPropertyDescriptor(String propertyName,
Method readMethod,
Method writeMethod,
Method indexedReadMethod,
Method indexedWriteMethod)
throws IntrospectionException
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸íreadMethod - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿·Î¼ Àо ¶§ »ç¿ëÇÏ´Â ¸Þ¼µå. ÇÁ·ÎÆÛƼ°¡ Ãâ·ÂÀü¿ëÀÇ °æ¿ì´Â null, ±× ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎwriteMethod - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿·Î¼ Ãâ·ÂÇÒ ¶§ »ç¿ëÇÏ´Â ¸Þ¼µå. ÇÁ·ÎÆÛƼ°¡ Àбâ Àü¿ë
ÀÇ °æ¿ì´Â null, ±× ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎindexedReadMethod - À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àб⿡ »ç¿ëÇÏ´Â ¸Þ¼µå. ÇÁ·ÎÆÛƼ°¡ Ãâ·ÂÀü¿ëÀÇ °æ¿ì´Â nullindexedWriteMethod - À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Ãâ·ÂÀ» »ç¿ëÇÏ´Â ¸Þ¼µå. ÇÁ·ÎÆÛƼ°¡ Àбâ Àü¿ë
ÀÇ °æ¿ì´Â null
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì| ¸Þ¼µåÀÇ »ó¼¼ |
|---|
public Method getIndexedReadMethod()
public void setIndexedReadMethod(Method readMethod)
throws IntrospectionException
readMethod - »õ·Î¿î À妽º ÷ºÎ read ¸Þ¼µå
IntrospectionException public Method getIndexedWriteMethod()
public void setIndexedWriteMethod(Method writeMethod)
throws IntrospectionException
writeMethod - »õ·Î¿î À妽º ÷ºÎ write ¸Þ¼µå
IntrospectionException public Class <? > getIndexedPropertyType()
Class °´Ã¼¸¦ ÃëµæÇÕ´Ï´Ù. ¸®ÅϵÈ
Class´Â
int µîÀÇ ¿ø½ÃÇü
À» ³ªÅ¸³»´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.
Class °´Ã¼. ÇüŸ¦ ÆÇº°ÇÒ ¼ö ¾ø´Â °æ¿ì´Â nullpublic boolean equals(Object obj)
PropertyDescriptor¿Í
ÁöÁ¤µÈ °´Ã¼¸¦ Á¶ÇÕÇÕ´Ï´Ù. ¾çÀÚ°¡ µî°¡ÀÎ °æ¿ì, true¸¦ ¸®ÅÏÇÕ´Ï´Ù. Àбâ, Ãâ·ÂÇØ, ÇÁ·ÎÆÛƼÀÇ ÇüÅÂ, ÇÁ·ÎÆÛƼ ¿¡µðÅÍ ¹× Ç÷¡±×°¡ µ¿ÀÏÇϸé, 2°³ÀÇ PropertyDescriptor Àº °°½À´Ï´Ù.
PropertyDescriptor ³»ÀÇ equals obj - ºñ±³ ´ë»óÀÇ ÂüÁ¶ °´Ã¼
true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â falseObject.hashCode(),
Hashtable public int hashCode()
Object.hashCode()¸¦
ÂüÁ¶ÇϽʽÿÀ.
PropertyDescriptor ³»ÀÇ 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 µµ ÂüÁ¶ÇϽʽÿÀ.