Attributes in CORBA IDL
(W3C WSDWG Attributes TF)
Jeff Mischkinsky
Oracle Corporation
27 Jun 2003
IDL attributes
- Use of attribute is syntactic sugar for defining a
get and set operation
- The concrete programming language syntax for
the getter/setter is defined by the IDL language
binding which defines the:
- operation name
- parameter types
- return type, if any
- A readonly attribute does not have a set
operation
Example
// IDL example
interface foo {
attribute long myattr;
};
// Java
public interface foo extends
org.omg.CORBA.portable.IDLentity {
int myattr();
void myattr(int p1);
}