@CustomProperty

You use the @CustomProperty annotation to set a property to a class, a member, or a parameter.

Purpose

Sets a property on a class, a member, or a parameter.

Syntax

@CustomProperty(name=<a string>, value=<a string>)

Description

The @CustomProperty annotation sets a property on a class, a member, or a parameter.

You can use any BOM property.

Example

In the XOM, the annotation can be used as follows:

public class Customer {

  @CustomProperty(name = "dataio.default",  value = "true")
  public Customer(@BusinessName("name") String name);
  public String getName() {...}
}

The result in the BOM is the following code:

class Customer {
  Customer(string name)
     property dataio.default "true";
  readonly string name;
}