axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cha...@apache.org
Subject svn commit: r474211 - /webservices/axis2/branches/java/1_1/xdocs/1_1/adb/adb-advanced.html
Date Mon, 13 Nov 2006 09:27:29 GMT
Author: chatra
Date: Mon Nov 13 01:27:29 2006
New Revision: 474211

URL: http://svn.apache.org/viewvc?view=rev&rev=474211
Log:
minor improvements

Modified:
    webservices/axis2/branches/java/1_1/xdocs/1_1/adb/adb-advanced.html

Modified: webservices/axis2/branches/java/1_1/xdocs/1_1/adb/adb-advanced.html
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/xdocs/1_1/adb/adb-advanced.html?view=diff&rev=474211&r1=474210&r2=474211
==============================================================================
--- webservices/axis2/branches/java/1_1/xdocs/1_1/adb/adb-advanced.html (original)
+++ webservices/axis2/branches/java/1_1/xdocs/1_1/adb/adb-advanced.html Mon Nov 13 01:27:29
2006
@@ -14,16 +14,16 @@
 <h2>Content</h2>
 <ul>
   <li><a href="#typeSupport">xsi:type Support</a></li>
-  <li><a href="#helper">Helpergen Mode</a></li>
+  <li><a href="#helper">Helper Mode</a></li>
   <li><a href="#more">More Stuff on ADB?</a></li>
 </ul>
-
-<h2><a name="typeSupport">xsi:type Support</a></h2>
+<a name="typeSupport"></a>
+<h2>xsi:type Support</h2>
 
 <p>This is implemented by adding a extension maping class. The code that
 calls the extension mapper is generated inside the Factory.parse method of
 the beans and gets active when the xsi:type attribute is present. The
-following code fragment shows how the generated type mapper looks like</p>
+following code fragment shows how the generated type mapper looks like : </p>
 <pre>            public static java.lang.Object getTypeObject(java.lang.String namespaceURI,
                                 java.lang.String typeName,
                                 javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{
@@ -38,10 +38,10 @@
 
 <p>Inside every Factory.parse method, the extension mapper gets called when a
 xsi:type attribute is encountered <strong>and</strong> that type is not the
-type that is being parsed</p>
+type that is being parsed.</p>
 
 <p>The following code fragment shows how the ADB deserialize method calls the
-mapper class</p>
+mapper class : </p>
 <pre>
 	     if (reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type")!=null){
                   java.lang.String fullTypeName = reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance",
@@ -62,7 +62,7 @@
 	      }</pre>
 
 <p>This should make the xsi:type based parsing possible and should
-result in proper xsi:type based serializations at runtime</p>
+result in proper xsi:type based serializations at runtime.</p>
 
 <p>This is automatically done but the package name for the mapper class can
 be set as an CompilerOption.</p>
@@ -82,14 +82,15 @@
 </pre>
 
 <p>When the mapping package is not specified it is derived from the
-targetnamespace of the first schema that is encountered</p>
+targetnamespace of the first schema that is encountered.</p>
 
-<h2><a name="helper">Helper mode</a></h2>
+<a name="helper"></a>
+<h2>Helper mode</h2>
 
 <p>Helper mode is a fairly new feature. In the helper mode, the beans are
 plain Java beans and all the deserialization/serialization code is moved to a
-helper class. For example the simple schema mentioned in the ADB-howto
-document will yield four classes for the two that has been previously seen</p>
+helper class. For example, the simple schema mentioned in the ADB-howto
+document will yield four classes for the two that has been previously seen.</p>
 <ol>
   <li>MyElement.java</li>
   <li>MyElementHelper.java</li>
@@ -100,13 +101,14 @@
 <p>The helpers basically contain all the code that went into the ADBBeans.
 Hence the beans in the helper mode are pretty much readable than the rest.
 Also note that the helper mode is available only if you are in the unpacked
-mode. The code generator by default does not expand the classes</p>
+mode. The code generator by default does not expand the classes.</p>
 
 <p>Helper mode can be switched on by using the setHelperMode method  
-in CompilerOptions</p>
+in CompilerOptions : </p>
 <pre><strong>compilerOptions.setHelperMode(true);</strong></pre>
 
-<h2><a name="more">More Stuff on ADB?</a></h2>
+<a name="more"></a>
+<h2>More Stuff on ADB?</h2>
 <ul>
   <li><a href="adb-tweaking.html">Tweaking the ADB Code Generator</a>-
     explains available mechanisms to extend ADB and possibly adopt it to



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message