for information about XES schema see these
pages.
import
import only occurs in a importList
node.
this will tell the package about any external packages which may be referenced.
Attributes used
package name, this is a string which usually has a form like: "com.mjb.mypackage"
and is the name of the package being referenced.
When the class is instanciated this is held in nodeBase.name which is a Vector
containing, in the above case, symbols referencing 'com', 'mjb' and 'mypackage'.
Child Elements
The only child elements allowed are comments
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> |
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
|
metadata block
|
|
|
| see also: |
|
| Correspondence about this page |
|
|
Book Shop - Further reading.
Where I can, I have put links to Amazon for books that are relevant to
the subject, click on the appropriate country flag to get more details
of the book or to buy it from them.
|
Processing XML with Java: A Guide to SAX, DOM, JDOM, JAXP, and TrAX
Other Java books
|
|
Commercial Software Shop
Where I can, I have put links to Amazon for commercial software, not
directly related to this site, but related to the subject being discussed,
click on the appropriate country flag to get more details of the software
or to buy it from them.
|
JBuilder - There is also a free version of Jbuilder at borland
website . However its licence conditions are quite restrictive so you may
prefer another java IDE.
|
|
Can this page be improved?
Please send me any improvements to
here. I would appreciate ideas to make the pages more useful including
error correction, ideas for new pages, improvements to wording. It helps
if you quote the full URL of the page.
|
|
|
progam
I am working on a project which uses these principles, if you would like
to help me with this you are welcome to join in, here:
|
for xml encoding: http://sourceforge.net/projects/xes/
|
This site may have errors. Don't use for critical systems.