Packages

There is also a corresponding package instance available in the pkg variable.

The naming of the instance of this package follows the same rule as for factories.

Enumerations defined in the package can be retrieved as read-only arrays using a method with the pattern get[enumName](). So, for example, if the com.example.customer package contains an enumeration named ServiceLevel that contains the Enum Literals GOLD, SILVER, BRONZE, then you could access an array containing these three values using:

pkg.com_example_customer.getServiceLevel()