Set and Get a Property

tlb2java maps COM properties to Java methods with get and set prefixes. In the example below IDual has a property called PropBSTR. The OLE Automation type BSTR is mapped to Java's String type.

private void useDual(Dual dual) {
    String v = "123";
    assertEquals(v, dual.getPropBSTR());

$Id: set_get.html 3769 2007-06-08 19:06:43Z hastings $