|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
java.lang.Object | +--java.beans.FeatureDescriptor | +--java.beans.PropertyDescriptor
PropertyDescriptor 는 Java Bean 가 한 벌의 액세스용 메소드를 사용해 export 하는 단일의 프로퍼티를 기술합니다.
생성자의 개요 | |
PropertyDescriptor (String propertyName,
Class beanClass)
액세스용 메소드 getFoo 및 setFoo 를 사용해, 표준의 Java 규약에 준거하고 있는 프로퍼티의 PropertyDescriptor 를 구축합니다. |
|
PropertyDescriptor (String propertyName,
Class beanClass,
String getterName,
String setterName)
이 constructor 은 단순한 프로퍼티명과 프로퍼티의 read 및 기입해 용무의 메소드명을 인수에 취합니다. |
|
PropertyDescriptor (String propertyName,
Method getter,
Method setter)
이 constructor 은 단순한 프로퍼티명과 프로퍼티의 read 및 기입해 용무의 Method 오브젝트를 인수에 취합니다. |
메소드의 개요 | |
boolean |
equals (Object obj)
PropertyDescriptor 와 지정된 오브젝트를 조합합니다. |
Class |
getPropertyEditorClass ()
이 프로퍼티의 명시적인 등록이 끝난 PropertyEditor 클래스를 취득합니다. |
Class |
getPropertyType ()
프로퍼티의 Class 오브젝트를 취득합니다. |
Method |
getReadMethod ()
프로퍼티치의 읽어들여에 사용하는 메소드를 취득합니다. |
Method |
getWriteMethod ()
프로퍼티치의 기입해에 사용하는 메소드를 취득합니다. |
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 getter)
프로퍼티치의 읽어들여에 사용하는 메소드를 설정합니다. |
void |
setWriteMethod (Method setter)
프로퍼티치의 기입해에 사용하는 메소드를 설정합니다. |
클래스 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 |
생성자의 상세 |
public PropertyDescriptor(String propertyName, Class beanClass) throws IntrospectionException
propertyName
- 프로퍼티의 프로그램명beanClass
- 타겟 bean 의 Class 오브젝트. 예를 들어, sun.beans.OurButton.class
IntrospectionException
- 인트로스페크션중에 예외가 발생했을 경우public PropertyDescriptor(String propertyName, Class beanClass, String getterName, String setterName) throws IntrospectionException
propertyName
- 프로퍼티의 프로그램명beanClass
- 타겟 bean 의 Class 오브젝트. 예를 들어, sun.beans.OurButton.classgetterName
- 프로퍼티치의 읽어내에 사용하는 메소드명. 프로퍼티가 기입해 전용의 경우는 nullsetterName
- 프로퍼티치의 기입해에 사용하는 메소드명. 프로퍼티가 읽어들여 전용의 경우는 null
IntrospectionException
- 인트로스페크션중에 예외가 발생했을 경우public PropertyDescriptor(String propertyName, Method getter, Method setter) throws IntrospectionException
propertyName
- 프로퍼티의 프로그램명getter
- 프로퍼티치의 읽어들여에 사용하는 메소드. 프로퍼티가 기입해 전용의 경우는 nullsetter
- 프로퍼티치의 기입해에 사용하는 메소드. 프로퍼티가 읽어들여 전용의 경우는 null
IntrospectionException
- 인트로스페크션중에 예외가 발생했을 경우메소드의 상세 |
public Class getPropertyType()
ReadMethod 가 돌려주는 형태
public Method getReadMethod()
public void setReadMethod(Method getter) throws IntrospectionException
getter
- 새로운 get 메소드
IntrospectionException
public Method getWriteMethod()
public void setWriteMethod(Method setter) throws IntrospectionException
setter
- 새로운 set 메소드
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 boolean equals(Object obj)
PropertyDescriptor
와 지정된 오브젝트를 조합합니다. 양자가 등가인 경우, true 를 돌려줍니다. 읽어내, 기입해, 프로퍼티의 형태, 프로퍼티 에디터, 플래그가 동일하면, 2 개의 PropertyDescriptor
는 등가입니다.
Object
내의 equals
obj
- 비교 대상의 참조 오브젝트
true
, 그렇지 않은 경우는 false
Object.hashCode()
,
Hashtable
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 모든 클래스 | ||||||||||
개요: 상자 | 필드 | constructor | 메소드 | 상세: 필드 | constructor | 메소드 |
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.