juneau-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jamesbog...@apache.org
Subject [5/5] juneau git commit: Sort methods in builder classes.
Date Sun, 07 Jan 2018 21:28:37 GMT
Sort methods in builder classes.

Project: http://git-wip-us.apache.org/repos/asf/juneau/repo
Commit: http://git-wip-us.apache.org/repos/asf/juneau/commit/45640a1a
Tree: http://git-wip-us.apache.org/repos/asf/juneau/tree/45640a1a
Diff: http://git-wip-us.apache.org/repos/asf/juneau/diff/45640a1a

Branch: refs/heads/master
Commit: 45640a1a26e952b434afb4be6e1a08141d4090ad
Parents: 13af2b9
Author: JamesBognar <jamesbognar@apache.org>
Authored: Sun Jan 7 16:28:28 2018 -0500
Committer: JamesBognar <jamesbognar@apache.org>
Committed: Sun Jan 7 16:28:28 2018 -0500

----------------------------------------------------------------------
 .../apache/juneau/jena/RdfParserBuilder.java    |  264 ++--
 .../juneau/jena/RdfSerializerBuilder.java       |  442 +++----
 .../org/apache/juneau/BeanContextBuilder.java   | 1212 +++++++++---------
 .../org/apache/juneau/csv/CsvParserBuilder.java |   24 +-
 .../apache/juneau/csv/CsvSerializerBuilder.java |  104 +-
 .../apache/juneau/html/HtmlParserBuilder.java   |   24 +-
 .../juneau/html/HtmlSerializerBuilder.java      |  192 ++-
 .../SimpleUonPartSerializerBuilder.java         |  106 +-
 .../juneau/httppart/UonPartParserBuilder.java   |   26 +-
 .../httppart/UonPartSerializerBuilder.java      |  106 +-
 .../org/apache/juneau/jso/JsoParserBuilder.java |   32 +-
 .../apache/juneau/jso/JsoSerializerBuilder.java |  104 +-
 .../apache/juneau/json/JsonParserBuilder.java   |   25 +-
 .../json/JsonSchemaSerializerBuilder.java       |  114 +-
 .../juneau/json/JsonSerializerBuilder.java      |  136 +-
 .../juneau/msgpack/MsgPackParserBuilder.java    |   24 +-
 .../msgpack/MsgPackSerializerBuilder.java       |  104 +-
 .../org/apache/juneau/parser/ParserBuilder.java |  300 ++---
 .../juneau/parser/ParserGroupBuilder.java       |   78 +-
 .../plaintext/PlainTextParserBuilder.java       |   24 +-
 .../plaintext/PlainTextSerializerBuilder.java   |  104 +-
 .../juneau/serializer/SerializerBuilder.java    |  294 ++---
 .../serializer/SerializerGroupBuilder.java      |  168 +--
 .../juneau/soap/SoapXmlSerializerBuilder.java   |  126 +-
 .../org/apache/juneau/uon/UonParserBuilder.java |   24 +-
 .../apache/juneau/uon/UonSerializerBuilder.java |  104 +-
 .../urlencoding/UrlEncodingParserBuilder.java   |   26 +-
 .../UrlEncodingSerializerBuilder.java           |  107 +-
 .../org/apache/juneau/xml/XmlParserBuilder.java |  118 +-
 .../juneau/xml/XmlSchemaSerializerBuilder.java  |  132 +-
 .../apache/juneau/xml/XmlSerializerBuilder.java |  194 ++-
 .../juneau/yaml/proto/YamlParserBuilder.java    |   24 +-
 .../yaml/proto/YamlSerializerBuilder.java       |  136 +-
 .../juneau/rest/client/RestClientBuilder.java   |  510 ++++----
 .../apache/juneau/rest/RestContextBuilder.java  |   38 +-
 .../org/apache/juneau/rest/RestJavaMethod.java  |    3 +-
 .../org/apache/juneau/rest/RestRequest.java     |    5 -
 .../rest/remoteable/RemoteableServlet.java      |    2 +-
 38 files changed, 2435 insertions(+), 3121 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/juneau/blob/45640a1a/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfParserBuilder.java
----------------------------------------------------------------------
diff --git a/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfParserBuilder.java
b/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfParserBuilder.java
index 8ad124f..d1bdf65 100644
--- a/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfParserBuilder.java
+++ b/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfParserBuilder.java
@@ -56,22 +56,73 @@ public class RdfParserBuilder extends ParserBuilder {
 	//--------------------------------------------------------------------------------
 
 	/**
-	 * Configuration property:  Trim whitespace from text elements.
+	 * Configuration property:  RDF format for representing collections and arrays.
 	 * 
 	 * <p>
-	 * If <jk>true</jk>, whitespace in text elements will be automatically trimmed.
+	 * Possible values:
+	 * <ul class='spaced-list'>
+	 * 	<li>
+	 * 		<js>"DEFAULT"</js> - Default format.  The default is an RDF Sequence container.
+	 * 	<li>
+	 * 		<js>"SEQ"</js> - RDF Sequence container.
+	 * 	<li>
+	 * 		<js>"BAG"</js> - RDF Bag container.
+	 * 	<li>
+	 * 		<js>"LIST"</js> - RDF List container.
+	 * 	<li>
+	 * 		<js>"MULTI_VALUED"</js> - Multi-valued properties.
+	 * </ul>
 	 * 
 	 * <h5 class='section'>Notes:</h5>
 	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_trimWhitespace</jsf>,
value)</code>.
+	 * 	<li>If you use <js>"BAG"</js> or <js>"MULTI_VALUED"</js>,
the order of the elements in the collection will get 
+	 * 		lost.
+	 * </ul>
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_collectionFormat</jsf>,
value)</code>.
+	 * 	<li>This introduces a slight performance penalty.
 	 * </ul>
 	 *
 	 * @param value The new value for this property.
 	 * @return This object (for method chaining).
-	 * @see RdfParser#RDF_trimWhitespace
+	 * @see RdfCommon#RDF_collectionFormat
 	 */
-	public RdfParserBuilder trimWhitespace(boolean value) {
-		return set(RDF_trimWhitespace, value);
+	public RdfParserBuilder collectionFormat(RdfCollectionFormat value) {
+		return set(RDF_collectionFormat, value);
+	}
+
+	/**
+	 * Configuration property:  Default XML namespace for bean properties.
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauBpNs</jsf>,
value)</code>.
+	 * </ul>
+	 *
+	 * @param value The new value for this property.
+	 * @return This object (for method chaining).
+	 * @see RdfCommon#RDF_juneauBpNs
+	 */
+	public RdfParserBuilder juneauBpNs(Namespace value) {
+		return set(RDF_juneauBpNs, value);
+	}
+
+	/**
+	 * Configuration property:  XML namespace for Juneau properties.
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauNs</jsf>,
value)</code>.
+	 * </ul>
+	 *
+	 * @param value The new value for this property.
+	 * @return This object (for method chaining).
+	 * @see RdfCommon#RDF_juneauNs
+	 */
+	public RdfParserBuilder juneauNs(Namespace value) {
+		return set(RDF_juneauNs, value);
 	}
 
 	/**
@@ -121,30 +172,54 @@ public class RdfParserBuilder extends ParserBuilder {
 	}
 
 	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML</jsf>)</code>
+	 * Configuration property:  Collections should be serialized and parsed as loose collections.
 	 * 
-	 * @return This object (for method chaining).
-	 */
-	public RdfParserBuilder xml() {
-		return language(Constants.LANG_RDF_XML);
-	}
-
-	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML_ABBREV</jsf>)</code>
+	 * <p>
+	 * When specified, collections of resources are handled as loose collections of resources
in RDF instead of
+	 * resources that are children of an RDF collection (e.g. Sequence, Bag).
 	 * 
-	 * @return This object (for method chaining).
-	 */
-	public RdfParserBuilder xmlabbrev() {
-		return language(Constants.LANG_RDF_XML_ABBREV);
-	}
-
-	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_NTRIPLE</jsf>)</code>
+	 * <p>
+	 * Note that this setting is specialized for RDF syntax, and is incompatible with the concept
of
+	 * losslessly representing POJO models, since the tree structure of these POJO models are
lost
+	 * when serialized as loose collections.
+	 * 
+	 * <p>
+	 * This setting is typically only useful if the beans being parsed into do not have a bean
property
+	 * annotated with {@link Rdf#beanUri @Rdf(beanUri=true)}.
+	 *
+	 * <h5 class='section'>Example:</h5>
+	 * <p class='bcode'>
+	 * 	WriterSerializer s = <jk>new</jk> RdfSerializerBuilder().xmlabbrev().looseCollections(<jk>true</jk>).build();
+	 * 	ReaderParser p = <jk>new</jk> RdfParserBuilder().xml().looseCollections(<jk>true</jk>).build();
+	 *
+	 * 	List&lt;MyBean&gt; l = createListOfMyBeans();
+	 *
+	 * 	<jc>// Serialize to RDF/XML as loose resources</jc>
+	 * 	String rdfXml = s.serialize(l);
 	 * 
+	 * 	<jc>// Parse back into a Java collection</jc>
+	 * 	l = p.parse(rdfXml, LinkedList.<jk>class</jk>, MyBean.<jk>class</jk>);
+	 *
+	 * 	MyBean[] b = createArrayOfMyBeans();
+	 *
+	 * 	<jc>// Serialize to RDF/XML as loose resources</jc>
+	 * 	String rdfXml = s.serialize(b);
+	 * 
+	 * 	<jc>// Parse back into a bean array</jc>
+	 * 	b = p.parse(rdfXml, MyBean[].<jk>class</jk>);
+	 * </p>
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_looseCollections</jsf>,
value)</code>.
+	 * </ul>
+	 *
+	 * @param value The new value for this property.
 	 * @return This object (for method chaining).
+	 * @see RdfCommon#RDF_looseCollections
 	 */
-	public RdfParserBuilder ntriple() {
-		return language(Constants.LANG_NTRIPLE);
+	public RdfParserBuilder looseCollections(boolean value) {
+		return set(RDF_looseCollections, value);
 	}
 
 	/**
@@ -157,44 +232,40 @@ public class RdfParserBuilder extends ParserBuilder {
 	}
 
 	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_TURTLE</jsf>)</code>
+	 * Shortcut for calling <code>language(<jsf>LANG_NTRIPLE</jsf>)</code>
 	 * 
 	 * @return This object (for method chaining).
 	 */
-	public RdfParserBuilder turtle() {
-		return language(Constants.LANG_TURTLE);
+	public RdfParserBuilder ntriple() {
+		return language(Constants.LANG_NTRIPLE);
 	}
 
 	/**
-	 * Configuration property:  XML namespace for Juneau properties.
+	 * Configuration property:  Trim whitespace from text elements.
+	 * 
+	 * <p>
+	 * If <jk>true</jk>, whitespace in text elements will be automatically trimmed.
 	 * 
 	 * <h5 class='section'>Notes:</h5>
 	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauNs</jsf>,
value)</code>.
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_trimWhitespace</jsf>,
value)</code>.
 	 * </ul>
 	 *
 	 * @param value The new value for this property.
 	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_juneauNs
+	 * @see RdfParser#RDF_trimWhitespace
 	 */
-	public RdfParserBuilder juneauNs(Namespace value) {
-		return set(RDF_juneauNs, value);
+	public RdfParserBuilder trimWhitespace(boolean value) {
+		return set(RDF_trimWhitespace, value);
 	}
 
 	/**
-	 * Configuration property:  Default XML namespace for bean properties.
+	 * Shortcut for calling <code>language(<jsf>LANG_TURTLE</jsf>)</code>
 	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauBpNs</jsf>,
value)</code>.
-	 * </ul>
-	 *
-	 * @param value The new value for this property.
 	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_juneauBpNs
 	 */
-	public RdfParserBuilder juneauBpNs(Namespace value) {
-		return set(RDF_juneauBpNs, value);
+	public RdfParserBuilder turtle() {
+		return language(Constants.LANG_TURTLE);
 	}
 
 	/**
@@ -219,127 +290,56 @@ public class RdfParserBuilder extends ParserBuilder {
 	}
 
 	/**
-	 * Configuration property:  RDF format for representing collections and arrays.
-	 * 
-	 * <p>
-	 * Possible values:
-	 * <ul class='spaced-list'>
-	 * 	<li>
-	 * 		<js>"DEFAULT"</js> - Default format.  The default is an RDF Sequence container.
-	 * 	<li>
-	 * 		<js>"SEQ"</js> - RDF Sequence container.
-	 * 	<li>
-	 * 		<js>"BAG"</js> - RDF Bag container.
-	 * 	<li>
-	 * 		<js>"LIST"</js> - RDF List container.
-	 * 	<li>
-	 * 		<js>"MULTI_VALUED"</js> - Multi-valued properties.
-	 * </ul>
-	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>If you use <js>"BAG"</js> or <js>"MULTI_VALUED"</js>,
the order of the elements in the collection will get 
-	 * 		lost.
-	 * </ul>
+	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML</jsf>)</code>
 	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_collectionFormat</jsf>,
value)</code>.
-	 * 	<li>This introduces a slight performance penalty.
-	 * </ul>
-	 *
-	 * @param value The new value for this property.
 	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_collectionFormat
 	 */
-	public RdfParserBuilder collectionFormat(RdfCollectionFormat value) {
-		return set(RDF_collectionFormat, value);
+	public RdfParserBuilder xml() {
+		return language(Constants.LANG_RDF_XML);
 	}
 
 	/**
-	 * Configuration property:  Collections should be serialized and parsed as loose collections.
-	 * 
-	 * <p>
-	 * When specified, collections of resources are handled as loose collections of resources
in RDF instead of
-	 * resources that are children of an RDF collection (e.g. Sequence, Bag).
-	 * 
-	 * <p>
-	 * Note that this setting is specialized for RDF syntax, and is incompatible with the concept
of
-	 * losslessly representing POJO models, since the tree structure of these POJO models are
lost
-	 * when serialized as loose collections.
-	 * 
-	 * <p>
-	 * This setting is typically only useful if the beans being parsed into do not have a bean
property
-	 * annotated with {@link Rdf#beanUri @Rdf(beanUri=true)}.
-	 *
-	 * <h5 class='section'>Example:</h5>
-	 * <p class='bcode'>
-	 * 	WriterSerializer s = <jk>new</jk> RdfSerializerBuilder().xmlabbrev().looseCollections(<jk>true</jk>).build();
-	 * 	ReaderParser p = <jk>new</jk> RdfParserBuilder().xml().looseCollections(<jk>true</jk>).build();
-	 *
-	 * 	List&lt;MyBean&gt; l = createListOfMyBeans();
-	 *
-	 * 	<jc>// Serialize to RDF/XML as loose resources</jc>
-	 * 	String rdfXml = s.serialize(l);
-	 * 
-	 * 	<jc>// Parse back into a Java collection</jc>
-	 * 	l = p.parse(rdfXml, LinkedList.<jk>class</jk>, MyBean.<jk>class</jk>);
-	 *
-	 * 	MyBean[] b = createArrayOfMyBeans();
-	 *
-	 * 	<jc>// Serialize to RDF/XML as loose resources</jc>
-	 * 	String rdfXml = s.serialize(b);
-	 * 
-	 * 	<jc>// Parse back into a bean array</jc>
-	 * 	b = p.parse(rdfXml, MyBean[].<jk>class</jk>);
-	 * </p>
+	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML_ABBREV</jsf>)</code>
 	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_looseCollections</jsf>,
value)</code>.
-	 * </ul>
-	 *
-	 * @param value The new value for this property.
 	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_looseCollections
 	 */
-	public RdfParserBuilder looseCollections(boolean value) {
-		return set(RDF_looseCollections, value);
+	public RdfParserBuilder xmlabbrev() {
+		return language(Constants.LANG_RDF_XML_ABBREV);
 	}
 
 	@Override /* ParserBuilder */
-	public RdfParserBuilder trimStrings(boolean value) {
-		super.trimStrings(value);
+	public RdfParserBuilder fileCharset(String value) {
+		super.fileCharset(value);
 		return this;
 	}
 
 	@Override /* ParserBuilder */
-	public RdfParserBuilder strict(boolean value) {
-		super.strict(value);
+	public RdfParserBuilder inputStreamCharset(String value) {
+		super.inputStreamCharset(value);
 		return this;
 	}
 
 	@Override /* ParserBuilder */
-	public RdfParserBuilder strict() {
-		super.strict();
+	public RdfParserBuilder listener(Class<? extends ParserListener> value) {
+		super.listener(value);
 		return this;
 	}
 
 	@Override /* ParserBuilder */
-	public RdfParserBuilder inputStreamCharset(String value) {
-		super.inputStreamCharset(value);
+	public RdfParserBuilder strict() {
+		super.strict();
 		return this;
 	}
 
 	@Override /* ParserBuilder */
-	public RdfParserBuilder fileCharset(String value) {
-		super.fileCharset(value);
+	public RdfParserBuilder strict(boolean value) {
+		super.strict(value);
 		return this;
 	}
 
 	@Override /* ParserBuilder */
-	public RdfParserBuilder listener(Class<? extends ParserListener> value) {
-		super.listener(value);
+	public RdfParserBuilder trimStrings(boolean value) {
+		super.trimStrings(value);
 		return this;
 	}
 

http://git-wip-us.apache.org/repos/asf/juneau/blob/45640a1a/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfSerializerBuilder.java
----------------------------------------------------------------------
diff --git a/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfSerializerBuilder.java
b/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfSerializerBuilder.java
index c0968ca..af33ee5 100644
--- a/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfSerializerBuilder.java
+++ b/juneau-core/juneau-marshall-rdf/src/main/java/org/apache/juneau/jena/RdfSerializerBuilder.java
@@ -56,154 +56,6 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	//--------------------------------------------------------------------------------
 
 	/**
-	 * Configuration property:  RDF language.
-	 * 
-	 * <p>
-	 * Can be any of the following:
-	 * <ul class='spaced-list'>
-	 * 	<li>
-	 * 		<js>"RDF/XML"</js>
-	 * 	<li>
-	 * 		<js>"RDF/XML-ABBREV"</js>
-	 * 	<li>
-	 * 		<js>"N-TRIPLE"</js>
-	 * 	<li>
-	 * 		<js>"N3"</js> - General name for the N3 writer.
-	 * 		Will make a decision on exactly which writer to use (pretty writer, plain writer or
simple writer) when 
-	 * 		created.
-	 * 		Default is the pretty writer but can be overridden with system property	
-	 * 		<code>com.hp.hpl.jena.n3.N3JenaWriter.writer</code>.
-	 * 	<li>
-	 * 		<js>"N3-PP"</js> - Name of the N3 pretty writer.
-	 * 		The pretty writer uses a frame-like layout, with prefixing, clustering like properties
and embedding 
-	 * 		one-referenced bNodes.
-	 * 	<li>
-	 * 		<js>"N3-PLAIN"</js> - Name of the N3 plain writer.
-	 * 		The plain writer writes records by subject.
-	 * 	<li>
-	 * 		<js>"N3-TRIPLES"</js> - Name of the N3 triples writer.
-	 * 		This writer writes one line per statement, like N-Triples, but does N3-style prefixing.
-	 * 	<li>
-	 * 		<js>"TURTLE"</js> -  Turtle writer.
-	 * 		http://www.dajobe.org/2004/01/turtle/
-	 * </ul>
-	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_language</jsf>,
value)</code>.
-	 * 	<li>This introduces a slight performance penalty.
-	 * </ul>
-	 *
-	 * @param value The new value for this property.
-	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_language
-	 */
-	public RdfSerializerBuilder language(String value) {
-		return set(RDF_language, value);
-	}
-
-	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML</jsf>)</code>
-	 * 
-	 * @return This object (for method chaining).
-	 */
-	public RdfSerializerBuilder xml() {
-		return language(Constants.LANG_RDF_XML);
-	}
-
-	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML_ABBREV</jsf>)</code>
-	 * 
-	 * @return This object (for method chaining).
-	 */
-	public RdfSerializerBuilder xmlabbrev() {
-		return language(Constants.LANG_RDF_XML_ABBREV);
-	}
-
-	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_NTRIPLE</jsf>)</code>
-	 * 
-	 * @return This object (for method chaining).
-	 */
-	public RdfSerializerBuilder ntriple() {
-		return language(Constants.LANG_NTRIPLE);
-	}
-
-	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_N3</jsf>)</code>
-	 * 
-	 * @return This object (for method chaining).
-	 */
-	public RdfSerializerBuilder n3() {
-		return language(Constants.LANG_N3);
-	}
-
-	/**
-	 * Shortcut for calling <code>language(<jsf>LANG_TURTLE</jsf>)</code>
-	 * 
-	 * @return This object (for method chaining).
-	 */
-	public RdfSerializerBuilder turtle() {
-		return language(Constants.LANG_TURTLE);
-	}
-
-	/**
-	 * Configuration property:  XML namespace for Juneau properties.
-	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauNs</jsf>,
value)</code>.
-	 * 	<li>This introduces a slight performance penalty.
-	 * </ul>
-	 *
-	 * @param value The new value for this property.
-	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_juneauNs
-	 */
-	public RdfSerializerBuilder juneauNs(Namespace value) {
-		return set(RDF_juneauNs, value);
-	}
-
-	/**
-	 * Configuration property:  Default XML namespace for bean properties.
-	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauBpNs</jsf>,
value)</code>.
-	 * 	<li>This introduces a slight performance penalty.
-	 * </ul>
-	 *
-	 * @param value The new value for this property.
-	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_juneauBpNs
-	 */
-	public RdfSerializerBuilder juneauBpNs(Namespace value) {
-		return set(RDF_juneauBpNs, value);
-	}
-
-	/**
-	 * Configuration property:  Reuse XML namespaces when RDF namespaces not specified.
-	 * 
-	 * <p>
-	 * When specified, namespaces defined using {@link XmlNs} and {@link org.apache.juneau.xml.annotation.Xml}
will be 
-	 * inherited by the RDF serializers.
-	 * Otherwise, namespaces will be defined using {@link RdfNs} and {@link Rdf}.
-	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_useXmlNamespaces</jsf>,
value)</code>.
-	 * 	<li>This introduces a slight performance penalty.
-	 * </ul>
-	 *
-	 * @param value The new value for this property.
-	 * @return This object (for method chaining).
-	 * @see RdfCommon#RDF_useXmlNamespaces
-	 */
-	public RdfSerializerBuilder useXmlNamespaces(boolean value) {
-		return set(RDF_useXmlNamespaces, value);
-	}
-
-	/**
 	 * Configuration property:  Add XSI data types to non-<code>String</code> literals.
 	 * 
 	 * <h5 class='section'>Notes:</h5>
@@ -271,26 +123,6 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	}
 
 	/**
-	 * Configuration property:  Default namespaces.
-	 * 
-	 * <p>
-	 * The default list of namespaces associated with this serializer.
-	 * 
-	 * <h5 class='section'>Notes:</h5>
-	 * <ul>
-	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_namespaces</jsf>,
values)</code>.
-	 * 	<li>This introduces a slight performance penalty.
-	 * </ul>
-	 *
-	 * @param values The new value for this property.
-	 * @return This object (for method chaining).
-	 * @see RdfSerializer#RDF_namespaces
-	 */
-	public RdfSerializerBuilder namespaces(Namespace...values) {
-		return set(RDF_namespaces, values);
-	}
-
-	/**
 	 * Configuration property:  RDF format for representing collections and arrays.
 	 * 
 	 * <p>
@@ -329,6 +161,87 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	}
 
 	/**
+	 * Configuration property:  Default XML namespace for bean properties.
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauBpNs</jsf>,
value)</code>.
+	 * 	<li>This introduces a slight performance penalty.
+	 * </ul>
+	 *
+	 * @param value The new value for this property.
+	 * @return This object (for method chaining).
+	 * @see RdfCommon#RDF_juneauBpNs
+	 */
+	public RdfSerializerBuilder juneauBpNs(Namespace value) {
+		return set(RDF_juneauBpNs, value);
+	}
+
+	/**
+	 * Configuration property:  XML namespace for Juneau properties.
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_juneauNs</jsf>,
value)</code>.
+	 * 	<li>This introduces a slight performance penalty.
+	 * </ul>
+	 *
+	 * @param value The new value for this property.
+	 * @return This object (for method chaining).
+	 * @see RdfCommon#RDF_juneauNs
+	 */
+	public RdfSerializerBuilder juneauNs(Namespace value) {
+		return set(RDF_juneauNs, value);
+	}
+
+	/**
+	 * Configuration property:  RDF language.
+	 * 
+	 * <p>
+	 * Can be any of the following:
+	 * <ul class='spaced-list'>
+	 * 	<li>
+	 * 		<js>"RDF/XML"</js>
+	 * 	<li>
+	 * 		<js>"RDF/XML-ABBREV"</js>
+	 * 	<li>
+	 * 		<js>"N-TRIPLE"</js>
+	 * 	<li>
+	 * 		<js>"N3"</js> - General name for the N3 writer.
+	 * 		Will make a decision on exactly which writer to use (pretty writer, plain writer or
simple writer) when 
+	 * 		created.
+	 * 		Default is the pretty writer but can be overridden with system property	
+	 * 		<code>com.hp.hpl.jena.n3.N3JenaWriter.writer</code>.
+	 * 	<li>
+	 * 		<js>"N3-PP"</js> - Name of the N3 pretty writer.
+	 * 		The pretty writer uses a frame-like layout, with prefixing, clustering like properties
and embedding 
+	 * 		one-referenced bNodes.
+	 * 	<li>
+	 * 		<js>"N3-PLAIN"</js> - Name of the N3 plain writer.
+	 * 		The plain writer writes records by subject.
+	 * 	<li>
+	 * 		<js>"N3-TRIPLES"</js> - Name of the N3 triples writer.
+	 * 		This writer writes one line per statement, like N-Triples, but does N3-style prefixing.
+	 * 	<li>
+	 * 		<js>"TURTLE"</js> -  Turtle writer.
+	 * 		http://www.dajobe.org/2004/01/turtle/
+	 * </ul>
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_language</jsf>,
value)</code>.
+	 * 	<li>This introduces a slight performance penalty.
+	 * </ul>
+	 *
+	 * @param value The new value for this property.
+	 * @return This object (for method chaining).
+	 * @see RdfCommon#RDF_language
+	 */
+	public RdfSerializerBuilder language(String value) {
+		return set(RDF_language, value);
+	}
+
+	/**
 	 * Configuration property:  Collections should be serialized and parsed as loose collections.
 	 * 
 	 * <p>
@@ -379,15 +292,102 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 		return set(RDF_looseCollections, value);
 	}
 
+	/**
+	 * Shortcut for calling <code>language(<jsf>LANG_N3</jsf>)</code>
+	 * 
+	 * @return This object (for method chaining).
+	 */
+	public RdfSerializerBuilder n3() {
+		return language(Constants.LANG_N3);
+	}
+
+	/**
+	 * Configuration property:  Default namespaces.
+	 * 
+	 * <p>
+	 * The default list of namespaces associated with this serializer.
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_namespaces</jsf>,
values)</code>.
+	 * 	<li>This introduces a slight performance penalty.
+	 * </ul>
+	 *
+	 * @param values The new value for this property.
+	 * @return This object (for method chaining).
+	 * @see RdfSerializer#RDF_namespaces
+	 */
+	public RdfSerializerBuilder namespaces(Namespace...values) {
+		return set(RDF_namespaces, values);
+	}
+
+	/**
+	 * Shortcut for calling <code>language(<jsf>LANG_NTRIPLE</jsf>)</code>
+	 * 
+	 * @return This object (for method chaining).
+	 */
+	public RdfSerializerBuilder ntriple() {
+		return language(Constants.LANG_NTRIPLE);
+	}
+
+	/**
+	 * Shortcut for calling <code>language(<jsf>LANG_TURTLE</jsf>)</code>
+	 * 
+	 * @return This object (for method chaining).
+	 */
+	public RdfSerializerBuilder turtle() {
+		return language(Constants.LANG_TURTLE);
+	}
+
+	/**
+	 * Configuration property:  Reuse XML namespaces when RDF namespaces not specified.
+	 * 
+	 * <p>
+	 * When specified, namespaces defined using {@link XmlNs} and {@link org.apache.juneau.xml.annotation.Xml}
will be 
+	 * inherited by the RDF serializers.
+	 * Otherwise, namespaces will be defined using {@link RdfNs} and {@link Rdf}.
+	 * 
+	 * <h5 class='section'>Notes:</h5>
+	 * <ul>
+	 * 	<li>This is equivalent to calling <code>property(<jsf>RDF_useXmlNamespaces</jsf>,
value)</code>.
+	 * 	<li>This introduces a slight performance penalty.
+	 * </ul>
+	 *
+	 * @param value The new value for this property.
+	 * @return This object (for method chaining).
+	 * @see RdfCommon#RDF_useXmlNamespaces
+	 */
+	public RdfSerializerBuilder useXmlNamespaces(boolean value) {
+		return set(RDF_useXmlNamespaces, value);
+	}
+
+	/**
+	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML</jsf>)</code>
+	 * 
+	 * @return This object (for method chaining).
+	 */
+	public RdfSerializerBuilder xml() {
+		return language(Constants.LANG_RDF_XML);
+	}
+
+	/**
+	 * Shortcut for calling <code>language(<jsf>LANG_RDF_XML_ABBREV</jsf>)</code>
+	 * 
+	 * @return This object (for method chaining).
+	 */
+	public RdfSerializerBuilder xmlabbrev() {
+		return language(Constants.LANG_RDF_XML_ABBREV);
+	}
+
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder maxDepth(int value) {
-		super.maxDepth(value);
+	public RdfSerializerBuilder abridged(boolean value) {
+		super.abridged(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder initialDepth(int value) {
-		super.initialDepth(value);
+	public RdfSerializerBuilder addBeanTypeProperties(boolean value) {
+		super.addBeanTypeProperties(value);
 		return this;
 	}
 
@@ -404,20 +404,26 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder useWhitespace(boolean value) {
-		super.useWhitespace(value);
+	public RdfSerializerBuilder initialDepth(int value) {
+		super.initialDepth(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder ws() {
-		super.ws();
+	public RdfSerializerBuilder listener(Class<? extends SerializerListener> value) {
+		super.listener(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder addBeanTypeProperties(boolean value) {
-		super.addBeanTypeProperties(value);
+	public RdfSerializerBuilder maxDepth(int value) {
+		super.maxDepth(value);
+		return this;
+	}
+
+	@Override /* SerializerBuilder */
+	public RdfSerializerBuilder maxIndent(int value) {
+		super.maxIndent(value);
 		return this;
 	}
 
@@ -428,14 +434,20 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder sq() {
-		super.sq();
+	public RdfSerializerBuilder sortCollections(boolean value) {
+		super.sortCollections(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder trimNullProperties(boolean value) {
-		super.trimNullProperties(value);
+	public RdfSerializerBuilder sortMaps(boolean value) {
+		super.sortMaps(value);
+		return this;
+	}
+
+	@Override /* SerializerBuilder */
+	public RdfSerializerBuilder sq() {
+		super.sq();
 		return this;
 	}
 
@@ -452,20 +464,20 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder trimStrings(boolean value) {
-		super.trimStrings(value);
+	public RdfSerializerBuilder trimNullProperties(boolean value) {
+		super.trimNullProperties(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder uriContext(UriContext value) {
-		super.uriContext(value);
+	public RdfSerializerBuilder trimStrings(boolean value) {
+		super.trimStrings(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder uriResolution(UriResolution value) {
-		super.uriResolution(value);
+	public RdfSerializerBuilder uriContext(UriContext value) {
+		super.uriContext(value);
 		return this;
 	}
 
@@ -476,26 +488,20 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder sortCollections(boolean value) {
-		super.sortCollections(value);
-		return this;
-	}
-
-	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder sortMaps(boolean value) {
-		super.sortMaps(value);
+	public RdfSerializerBuilder uriResolution(UriResolution value) {
+		super.uriResolution(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder abridged(boolean value) {
-		super.abridged(value);
+	public RdfSerializerBuilder useWhitespace(boolean value) {
+		super.useWhitespace(value);
 		return this;
 	}
 
 	@Override /* SerializerBuilder */
-	public RdfSerializerBuilder listener(Class<? extends SerializerListener> value) {
-		super.listener(value);
+	public RdfSerializerBuilder ws() {
+		super.ws();
 		return this;
 	}
 
@@ -710,42 +716,6 @@ public class RdfSerializerBuilder extends SerializerBuilder {
 	}
 
 	@Override /* BeanContextBuilder */
-	public RdfSerializerBuilder includeProperties(Map<String,String> values) {
-		super.includeProperties(values);
-		return this;
-	}
-
-	@Override /* BeanContextBuilder */
-	public RdfSerializerBuilder includeProperties(String beanClassName, String properties) {
-		super.includeProperties(beanClassName, properties);
-		return this;
-	}
-
-	@Override /* BeanContextBuilder */
-	public RdfSerializerBuilder includeProperties(Class<?> beanClass, String properties)
{
-		super.includeProperties(beanClass, properties);
-		return this;
-	}
-
-	@Override /* BeanContextBuilder */
-	public RdfSerializerBuilder excludeProperties(Map<String,String> values) {
-		super.excludeProperties(values);
-		return this;
-	}
-
-	@Override /* BeanContextBuilder */
-	public RdfSerializerBuilder excludeProperties(String beanClassName, String properties) {
-		super.excludeProperties(beanClassName, properties);
-		return this;
-	}
-
-	@Override /* BeanContextBuilder */
-	public RdfSerializerBuilder excludeProperties(Class<?> beanClass, String properties)
{
-		super.excludeProperties(beanClass, properties);
-		return this;
-	}
-
-	@Override /* BeanContextBuilder */
 	public RdfSerializerBuilder beanDictionary(Object...values) {
 		super.beanDictionary(values);
 		return this;


Mime
View raw message