krysalis-impus/src/documentation/content/xdocs book.xml,NONE,1.1 index.xml,NONE,1.1 tabs.xml,NONE,1.1
| Newsgroups | gmane.comp.krysalis.sandbox |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/krysalis-impus/src/documentation/content/xdocs
In directory sc8-pr-cvs1:/tmp/cvs-serv2271/src/documentation/content/xdocs
Added Files:
book.xml index.xml tabs.xml
Log Message:
Initial import of the impus project.
--- NEW FILE: book.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//APACHE//DTD Cocoon Documentation Book V1.0//EN" "dtd/book-cocoon-v10.dtd">
<book software="Krysalis Impus"
title="Krysalis Impus"
copyright="@year@ Krysalis Project"
xmlns:xlink="http://www.w3.org/1999/xlink">
<!--<menu label="Community">
<menu-item label="Download" href="http://sourceforge.net/project/showfiles.php?group_id=36516"/>
</menu> -->
<menu label="Docs">
<menu-item label="Introduction" href="index.html"/>
</menu>
<menu label="Code">
<menu-item label="Javadocs" href="javadocs/index.html"/>
<menu-item label="Java Source Ref" href="javasrc/index.html"/>
<menu-item label="Code Style Checks" href="checkstyle/index.html"/>
<menu-item label="Unit tests" href="junit/index.html"/>
</menu>
</book>
--- NEW FILE: index.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "./dtd/document-v11.dtd">
<document>
<header>
<title>Impus</title>
<authors>
<person id="gjs" name="Glen Stampoultzis" email="[email protected]"/>
</authors>
</header>
<body>
<section>
<title>Introduction</title>
<p>
<strong>Impus</strong> is project designed to
enable beans to initialized quickly and easily and (in the future)
to allow junit test data to be easily asserted.
</p>
<p>This project is build using krysalis centipede. In order to customize
the building of this project simply edit the following files:</p>
<ul>
<li>module.xml</li>
<li>properties.xml</li>
<li>status.xml</li>
<li>/src/documentation/content/xdocs/index.xml</li>
<li>/src/documentation/content/xdocs/book.xml</li>
</ul>
<p>
Your source code goes in
<code>/src/java</code>. Test harnesses go in
/src/test. To build your project simply install cenitpede and run
<code>cent</code> from the project root directory.
</p>
</section>
<section>
<title>Usage</title>
<p>
Primary class for this module. This class has one public function
<code>assign()</code>. That allows the user to take short hand assignment
syntax and initialize javabeans. For example:
</p>
<source>
Initializer i = new Initializer();
i.assign( myVar, "(prop1=\"test\" prop2=20.9 prop3=true prop4=(x=2 y=5))");
</source>
<p>
The code above assigns the properties prop1, prop2, prop3 and prop4 into
the object <code>myVar</code>. Obviously a setter needs to be available
for the property or things just aren't going to work.
</p>
<p>
Arrays and collections can be initialized using the following syntax:
</p>
<source>
(myArray=[1,2,3])
</source>
<p>
or
</p>
<source>
(myArray=[ (x=1 y=2) (x=2 y=1) ] )
</source>
<p>
or if the type can not be determined from the setter:
</p>
<source>
(myArray=[ com.company.A(name="This is a name") ])
</source>
<p>
The fully qualified class name can always be prepended when the required
type is unclear.
</p>
</section>
</body>
</document>
--- NEW FILE: tabs.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE tabs PUBLIC "-//APACHE//DTD Cocoon Documentation Tab V1.0//EN" ".//dtd//tab-cocoon-v10.dtd">
<tabs software="MyProj"
title="MyProj"
copyright="Foo"
xmlns:xlink="http://www.w3.org/1999/xlink">
<tab label="Home" dir=""/>
<!-- Add new tabs here, eg:
<tab label="How-Tos" dir="community/howto/"/>
<tab label="XML Site" dir="xml-site/"/>
-->
</tabs>
-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open!
Get cracking and register here for some mind boggling fun and
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en