Adding annotations to the XOM
You can add annotations to the XOM to customize the way that the BOM is created from Java™ classes.
- XOM annotations
Annotations are a type of metadata that you can add to classes, members and parameters. - @NotBusiness
You use the @NotBusiness annotation to filter out classes and members that you do not want to import. - @BusinessName
You use the @BusinessName annotation to provide a name for a class, a member, or a parameter in the BOM. - @BusinessType
You use the @BusinessType annotation to change the type of a member or a parameter in the BOM. - @BoundedIntDomain
You use the @BoundedIntDomain to specify an interval between two bounding values. - @CollectionDomain
You use the @CollectionDomain to specify the cardinality and the type of collection elements. - @PatternDomain
You use the @PatternDomain annotation to define a pattern domain on a member or parameter. - @CustomProperty
You use the @CustomProperty annotation to set a property to a class, a member, or a parameter. - @CustomProperties
You use the @CustomProperties annotation to set several properties to a class, a member, or a parameter. - @java.beans.ConstructorProperties
You can use the @java.beans.ConstructorProperties annotation to provide a name for a constructor.
Parent topic: Designing a BOM for a Java model