// create a PropertyRequest requesting the specified // property names PropertyRequest wantedProps = new PropertyRequest(Resource.DISPLAY_NAME, Resource.COMMENT); // you must call doReadProperties to retrieve the properties // through the proxy my_resource = my_resource.doReadProperties(wantedProps); // work with the properties // for example, get and set values for these properties // ...
서버의 응답은 요청한 특성이 포함된 새 프록시로서, Rational® CM API를 통해 클라이언트 응용프로그램으로 다시 리턴됩니다. doReadProperties 메소드를 통해 얻은 특성 값은 메소드가 리턴한 프록시에 저장됩니다.
프록시를 특성으로 채운 후 해당 특성의 프록시 클래스에서 정의한 액세스 메소드 또는 PropertyName 오브젝트 중 하나를 사용하여 프록시에서 이러한 특성의 값을 추출할 수 있습니다. Rational CM API는 정적으로 정의된 각 특성에 대한 getPropertyName 메소드를 제공하여 프록시에서 값을 가져옵니다. 자세한 정보는 특성 값 가져오기 및 설정 메소드 이름 지정 규칙을 참조하십시오.