|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
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 및 기입해 용무의 메소드명을 인수에 취합니다. |
|
PropertyDescriptor (String propertyName,
Method readMethod,
Method writeMethod)
이 생성자 은, 단순한 프로퍼티명과 프로퍼티의 read 및 기입해 용무의 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 를 사용해 검색됩니다. |
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 - 새로운 기입 메소드
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 Platform Standard Ed. 6 |
|||||||||
| 앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
| 개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.