juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [juneau-website] branch asf-site updated: minor fixes.
Date Fri, 02 Oct 2020 18:06:54 GMT
This is an automated email from the ASF dual-hosted git repository.

jamesbognar pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/juneau-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 96865ef  minor fixes.
96865ef is described below

commit 96865ef2a16669f9ebce9d2c3c6bac78a611134e
Author: JamesBognar <james.bognar@salesforce.com>
AuthorDate: Fri Oct 2 14:06:48 2020 -0400

    minor fixes.
---
 content/marshall.html   | 18 +++++++++---------
 templates/marshall.html | 18 +++++++++---------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/content/marshall.html b/content/marshall.html
index 0609bcc..6f2e106 100644
--- a/content/marshall.html
+++ b/content/marshall.html
@@ -75,8 +75,8 @@
 		<p class='bcode w800'>
 	<jc>// A simple bean</jc>
 	<jk>public class</jk> Person {
-		<jk>public</jk> String name = <js>"John Smith"</js>;
-		<jk>public int</jk> age = 21;
+		<jk>public</jk> String <jf>name</jf> = <js>"John Smith"</js>;
+		<jk>public int</jk> <jf>age</jf> = 21;
 	}
 	
 	Person <jv>person</jv> = <jk>new</jk> Person();  <jc>// An
arbitrary POJO</jc>
@@ -146,8 +146,8 @@
 	
 	<jc>// Parse a JSON number as a Long or Float.</jc>
 	<jv>json</jv> = <js>"123"</js>;
-	Long <jv>long</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Long.<jk>class</jk>);
-	Float <jv>float</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Float.<jk>class</jk>);
+	Long <jv>_long</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Long.<jk>class</jk>);
+	Float <jv>_float</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Float.<jk>class</jk>);
 	
 	<jc>// Parse a JSON object as a bean.</jc>
 	<jv>json</jv> = <js>"{name:'John Smith',age:21}"</js>;
@@ -164,7 +164,7 @@
 	
 	<jc>// Parse a JSON object as a HashMap&lt;String,LinkedList&lt;Person&gt;&gt;.</jc>
 	<jv>json</jv> = <js>"{a:[{name:'John Smith',age:21},{name:'Joe Smith',age:42}]}"</js>;
-	Map&lt;String,List&lt;Person&gt;&gt; personListMap = <jv>parser</jv>.parse(
+	Map&lt;String,List&lt;Person&gt;&gt; <jv>personListMap</jv>
= <jv>parser</jv>.parse(
 		<jv>json</jv>, 
 		HashMap.<jk>class</jk>, 
 		String.<jk>class</jk>, 
@@ -511,7 +511,7 @@
 	<jc>// A simple bean</jc>
 	<jk>public class</jk> Person {
 		<jk>public</jk> String <jf>name</jf> = <js>"This is RDF format."</js>;
-		<jk>public</jk> String <jf>id</jf> = "rdf";
+		<jk>public</jk> String <jf>id</jf> = <js>"foo"</js>;
 	}
 	
 	<jc>// Serialize a bean to various RDF languages</jc>
@@ -524,7 +524,7 @@
 	//  xmlns:j="http://www.apache.org/juneau/"&gt;
 	// 	&lt;rdf:Description&gt;
 	// 		&lt;jp:name&gt;This is RDF format.&lt;/jp:name&gt;
-	// 		&lt;jp:id&gt;rdf&lt;/jp:id&gt;
+	// 		&lt;jp:id&gt;foo&lt;/jp:id&gt;
 	// 	&lt;/rdf:Description&gt;
 	// &lt;/rdf:RDF&gt;</jc>
 	String <jv>rdfXml</jv> = RdfXmlAbbrevSerializer.<jsf>DEFAULT</jsf>.serialize(<jv>person</jv>);
@@ -532,7 +532,7 @@
 	<jc>// Produces:
 	// @prefix jp:      &lt;http://www.apache.org/juneaubp/&gt; .
 	// @prefix j:       &lt;http://www.apache.org/juneau/&gt; .
-	//	[]    jp:id  "rdf" ;
+	//	[]    jp:id  "foo" ;
 	//	      jp:name "This is RDF format." .</jc>
 	String <jv>rdfN3</jv> = N3Serializer.<jsf>DEFAULT</jsf>.serialize(<jv>person</jv>);
 
@@ -544,7 +544,7 @@
 	<jc>// Produces:
 	// @prefix jp:      &lt;http://www.apache.org/juneaubp/&gt; .
 	// @prefix j:       &lt;http://www.apache.org/juneau/&gt; .
-	//	[]    jp:id  "rdf" ;
+	//	[]    jp:id  "foo" ;
 	//	      jp:name "This is RDF format." .</jc>
 	String <jv>rdfTurtle</jv> = TurtleSerializer.<jsf>DEFAULT</jsf>.serialize(<jv>person</jv>);
 		</p>
diff --git a/templates/marshall.html b/templates/marshall.html
index 2021eae..52467be 100644
--- a/templates/marshall.html
+++ b/templates/marshall.html
@@ -75,8 +75,8 @@
 		<p class='bcode w800'>
 	<jc>// A simple bean</jc>
 	<jk>public class</jk> Person {
-		<jk>public</jk> String name = <js>"John Smith"</js>;
-		<jk>public int</jk> age = 21;
+		<jk>public</jk> String <jf>name</jf> = <js>"John Smith"</js>;
+		<jk>public int</jk> <jf>age</jf> = 21;
 	}
 	
 	Person <jv>person</jv> = <jk>new</jk> Person();  <jc>// An
arbitrary POJO</jc>
@@ -146,8 +146,8 @@
 	
 	<jc>// Parse a JSON number as a Long or Float.</jc>
 	<jv>json</jv> = <js>"123"</js>;
-	Long <jv>long</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Long.<jk>class</jk>);
-	Float <jv>float</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Float.<jk>class</jk>);
+	Long <jv>_long</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Long.<jk>class</jk>);
+	Float <jv>_float</jv> = <jv>parser</jv>.parse(<jv>json</jv>,
Float.<jk>class</jk>);
 	
 	<jc>// Parse a JSON object as a bean.</jc>
 	<jv>json</jv> = <js>"{name:'John Smith',age:21}"</js>;
@@ -164,7 +164,7 @@
 	
 	<jc>// Parse a JSON object as a HashMap&lt;String,LinkedList&lt;Person&gt;&gt;.</jc>
 	<jv>json</jv> = <js>"{a:[{name:'John Smith',age:21},{name:'Joe Smith',age:42}]}"</js>;
-	Map&lt;String,List&lt;Person&gt;&gt; personListMap = <jv>parser</jv>.parse(
+	Map&lt;String,List&lt;Person&gt;&gt; <jv>personListMap</jv>
= <jv>parser</jv>.parse(
 		<jv>json</jv>, 
 		HashMap.<jk>class</jk>, 
 		String.<jk>class</jk>, 
@@ -511,7 +511,7 @@
 	<jc>// A simple bean</jc>
 	<jk>public class</jk> Person {
 		<jk>public</jk> String <jf>name</jf> = <js>"This is RDF format."</js>;
-		<jk>public</jk> String <jf>id</jf> = "rdf";
+		<jk>public</jk> String <jf>id</jf> = <js>"foo"</js>;
 	}
 	
 	<jc>// Serialize a bean to various RDF languages</jc>
@@ -524,7 +524,7 @@
 	//  xmlns:j="http://www.apache.org/juneau/"&gt;
 	// 	&lt;rdf:Description&gt;
 	// 		&lt;jp:name&gt;This is RDF format.&lt;/jp:name&gt;
-	// 		&lt;jp:id&gt;rdf&lt;/jp:id&gt;
+	// 		&lt;jp:id&gt;foo&lt;/jp:id&gt;
 	// 	&lt;/rdf:Description&gt;
 	// &lt;/rdf:RDF&gt;</jc>
 	String <jv>rdfXml</jv> = RdfXmlAbbrevSerializer.<jsf>DEFAULT</jsf>.serialize(<jv>person</jv>);
@@ -532,7 +532,7 @@
 	<jc>// Produces:
 	// @prefix jp:      &lt;http://www.apache.org/juneaubp/&gt; .
 	// @prefix j:       &lt;http://www.apache.org/juneau/&gt; .
-	//	[]    jp:id  "rdf" ;
+	//	[]    jp:id  "foo" ;
 	//	      jp:name "This is RDF format." .</jc>
 	String <jv>rdfN3</jv> = N3Serializer.<jsf>DEFAULT</jsf>.serialize(<jv>person</jv>);
 
@@ -544,7 +544,7 @@
 	<jc>// Produces:
 	// @prefix jp:      &lt;http://www.apache.org/juneaubp/&gt; .
 	// @prefix j:       &lt;http://www.apache.org/juneau/&gt; .
-	//	[]    jp:id  "rdf" ;
+	//	[]    jp:id  "foo" ;
 	//	      jp:name "This is RDF format." .</jc>
 	String <jv>rdfTurtle</jv> = TurtleSerializer.<jsf>DEFAULT</jsf>.serialize(<jv>person</jv>);
 		</p>


Mime
View raw message