@BusinessType
You use the @BusinessType annotation to change the type of a member or a parameter in the BOM.
Purpose
Changes the type of a member or a parameter in the BOM.
Syntax
@BusinessType(<a string>)
Description
The @BusinessType annotation changes the type of a member or a parameter in the BOM. For example, if you want to change a type int to an enumeration in the BOM to verbalize it. An enumeration is a class with a domain set as an enumeration of static references.
When you apply the @BusinessType annotation to a method, the return type of the method is modified.
Example
In the XOM, the annotation can be used as follows:
public class Customer {
public Customer(@BusinessType("Category") int category) {...}
}
The result in the BOM is the following code:
class Customer {
Customer(Category category);
}