|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.beans.FeatureDescriptor
java.beans.PropertyDescriptor
java.beans.IndexedPropertyDescriptor
public class IndexedPropertyDescriptor
IndexPropertyDescriptor 는, 배열과 같은 기능을 가지는 프로퍼티을 기술함과 함께, 배열내의 특정의 요소에의 액세스에 사용하는 인덱스 첨부의 read 메소드나 기입해 메소드를 갖추고 있습니다.
인덱스 첨부 프로퍼티은, 인덱스가 붙지 않은 단순한 read 및 기입해 메소드도 제공합니다. 이것들은, 인덱스 붙어 read 메소드로부터 반환된 배열의 read 및 기입을 실시합니다.
생성자 의 개요 | |
---|---|
IndexedPropertyDescriptor (String propertyName,
Class <? > beanClass)
이 생성자 은, 인덱스 첨부의 액세스와 배열 액세스의 어디라도, 액세스용 메소드 getFoo 및 setFoo 를 사용해, 표준 Java 규약에 준거한 프로퍼티의 IndexPropertyDescriptor 를 구축합니다. |
|
IndexedPropertyDescriptor (String propertyName,
Class <? > beanClass,
String readMethodName,
String writeMethodName,
String indexedReadMethodName,
String indexedWriteMethodName)
이 생성자 은, 단순한 프로퍼티명과 프로퍼티의 read 및 기입해 용무의 메소드명 (인덱스 첨부 메소드와 비인덱스 첨부 메소드의 양쪽 모두)을 인수에 취합니다. |
|
IndexedPropertyDescriptor (String propertyName,
Method readMethod,
Method writeMethod,
Method indexedReadMethod,
Method indexedWriteMethod)
이 생성자 은, 단순한 프로퍼티명과 프로퍼티의 read 및 기입해 용무의 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
- 새로운 인덱스 붙어 기입 메소드
IntrospectionException
public Class <? > getIndexedPropertyType()
Class
객체를 가져옵니다. 반환되는 Class
는,int
등의 원시형을 나타냅니다.
Class
. 형태를 판정할 수 없는 경우는
null
를 돌려주는 일도 있다public boolean equals(Object obj)
PropertyDescriptor
가 지정된 객체와 비교합니다. 객체가 같은 경우에는 true 를 돌려줍니다. 읽어들여, 기입해, 프로퍼티의 형태, 프로퍼티 에디터, 및 플래그가 동일하면, 2 개의 PropertyDescriptor
는 등가입니다.
PropertyDescriptor
내의 equals
obj
- 비교 대상의 참조 객체
true
, 그렇지 않은 경우는 false
Object.hashCode()
,
Hashtable
public int hashCode()
Object.hashCode()
를 참조해 주세요.
PropertyDescriptor
내의 hashCode
Object.equals(java.lang.Object)
,
Hashtable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.