|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
public interface DynAnyFactoryOperations
DynAny 객체는, DynAnyFactory 객체로 오퍼레이션을 호출하는 것으로 작성할 수 있습니다. 일반적으로, DynAny 객체를 작성하는 방법은 2 개 있습니다.
일반적으로, any 의 동적 해석에서는, 최초로 create_dyn_any()를 사용해 DynAny 객체를 작성합니다. 작성되는 DynAny 객체 참조는, any 의 형태에 의해, DynFixed, DynStruct, DynSequence, DynArray, DynUnion, DynEnum, 또는 DynValue 라고 하는 객체 참조에 네로우 변환할 수 있습니다.
any 의 동적 작성에서는, create_dyn_any_from_type_code()를 사용해 DynAny 객체를 작성합니다. 이 때, 작성하는 값에 관련짓는 TypeCode 를 건네줍니다. 반환되는 참조는, 필요에 따라서 DynStruct 등이 복잡한 형태의 어떤 것인가에 네로우 변환할 수 있습니다. 다음에, 결과의 객체로 오퍼레이션을 호출해 값을 초기화합니다. 마지막으로, to_any 오퍼레이션을 기동해, 구축형 DynAny 로부터 값을 작성합니다.
메소드의 개요 | |
---|---|
DynAny |
create_dyn_any_from_type_code (TypeCode type)
TypeCode 로부터 DynAny 를 작성합니다. |
DynAny |
create_dyn_any (Any value)
any 치로부터 DynAny 객체를 신규 작성합니다. |
메소드의 상세 |
---|
DynAny create_dyn_any(Any value) throws InconsistentTypeCode
InconsistentTypeCode
- 치의 TypeCode 가 TCKind of tk_Principal, tk_native,
또는 tk_abstract_interface 인 경우DynAny create_dyn_any_from_type_code(TypeCode type) throws InconsistentTypeCode
InconsistentTypeCode
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.