../../_images/Revised.png

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

                <interface></interface>
                <class></class>

        </java_package>
        ...
</code_instruction>

Attributes

Table 4.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 4.31 sub elements of <java_package/>

Name

Details

Number

interface

Loupe S interface

0 or more

class

Loupe S class

0 or more