File: Chapter.java.xml

package info (click to toggle)
libnanoxml2-java 2.2.3.dfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 988 kB
  • sloc: java: 5,085; xml: 150; makefile: 86; sh: 59
file content (8 lines) | stat: -rw-r--r-- 4,592 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?><java2xml_root><java_source_code><import_declaration><comment><comment_line>/* Chapter.java                                                    NanoXML/Java</comment_line><comment_line> *</comment_line><comment_line> * $Revision: 1.1.1.1 $</comment_line><comment_line> * $Date: 2001/07/17 07:33:37 $</comment_line><comment_line> * $Name:  $</comment_line><comment_line> *</comment_line><comment_line> * This file is part of NanoXML 2 for Java.</comment_line><comment_line> * Copyright (C) 2001 Marc De Scheemaecker, All Rights Reserved.</comment_line><comment_line> *</comment_line><comment_line> * This software is provided 'as-is', without any express or implied warranty.</comment_line><comment_line> * In no event will the authors be held liable for any damages arising from the</comment_line><comment_line> * use of this software.</comment_line><comment_line> *</comment_line><comment_line> * Permission is granted to anyone to use this software for any purpose,</comment_line><comment_line> * including commercial applications, and to alter it and redistribute it</comment_line><comment_line> * freely, subject to the following restrictions:</comment_line><comment_line> *</comment_line><comment_line> *  1. The origin of this software must not be misrepresented; you must not</comment_line><comment_line> *     claim that you wrote the original software. If you use this software in</comment_line><comment_line> *     a product, an acknowledgment in the product documentation would be</comment_line><comment_line> *     appreciated but is not required.</comment_line><comment_line> *</comment_line><comment_line> *  2. Altered source versions must be plainly marked as such, and must not be</comment_line><comment_line> *     misrepresented as being the original software.</comment_line><comment_line> *</comment_line><comment_line> *  3. This notice may not be removed or altered from any source distribution.</comment_line><comment_line> */</comment_line></comment>import<import_package><name> net.n3.nanoxml</name>.*</import_package>;</import_declaration><import_declaration>import<import_package><name> java.util</name>.*</import_package>;</import_declaration><import_declaration>import<import_package><name> java.io</name>.*</import_package>;</import_declaration><type_declaration><class_declaration ID="1" ><modifier>public</modifier><unmodified_class_declaration> class<class_name> Chapter</class_name><extends> extends<name> DocumentElement</name></extends><implements></implements>{<class_body><method_declaration ID="1" ><modifier>   public</modifier><result_type><type><name> String</name></type></result_type><method_declarator><method_name> getTitle</method_name><formal_parameters>()</formal_parameters></method_declarator><block><block_open>   {</block_open><block_statement><statement ID="1" ><return_statement><return>      return</return><expression> this.attrs.getProperty<arguments>(<argument_list><expression><literal>&quot;title&quot;</literal></expression></argument_list>)</arguments></expression>;</return_statement></statement></block_statement><block_close>   }</block_close></block></method_declaration><method_declaration ID="2" ><modifier>   public</modifier><result_type><type><name> String</name></type></result_type><method_declarator><method_name> getID</method_name><formal_parameters>()</formal_parameters></method_declarator><block><block_open>   {</block_open><block_statement><statement ID="2" ><return_statement><return>      return</return><expression> this.attrs.getProperty<arguments>(<argument_list><expression><literal>&quot;id&quot;</literal></expression></argument_list>)</arguments></expression>;</return_statement></statement></block_statement><block_close>   }</block_close></block></method_declaration><method_declaration ID="3" ><modifier>   public</modifier><result_type><type><name> Enumeration</name></type></result_type><method_declarator><method_name> getParagraphs</method_name><formal_parameters>()</formal_parameters></method_declarator><block><block_open>   {</block_open><block_statement><statement ID="3" ><return_statement><return>      return</return><expression> this.children.elements<arguments>()</arguments></expression>;</return_statement></statement></block_statement><block_close>   }</block_close></block></method_declaration></class_body>}</unmodified_class_declaration></class_declaration></type_declaration></java_source_code>
<statistics>
<nr_of_codelines nr="49"/>
<nr_of_classes nr="1"/>
<nr_of_methods nr="3"/>
<nr_of_statements nr="3"/>
</statistics>
</java2xml_root>