JavaTM 2
Platform
Std.  Ed.  v1. 4.0

java.beans
Ŭ·¡½º IndexedPropertyDescriptor

java.lang.Object 
  |
  +--java.beans.FeatureDescriptor 
        |
        +--java.beans.PropertyDescriptor 
              |
              +--java.beans.IndexedPropertyDescriptor

public class IndexedPropertyDescriptor
extends PropertyDescriptor

IndexPropertyDescriptor ´Â ¹è¿­°ú °°Àº ±â´ÉÀ» °¡Áö´Â ÇÁ·ÎÆÛƼ¸¦ ±â¼úÇÔ°ú ÇÔ²², ¹è¿­³»ÀÇ Æ¯Á¤ÀÇ ¿ä¼Ò¿¡ÀÇ ¾×¼¼½º¿¡ »ç¿ëÇÏ´Â À妽º ÷ºÎÀÇ µ¶ÇØ ¸Þ¼Òµå³ª ±âÀÔÇØ ¸Þ¼Òµå¸¦ °®Ãß°í ÀÖ½À´Ï´Ù.

À妽º ÷ºÎ ÇÁ·ÎÆÛƼ´Â À妽º°¡ ºÙÁö ¾ÊÀº ´Ü¼øÇÑ µ¶ÇØ ¹× ±âÀÔÇØ ¸Þ¼Òµåµµ Á¦°øÇÕ´Ï´Ù. À̰͵éÀº À妽º ºÙ¾î µ¶ÇØ ¸Þ¼Òµå·ÎºÎÅÍ µ¹·ÁÁÖ¾îÁø ¹è¿­ÀÇ µ¶ÇØ ¹× ±âÀÔÀ» ½Ç½ÃÇÕ´Ï´Ù.


»ý¼ºÀÚÀÇ °³¿ä
IndexedPropertyDescriptor (String  propertyName, Class  beanClass)
          ÀÌ constructor Àº À妽º ÷ºÎÀÇ ¾×¼¼½º¿Í ¹è¿­ ¾×¼¼½ºÀÇ ¾îµð¶óµµ, ¾×¼¼½º¿ë ¸Þ¼Òµå getFoo ¹× setFoo ¸¦ »ç¿ëÇØ, Ç¥ÁØ Java ±Ô¾à¿¡ ÁذÅÇÑ ÇÁ·ÎÆÛƼÀÇ IndexPropertyDescriptor ¸¦ ±¸ÃàÇÕ´Ï´Ù.
IndexedPropertyDescriptor (String  propertyName, Class  beanClass, String  getterName, String  setterName, String  indexedGetterName, String  indexedSetterName)
          ÀÌ constructor Àº ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ µ¶ÇØ ¹× ±âÀÔÇØ ¿ë¹«ÀÇ ¸Þ¼Òµå¸í (À妽º ÷ºÎ ¸Þ¼Òµå¿Í ºñÀ妽º ÷ºÎ ¸Þ¼ÒµåÀÇ ¾çÂÊ ¸ðµÎ)À» Àμö¿¡ ÃëÇÕ´Ï´Ù.
IndexedPropertyDescriptor (String  propertyName, Method  getter, Method  setter, Method  indexedGetter, Method  indexedSetter)
          ÀÌ constructor Àº ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× ±âÀÔÇØ ¿ë¹«ÀÇ Method ¿ÀºêÁ§Æ®¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 boolean equals (Object  obj)
          PropertyDescriptor ¿Í ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ Á¶ÇÕÇÕ´Ï´Ù.
 Class getIndexedPropertyType ()
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼÀÇ ÇüŸ¦ ³ªÅ¸³»´Â Class ¿ÀºêÁ§Æ®¸¦ ÃëµæÇÕ´Ï´Ù.
 Method getIndexedReadMethod ()
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÃëµæÇÕ´Ï´Ù.
 Method getIndexedWriteMethod ()
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÃëµæÇÕ´Ï´Ù.
 void setIndexedReadMethod (Method  getter)
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setIndexedWriteMethod (Method  setter)
          À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.beans. PropertyDescriptor ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
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 , hashCode , notify , notifyAll , toString , wait , wait , wait
 

»ý¼ºÀÚÀÇ »ó¼¼

IndexedPropertyDescriptor

public IndexedPropertyDescriptor(String  propertyName,
                                 Class  beanClass)
                          throws IntrospectionException 
ÀÌ constructor Àº À妽º ÷ºÎÀÇ ¾×¼¼½º¿Í ¹è¿­ ¾×¼¼½ºÀÇ ¾îµð¶óµµ, ¾×¼¼½º¿ë ¸Þ¼Òµå getFoo ¹× setFoo ¸¦ »ç¿ëÇØ, Ç¥ÁØ Java ±Ô¾à¿¡ ÁذÅÇÑ ÇÁ·ÎÆÛƼÀÇ IndexPropertyDescriptor ¸¦ ±¸ÃàÇÕ´Ï´Ù.

Àμö¸íÀÌ ¡¸fred¡¹ÀÇ °æ¿ì, À妽º ºÙ¾î µ¶ÇØ ¸Þ¼Òµå ¡¸getFred¡¹, ºñÀ妽º ÷ºÎ (¹è¿­) µ¶ÇØ ¸Þ¼Òµå ¡¸getFred¡¹, À妽º ºÙ¾î ±âÀÔ ¸Þ¼Òµå ¡¸setFred¡¹, ºñÀ妽º ºÙ¾î ±âÀÔ ¸Þ¼Òµå ¡¸setFred¡¹°¡ Á¸ÀçÇÏ°Ô µË´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸í
beanClass - Ÿ°Ù Bean ÀÇ Class ¿ÀºêÁ§Æ®
¿¹¿Ü:
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì

IndexedPropertyDescriptor

public IndexedPropertyDescriptor(String  propertyName,
                                 Class  beanClass,
                                 String  getterName,
                                 String  setterName,
                                 String  indexedGetterName,
                                 String  indexedSetterName)
                          throws IntrospectionException 
ÀÌ constructor Àº ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ µ¶ÇØ ¹× ±âÀÔÇØ ¿ë¹«ÀÇ ¸Þ¼Òµå¸í (À妽º ÷ºÎ ¸Þ¼Òµå¿Í ºñÀ妽º ÷ºÎ ¸Þ¼ÒµåÀÇ ¾çÂÊ ¸ðµÎ)À» Àμö¿¡ ÃëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸í
beanClass - Ÿ°Ù Bean ÀÇ Class ¿ÀºêÁ§Æ®
getterName - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿­·Î¼­ Àо ¶§ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸í. ÇÁ·ÎÆÛƼ°¡ ±âÀÔÇØ Àü¿ëÀÇ °æ¿ì´Â null, ±× ÀÌ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎ
setterName - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿­·Î¼­ ±âÀÔÇÒ ¶§ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸í. ÇÁ·ÎÆÛƼ°¡ Àо Àü¿ëÀÇ °æ¿ì´Â null, ±× ÀÌ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎ
indexedGetterName - À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸í. ÇÁ·ÎÆÛƼ°¡ ±âÀÔÇØ Àü¿ëÀÇ °æ¿ì´Â null
indexedSetterName - À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸í. ÇÁ·ÎÆÛƼ°¡ Àо Àü¿ëÀÇ °æ¿ì´Â null
¿¹¿Ü:
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì

IndexedPropertyDescriptor

public IndexedPropertyDescriptor(String  propertyName,
                                 Method  getter,
                                 Method  setter,
                                 Method  indexedGetter,
                                 Method  indexedSetter)
                          throws IntrospectionException 
ÀÌ constructor Àº ´Ü¼øÇÑ ÇÁ·ÎÆÛƼ¸í°ú ÇÁ·ÎÆÛƼÀÇ read ¹× ±âÀÔÇØ ¿ë¹«ÀÇ Method ¿ÀºêÁ§Æ®¸¦ Àμö¿¡ ÃëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
propertyName - ÇÁ·ÎÆÛƼÀÇ ÇÁ·Î±×·¥¸í
getter - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿­·Î¼­ Àо ¶§ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ ±âÀÔÇØ Àü¿ëÀÇ °æ¿ì´Â null, ±× ÀÌ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎ
setter - ÇÁ·ÎÆÛƼġ¸¦ ¹è¿­·Î¼­ ±âÀÔÇÒ ¶§ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ Àо Àü¿ëÀÇ °æ¿ì´Â null, ±× ÀÌ¿ÜÀÇ °æ¿ì´Â ¹Ýµå½Ã À妽º ÷ºÎ
indexedGetter - ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ ±âÀÔÇØ Àü¿ëÀÇ °æ¿ì´Â null
indexedSetter - ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ Àо Àü¿ëÀÇ °æ¿ì´Â null
¿¹¿Ü:
IntrospectionException - ÀÎÆ®·Î½ºÆäÅ©¼ÇÁß¿¡ ¿¹¿Ü°¡ ¹ß»ýÇßÀ» °æ¿ì
¸Þ¼ÒµåÀÇ »ó¼¼

getIndexedReadMethod

public Method  getIndexedReadMethod()
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÃëµæÇÕ´Ï´Ù.

¹Ýȯ°ª:
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ À妽º ÷ºÎ°¡ ¾Æ´Ñ °æ¿ì³ª ±âÀÔÇØ Àü¿ëÀÇ °æ¿ì´Â null

setIndexedReadMethod

public void setIndexedReadMethod(Method  getter)
                          throws IntrospectionException 
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ Àо¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ¼³Á¤ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
getter - »õ·Î¿î À妽º ÷ºÎ get ¸Þ¼Òµå
IntrospectionException

getIndexedWriteMethod

public Method  getIndexedWriteMethod()
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ÃëµæÇÕ´Ï´Ù.

¹Ýȯ°ª:
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå. ÇÁ·ÎÆÛƼ°¡ À妽º ÷ºÎ°¡ ¾Æ´Ñ °æ¿ì³ª Àо Àü¿ëÀÇ °æ¿ì´Â null

setIndexedWriteMethod

public void setIndexedWriteMethod(Method  setter)
                           throws IntrospectionException 
À妽º ÷ºÎ ÇÁ·ÎÆÛƼġÀÇ ±âÀÔÇØ¿¡ »ç¿ëÇÏ´Â ¸Þ¼Òµå¸¦ ¼³Á¤ÇÕ´Ï´Ù.

IntrospectionException

getIndexedPropertyType

public Class  getIndexedPropertyType()
À妽º ÷ºÎ ÇÁ·ÎÆÛƼÀÇ ÇüŸ¦ ³ªÅ¸³»´Â Class ¿ÀºêÁ§Æ®¸¦ ÃëµæÇÕ´Ï´Ù. ÀÌ ÇüÅ´ indexedReadMethod °¡ µ¹·ÁÁÖ´Â ÇüÅÂ¿Í °°½À´Ï´Ù.

¹Ýȯ°ª:
À妽º ÷ºÎ ÇÁ·ÎÆÛƼÀÇ ÇüŸ¦ ³ªÅ¸³»´Â Java Ŭ·¡½º. int µîÀÇ ¿ø½ÃÀû Java ÇüÀ» ³ªÅ¸³½´Ù

equals

public boolean equals(Object  obj)
PropertyDescriptor ¿Í ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¸¦ Á¶ÇÕÇÕ´Ï´Ù. ¾çÀÚ°¡ µî°¡ÀÎ °æ¿ì, true ¸¦ µ¹·ÁÁÝ´Ï´Ù. Àо, ±âÀÔÇØ, ÇÁ·ÎÆÛƼÀÇ ÇüÅÂ, ÇÁ·ÎÆÛƼ ¿¡µðÅÍ, Ç÷¡±×°¡ µ¿ÀÏÇϸé, 2 °³ÀÇ PropertyDescriptor ´Â µî°¡ÀÔ´Ï´Ù.

¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º PropertyDescriptor ³»ÀÇ equals
ÆÄ¶ó¹ÌÅÍ:
obj - ºñ±³ ´ë»óÀÇ ÂüÁ¶ ¿ÀºêÁ§Æ®
¹Ýȯ°ª:
obj Àμö·Î ÁöÁ¤µÈ ¿ÀºêÁ§Æ®¿Í ÀÌ ¿ÀºêÁ§Æ®°¡ µ¿ÀÏÇÑ °æ¿ì´Â true, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
µµÀÔµÈ ¹öÁ¯:
1.4
°ü·Ã Ç׸ñ:
Object.hashCode() , Hashtable

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.