@PatternDomain

You use the @PatternDomain annotation to define a pattern domain on a member or parameter.

Purpose

Defines a pattern domain for a member or a parameter.

Syntax

@PatternDomain(<a string>)

Description

The @PatternDomain annotation enables you to specify a pattern domain for a member or a parameter.

Example

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

public class Customer {
  @PatternDomain("[A-Za-z]")
  public String getName() {...}
}

The result in the BOM is the following code:

class Customer {
  readonly string name domain "[A-Za-z]";
}