A Java file and an XML file define a domain.
The Java file implements oracle.jbo.domain.DomainInterface. You can add validation logic to its validate method. See the Javadoc for more information.
The XML file contains the attribute settings.