Title: [1324] trunk/qdox/src/site: refactored faq.xhtml to faq.fml
Revision
1324
Author
rfscholte
Date
2011-09-10 15:33:34 -0500 (Sat, 10 Sep 2011)

Log Message

refactored faq.xhtml to faq.fml
updated entries

Added Paths


Removed Paths

Diff

Added: trunk/qdox/src/site/fml/faq.fml (0 => 1324)

--- trunk/qdox/src/site/fml/faq.fml	                        (rev 0)
+++ trunk/qdox/src/site/fml/faq.fml	2011-09-10 20:33:34 UTC (rev 1324)
@@ -0,0 +1,59 @@
+<faqs xmlns="http://maven.apache.org/FML/1.0.1"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/FML/1.0.1 http://maven.apache.org/xsd/fml-1.0.1.xsd"
+  title="Frequently Asked Questions">
+  
+  <part id="general">
+    <title>General</title>
+    <faq id="Whats_the_object_type_of_an_interface">
+      <question>What's the objecttype of an interface?</question>
+      <answer>
+        <p>The <code><a href="" method is used to
+			represent both classes and interfaces.
+			The <code><a href=""
+			method allows you to distinguish between the two.</p>
+
+			<p>When using a class, the <a href=""
+				return which class is extended. If this has not been defined in the input source code, <code>java.lang.Object</code> is
+				returned. When using an interface, this method ALWAYS returns null.</p>
+
+			<p>When using a class, the <a href=""
+			returns an array of the interfaces implemented by the class. If none are implemented, an empty array is returned. When
+			using an interface, this returns an array of interfaces the current interface EXTENDS.
+			</p>
+      </answer>
+    </faq>
+
+    <faq id="Can_I_have_full_control_over_the_classloader">
+      <question>Can I have full control over the classloader?</question>
+      <answer>
+        <p>
+			I some cases QDox is used to generate classes for another project with it's own dependencies. This could result in class-collission.
+			By default the JavadocBuilder will contain the classloader(s) of the current project, but by defining your own classLibrary you can have the required control.
+			
+			<source>
+    /* new ClassLibrary() will give you an empty classLoader
+     * Big chance you want at least the system classloader.
+     */	
+    ClassLibrary classLibrary = new ClassLibrary( ClassLoader.getSystemClassLoader() );
+    JavaDocBuilder builder = new JavaDocBuilder(classLibrary);
+    
+      </source>
+			</p>
+      </answer>
+    </faq>
+
+    <faq id="ArrayIndexOutOfBoundsException_500">
+      <question>I'm getting an ArrayIndexOutOfBoundsException: 500. What to do?</question>
+      <answer>
+        <p>During the parsing of java files the Parser needs to remember states, which are kept in a stack.
+        Due to recursive calls the stack can become very large. 
+        By default the size of this this stack is 500 and it can only be set during <em>compile-time</em> of QDox.
+        The only way to increase this number is by rebuilding it.
+        Download the <a href="" and build it like <code>mvn install -Dqdox.javaparser.stack=750</code> if you want to change it to 750.  
+        </p>
+      </answer>
+    </faq>
+  </part>
+  
+</faqs>
\ No newline at end of file

Deleted: trunk/qdox/src/site/xhtml/faq.xhtml (1323 => 1324)

--- trunk/qdox/src/site/xhtml/faq.xhtml	2011-09-10 17:48:23 UTC (rev 1323)
+++ trunk/qdox/src/site/xhtml/faq.xhtml	2011-09-10 20:33:34 UTC (rev 1324)
@@ -1,49 +0,0 @@
-<html>
-  <head>
-    <title>Frequently Asked Questions</title>
-  </head>
-  <body>
-
-		<ul style="list-style-type:decimal;">
-		  <li><a href="" is the array information stored?</a></li>
-		  <li><a href="" the objecttype of an interface?</a></li>
-      <li><a href="" I have full control over the classloader?</a></li>
-		</ul>
-
-    <a name="Where_is_the_array_information_stored"></a><h2>Where is the array information stored?</h2>
-			<p>The <code><a href="" class stores array information
-			in it. If the array is multidimensional, the dimension depth can be accessed.</p>
-
-  	 <a name="What_s_the_object_type_of_an_interface"></a><h2>What's the object type of an interface?</h2>
-
-			<p>The <code><a href="" method is used to
-			represent both classes and interfaces.
-			The <code><a href=""
-			method allows you to distinguish between the two.</p>
-
-			<p>When using a class, the <a href=""
-				return which class is extended. If this has not been defined in the input source code, <code>java.lang.Object</code> is
-				returned. When using an interface, this method ALWAYS returns null.</p>
-
-			<p>When using a class, the <a href=""
-			returns an array of the interfaces implemented by the class. If none are implemented, an empty array is returned. When
-			using an interface, this returns an array of interfaces the current interface EXTENDS.
-			</p>
-			
-			<a name="Can_I_have_full_control_over_the_classloader"></a><h2>Can I have full control over the classloader?</h2>
-			<p>
-			I some cases QDox is used to generate classes for another project with it's own dependencies. This could result in class-collission.
-			By default the JavadocBuilder will contain the classloader(s) of the current project, but by defining your own classLibrary you can have the required control.
-			
-			<code><pre>
-    /* new ClassLibrary() will give you an empty classLoader
-     * Big chance you want at least the system classloader.
-     */	
-    ClassLibrary classLibrary = new ClassLibrary( ClassLoader.getSystemClassLoader() );
-    JavaDocBuilder builder = new JavaDocBuilder(classLibrary);
-    
-      </pre></code>
-			</p> 
-	</body>
-
-</html>


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to