Mapping of a BOM created from a Java XOM
When you create a BOM from the XOM, Rule Designer processes the Java™ compiled classes into business elements.
The following table describes the default mapping for business elements originating from a Java XOM when you keep the option Load getters and setters as attributes selected in the New BOM Entry wizard.
Java XOM element | Becomes element in the BOM... |
---|---|
Nongeneric public class. | Class with the same name. |
Class that implements the java.util.Collection interface. For example:
|
Class with a collection domain to be recognized as a collection when verbalized. For example:
|
Public constructor. | Constructor with the same parameters. |
Public attribute. | Attribute with the same name and return type. |
Final attribute. | Read-only attribute with the same name and return type. |
Public static final attributes whose types are the current class. For example:
|
Enumerated domain of static references of the class. For example:
|
Public method that does not follow the JavaBeans convention for property accessors (void setFoo(PropertyType value) and PropertyType getFoo()). For example:
|
Method with equivalent parameters. For example:
|
Public method that follows the JavaBeans convention, with a get method and no set method. For example:
|
Read-only attribute. For example:
|
Public method that follows the JavaBeans convention, with only a set method. For example:
|
Write-only attribute. For example:
|
Public method that follows the JavaBeans convention, with both a get method and a set method. For example:
|
Attribute. For example:
|
Business elements that originate from a dynamic XOM are processed differently. For information about elements that originate from a dynamic XOM, refer to Designing a BOM for an XML model.