XES - Programmers Guide - nodeNameList

for information about XES schema see these pages.

nodeNameList used to store additional info for classes and methods

This may be the first child of a class node (excluding comments) to hold "extends" or "implements" information.
This may be the second child of a method node, after the parameters (excluding comments) to hold "throws" information.

Attributes used

Child Elements

Only comment nodes are allowed.

Schema entry

	<xs:complexType name="nodeNameListType">
<xs:sequence>
<xs:element name="comment" type="commentType"/>
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="comment" type="commentType"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="type" type="xs:string"/>
<xs:attribute name="tagType" type="xs:string"/>
<xs:attribute name="tagValue" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>

Possible Improvements

 

Examples of usage

usage java example XES example
extending a class class myClass extends baseClass{
}

<class def="true" name="myClass">
<nameList elementName="extends" type="baseClass"/>
</class>

implementing an interface class myClass implements baseInterface{
}
<class def="true" name="myClass">
<nameList elementName="implements" type="baseInterface,baseInterface2"/>
</class>
extend and implement class myClass extends baseClass implements baseInterface{} <class def="true" name="myClass">
<nameList elementName="extends" type="baseClass"/>
<nameList elementName="implements" type="baseInterface"/>
</class>
throw public void myMethod() throws myError{} <method name="myMethod" public="true" type="void">
<parameterList/>
<nameList elementName="throws" name="myError"/>
</method>
multiple throws public void myMethod() throws myError1,myError2{} <method name="myMethod" public="true" type="void">
<parameterList/>
<nameList elementName="throws" name="myError1,myError2"/>
</method>
     

Java

see above

Scala

 


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.