XES - Programmers Guide - nodeImportList

importList only occurs in a nodePackageDec node. There will be only one importList element and this will be before any classDef nodes.

It is used to group together all the nodeImport nodes, these imports tell the package about any external packages which may be referenced.

Attributes used

No attributes are specified for this node.

Child Elements

The only child elements allowed are comments and import.

Schema entry

Holds a constant string, integer, floating point or boolean value

	<xs:element name="package">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="classDef" type="classDefType"/>
<xs:element name="importList">
<xs:complexType>
<xs:sequence>
<xs:element name="import" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string" form="unqualified"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>

Examples of usage

usage java example XES example
single import definition import java.util.i1;
<package>
<importList>
<import name="java.util.i1"/>
</importList>
...
</package>
multiple import definition import java.util.i1;
import java.util.i2;
<package>
<importList>
<import name="java.util.i1"/>
<import name="java.util.i2"/>
</importList>
...
</package>

Java

import java.util.*

Scala

import java.util._

or say

import java.util.{Data,Locale}

Scala import is similar to java version except wildcard is represented by underscore '_' instead of '*' and with additional ability to have multiple imports in the same line by using curly brackets.


metadata block
see also:

 

Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.