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
- Attribute "elementName" indicates what this name list is used
for. May be either: "extends", "implements" or "throws".
- Attribute "name" used in "throws" to hold the list of
errors which may be thown.
- Attribute "type" used in "extends" or "implements"
to hold list of classes/interfaces to be extended/implemeted..
- Attribute "genericsType" .
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> |
| |
|
|
|
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.