5.4.2.1. Java package

This element marks the output location of a Java package and is defined by the <java_package> element. A java package contains interface and class elements that correspond to java interfaces and classes in this package.

Usage

Listing 5.28 <java_package/> example
 1<code_instruction>
 2        ...
 3        <java_package>
 4                name="${createRepositoryJPAInterfacePackageName()}"
 5                path="${pattern.property.java.main.directory}"
 6                writePolicy="once"
 7                code instruction base
 8
 9                <interface></interface>
10                <class></class>
11
12        </java_package>
13        ...
14</code_instruction>

Attributes

Table 5.30 attributes of <package/>

Name

Details

name

The name of the java package made

path

The path relating to the java output folder as defined in the MetaFactory project.

writePolicy

Generates the source only if the source does not already exist. Values: once|always. Default: allways

code instruction base

Loupe S Code instruction base.

Sub elements

Table 5.31 sub elements of <java_package/>

Name

Details

Number

interface

Loupe S interface

0 or more

class

Loupe S class

0 or more