http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/afa6a1d0/content/site/apidocs/org/apache/juneau/parser/InputStreamParser.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/InputStreamParser.html b/content/site/apidocs/org/apache/juneau/parser/InputStreamParser.html index 7c25fdb..94b95e3 100644 --- a/content/site/apidocs/org/apache/juneau/parser/InputStreamParser.html +++ b/content/site/apidocs/org/apache/juneau/parser/InputStreamParser.html @@ -135,7 +135,7 @@ var activeTableTab = "activeTableTab"; extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></pre> <div class="block">Subclass of <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser"><code>Parser</code></a> for byte-based parsers. - <h6 class='topic'>Description</h6> + <h5 class='section'>Description:</h5> <p> This class is typically the parent class of all byte-based parsers. It has 1 abstract method to implement... @@ -195,7 +195,7 @@ extends <a href="../../../../org/apache/juneau/parser/Parser.html" title="class <!-- --> </a> <h3>Methods inherited from class org.apache.juneau.parser.<a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></h3> -<code><a href="../../../../org/apache/juneau/parser/Parser.html#addBeanFilters-java.lang.Class...-">addBeanFilters</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addImplClass-java.lang.Class-java.lang.Class-">addImplClass</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addListener-org.apache.juneau.parser.ParserListener-">addListener</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addNotBeanClasses-java.lang.Class...-">addNotBeanClasses</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addPojoSwaps-java.lang.Class...-">addPojoSwaps</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addToDictionary-java.lang.Class...-">addToDictionary</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#clone--">clone</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#convertAttrToType-org.apache.juneau.parser.ParserSession-java.lang.Object-java.lang.String-org.apache.juneau.ClassMeta-">convertAttrToType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-java.lang.Object-">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-java.lang.Object-org.apache.juneau.ObjectMap-java.lang.reflect.Method-java.lang.Object-java.util.Locale-java.util.TimeZone-org.apache.juneau.MediaType-">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParse-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-">doParse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParseArgs-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta:A-">doParseArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParseIntoCollection-org.apache.juneau.parser.ParserSession-java.util.Collection-java.lang.reflect.Type-">doParseIntoCollection</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParseIntoMap-org.apache.juneau.parser.ParserSession-java.util.Map-java.lang.reflect. Type-java.lang.reflect.Type-">doParseIntoMap</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getListeners--">getListeners</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--">getMediaTypes</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getPrimaryMediaType--">getPrimaryMediaType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#lock--">lock</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#onUnknownProperty-org.apache.juneau.parser.ParserSession-java.lang.String-org.apache.juneau.BeanMap-int-int-">onUnknownProperty</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-">parse</a>, <a href="../ ../../../org/apache/juneau/parser/Parser.html#parseArgs-java.lang.Object-org.apache.juneau.ClassMeta:A-">parseArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseCollection-java.lang.Object-java.lang.Class-java.lang.Class-">parseCollection</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-java.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseMap-java.lang.Object-java.lang.Class-java.lang.Class-java.lang.Class-">parseMap</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setClassLoader-java.lang.ClassLoader-">setClassLoader</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setName-org.apache.juneau.ClassMeta-java.lang.Object-java.lang.Object-">se tName</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setParent-org.apache.juneau.ClassMeta-java.lang.Object-java.lang.Object-">setParent</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setProperty-java.lang.String-java.lang.Object-">setProperty</a></code></li> +<code><a href="../../../../org/apache/juneau/parser/Parser.html#addBeanFilters-java.lang.Class...-">addBeanFilters</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addImplClass-java.lang.Class-java.lang.Class-">addImplClass</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addListener-org.apache.juneau.parser.ParserListener-">addListener</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addNotBeanClasses-java.lang.Class...-">addNotBeanClasses</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addPojoSwaps-java.lang.Class...-">addPojoSwaps</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#addToDictionary-java.lang.Class...-">addToDictionary</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#clone--">clone</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#convertAttrToType-org.apache.juneau.parser.ParserSession-java.lang.Object-java.lang.String-org.apache.juneau.ClassMeta-">convertAttrToType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-java.lang.Object-">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-java.lang.Object-org.apache.juneau.ObjectMap-java.lang.reflect.Method-java.lang.Object-java.util.Locale-java.util.TimeZone-org.apache.juneau.MediaType-">createSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParse-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-">doParse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParseArgs-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta:A-">doParseArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParseIntoCollection-org.apache.juneau.parser.ParserSession-java.util.Collection-java.lang.reflect.Type-">doParseIntoCollection</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#doParseIntoMap-org.apache.juneau.parser.ParserSession-java.util.Map-java.lang.reflect. Type-java.lang.reflect.Type-">doParseIntoMap</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getListeners--">getListeners</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--">getMediaTypes</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#getPrimaryMediaType--">getPrimaryMediaType</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#lock--">lock</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#onUnknownProperty-org.apache.juneau.parser.ParserSession-java.lang.String-org.apache.juneau.BeanMap-int-int-">onUnknownProperty</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-">parse</a>, <a href="../. ./../../org/apache/juneau/parser/Parser.html#parseArgs-java.lang.Object-org.apache.juneau.ClassMeta:A-">parseArgs</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-java.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#parseSession-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-">parseSession</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setClassLoader-java.lang.ClassLoader-">setClassLoader</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setName-org.apache.juneau.ClassMeta-java.lang.Object-java.lang.Object-">setName</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setParent-org.apache.juneau.ClassMeta-java.lang.Object-java.lang.Obj ect-">setParent</a>, <a href="../../../../org/apache/juneau/parser/Parser.html#setProperty-java.lang.String-java.lang.Object-">setProperty</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.CoreApi">
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/afa6a1d0/content/site/apidocs/org/apache/juneau/parser/ParseException.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/ParseException.html b/content/site/apidocs/org/apache/juneau/parser/ParseException.html index cd48354..ee8aabb 100644 --- a/content/site/apidocs/org/apache/juneau/parser/ParseException.html +++ b/content/site/apidocs/org/apache/juneau/parser/ParseException.html @@ -245,7 +245,7 @@ extends <a href="../../../../org/apache/juneau/FormattedException.html" title="c <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The parser session to extract information from.</dd> <dd><code>message</code> - The exception message containing <a href="http://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html?is-external=true" title="class or interface in java.text"><code>MessageFormat</code></a>-style arguments.</dd> -<dd><code>args</code> - Message arguments.</dd> +<dd><code>args</code> - Optional <a href="http://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html?is-external=true" title="class or interface in java.text"><code>MessageFormat</code></a>-style arguments.</dd> </dl> </li> </ul> @@ -261,7 +261,7 @@ extends <a href="../../../../org/apache/juneau/FormattedException.html" title="c <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>message</code> - The exception message containing <a href="http://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html?is-external=true" title="class or interface in java.text"><code>MessageFormat</code></a>-style arguments.</dd> -<dd><code>args</code> - Message arguments.</dd> +<dd><code>args</code> - Optional <a href="http://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html?is-external=true" title="class or interface in java.text"><code>MessageFormat</code></a>-style arguments.</dd> </dl> </li> </ul> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/afa6a1d0/content/site/apidocs/org/apache/juneau/parser/Parser.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/Parser.html b/content/site/apidocs/org/apache/juneau/parser/Parser.html index 2c4228f..8f1aade 100644 --- a/content/site/apidocs/org/apache/juneau/parser/Parser.html +++ b/content/site/apidocs/org/apache/juneau/parser/Parser.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":6,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":6,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10}; +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":6,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":6,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -126,7 +126,7 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public abstract class <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.134">Parser</a> +<pre>public abstract class <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.133">Parser</a> extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org.apache.juneau">CoreApi</a></pre> <div class="block">Parent class for all Juneau parsers. @@ -137,7 +137,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org However, the media types can also be specified programmatically by overriding the <a href="../../../../org/apache/juneau/parser/Parser.html#getMediaTypes--"><code>getMediaTypes()</code></a> method. <a id='ValidDataConversions'></a><h6 class='topic'>Valid data conversions</h6> - Parsers can parse any parsable POJO types, as specified in the <a class='doclink' href='../../../../overview-summary.html#Core.PojoCategories'>POJO Categories</a>. + Parsers can parse any parsable POJO types, as specified in the <a class="doclink" href="../../../../overview-summary.html#Core.PojoCategories">POJO Categories</a>. <p> Some examples of conversions are shown below... </p> @@ -393,21 +393,22 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <td class="colFirst"><code><T> T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-">parse</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type)</code> -<div class="block">Parses input into the specified object type.</div> +<div class="block">Same as <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except optimized for a non-parameterized class.</div> </td> </tr> <tr id="i21" class="rowColor"> <td class="colFirst"><code><T> T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-">parse</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type)</code> -<div class="block">Parses the content of the reader and creates an object of the specified type.</div> +<div class="block">Same as <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except the type has already been converted into a <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> object.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code><T> T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parse-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-">parse</a></span>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, - <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type)</code> -<div class="block">Parses the content of the reader and creates an object of the specified type.</div> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-">parse</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args)</code> +<div class="block">Parses input into the specified object type.</div> </td> </tr> <tr id="i23" class="rowColor"> @@ -419,14 +420,6 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org </td> </tr> <tr id="i24" class="altColor"> -<td class="colFirst"><code><E,T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E>><br>T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parseCollection-java.lang.Object-java.lang.Class-java.lang.Class-">parseCollection</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> collectionClass, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><E> entryClass)</code> -<div class="block">Parses input into a collection with a specified element type.</div> -</td> -</tr> -<tr id="i25" class="rowColor"> <td class="colFirst"><code><E> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoCollection-java.lang.Object-java.util.Collection-java.lang.reflect.Type-">parseIntoCollection</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E> c, @@ -434,7 +427,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <div class="block">Parses the contents of the specified reader and loads the results into the specified collection.</div> </td> </tr> -<tr id="i26" class="altColor"> +<tr id="i25" class="rowColor"> <td class="colFirst"><code><K,V> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parseIntoMap-java.lang.Object-java.util.Map-java.lang.reflect.Type-java.lang.reflect.Type-">parseIntoMap</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> m, @@ -443,22 +436,20 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <div class="block">Parses the contents of the specified reader and loads the results into the specified map.</div> </td> </tr> -<tr id="i27" class="rowColor"> -<td class="colFirst"><code><K,V,T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V>><br>T</code></td> -<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parseMap-java.lang.Object-java.lang.Class-java.lang.Class-java.lang.Class-">parseMap</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> mapClass, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><K> keyClass, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><V> valueClass)</code> -<div class="block">Parses input into a map with specified key and value types.</div> +<tr id="i26" class="altColor"> +<td class="colFirst"><code><T> T</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#parseSession-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-">parseSession</a></span>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, + <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type)</code> +<div class="block">Entry point for all parsing calls.</div> </td> </tr> -<tr id="i28" class="altColor"> +<tr id="i27" class="rowColor"> <td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#setClassLoader-java.lang.ClassLoader-">setClassLoader</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> classLoader)</code> <div class="block">Shortcut for calling <code>getContextFactory().setClassLoader(<jf>classLoader</jf>)</code>.</div> </td> </tr> -<tr id="i29" class="rowColor"> +<tr id="i28" class="altColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#setName-org.apache.juneau.ClassMeta-java.lang.Object-java.lang.Object-">setName</a></span>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o, @@ -467,7 +458,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org the specified object if it exists.</div> </td> </tr> -<tr id="i30" class="altColor"> +<tr id="i29" class="rowColor"> <td class="colFirst"><code>protected void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#setParent-org.apache.juneau.ClassMeta-java.lang.Object-java.lang.Object-">setParent</a></span>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o, @@ -476,7 +467,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org the specified object if it exists.</div> </td> </tr> -<tr id="i31" class="rowColor"> +<tr id="i30" class="altColor"> <td class="colFirst"><code><a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/juneau/parser/Parser.html#setProperty-java.lang.String-java.lang.Object-">setProperty</a></span>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code> @@ -525,7 +516,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>doParse</h4> -<pre>protected abstract <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.169">doParse</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, +<pre>protected abstract <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.167">doParse</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> <div class="block">Workhorse method. Subclasses are expected to implement this method.</div> @@ -551,7 +542,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>isReaderParser</h4> -<pre>public abstract boolean <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.176">isReaderParser</a>()</pre> +<pre>public abstract boolean <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.174">isReaderParser</a>()</pre> <div class="block">Returns <jk>true</jk> if this parser subclasses from <a href="../../../../org/apache/juneau/parser/ReaderParser.html" title="class in org.apache.juneau.parser"><code>ReaderParser</code></a>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -559,24 +550,24 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org </dl> </li> </ul> -<a name="parse-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-"> +<a name="parseSession-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.193">parse</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, - <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) - throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> -<div class="block">Parses the content of the reader and creates an object of the specified type.</div> +<h4>parseSession</h4> +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.190">parseSession</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, + <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) + throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> +<div class="block">Entry point for all parsing calls. + <p> + Calls the <a href="../../../../org/apache/juneau/parser/Parser.html#doParse-org.apache.juneau.parser.ParserSession-org.apache.juneau.ClassMeta-"><code>doParse(ParserSession, ClassMeta)</code></a> implementation class and catches/rewraps any exceptions thrown.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> <dd><code>T</code> - The class type of the object to create.</dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The runtime session returned by <a href="../../../../org/apache/juneau/parser/Parser.html#createSession-java.lang.Object-org.apache.juneau.ObjectMap-java.lang.reflect.Method-java.lang.Object-java.util.Locale-java.util.TimeZone-org.apache.juneau.MediaType-"><code>createSession(Object, ObjectMap, Method, Object, Locale, TimeZone, MediaType)</code></a>.</dd> -<dd><code>type</code> - The class type of the object to create. - If <jk>null</jk> or <code>Object.<jk>class</jk></code>, object type is based on what's being parsed. - For example, when parsing JSON text, it may return a <code>String</code>, <code>Number</code>, <code>ObjectMap</code>, etc...</dd> +<dd><code>type</code> - The class type of the object to create.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The parsed object.</dd> <dt><span class="throwsLabel">Throws:</span></dt> @@ -584,18 +575,49 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org </dl> </li> </ul> -<a name="parse-java.lang.Object-org.apache.juneau.ClassMeta-"> +<a name="parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.238">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, - <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.268">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> type, + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a>... args) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> -<div class="block">Parses the content of the reader and creates an object of the specified type. +<div class="block">Parses input into the specified object type. + The type can be a simple type (e.g. beans, strings, numbers) or parameterized type (collections/maps). + + <h5 class='section'>Examples:</h5> + <p class='bcode'> + ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; + + <jc>// Parse into a linked-list of strings.</jc> + List l = p.parse(json, LinkedList.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Parse into a linked-list of beans.</jc> + List l = p.parse(json, LinkedList.<jk>class</jk>, MyBean.<jk>class</jk>); + + <jc>// Parse into a linked-list of linked-lists of strings.</jc> + List l = p.parse(json, LinkedList.<jk>class</jk>, LinkedList.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Parse into a map of string keys/values.</jc> + Map m = p.parse(json, TreeMap.<jk>class</jk>, String.<jk>class</jk>, String.<jk>class</jk>); + + <jc>// Parse into a map containing string keys and values of lists containing beans.</jc> + Map m = p.parse(json, TreeMap.<jk>class</jk>, String.<jk>class</jk>, List.<jk>class</jk>, MyBean.<jk>class</jk>); + </p> <p> - Equivalent to calling <code>parser.parse(in, type, <jk>null</jk>);</code></div> + <code>Collection</code> classes are assumed to be followed by zero or one objects indicating the element type. + <p> + <code>Map</code> classes are assumed to be followed by zero or two meta objects indicating the key and value types. + <p> + The array can be arbitrarily long to indicate arbitrarily complex data structures. + <p> + <h5 class='section'>Notes:</h5> + <ul> + <li>Use the <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-"><code>parse(Object, Class)</code></a> method instead if you don't need a parameterized map/collection. + </ul></div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> <dd><code>T</code> - The class type of the object to create.</dd> @@ -617,9 +639,11 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <li><code><jk>byte</jk>[]</code> <li><a href="http://docs.oracle.com/javase/7/docs/api/java/io/File.html?is-external=true" title="class or interface in java.io"><code>File</code></a> </ul></dd> -<dd><code>type</code> - The class type of the object to create. - If <jk>null</jk> or <code>Object.<jk>class</jk></code>, object type is based on what's being parsed. - For example, when parsing JSON text, it may return a <code>String</code>, <code>Number</code>, <code>ObjectMap</code>, etc...</dd> +<dd><code>type</code> - The object type to create. + <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a></dd> +<dd><code>args</code> - The type arguments of the class if it's a collection or map. + <br>Can be any of the following: <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang"><code>Class</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/ParameterizedType.html?is-external=true" title="class or interface in java.lang.reflect"><code>ParameterizedType</code></a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/GenericArrayType.html?is-external=true" title="class or interface in java.lang.reflect"><code>GenericArrayType</code></a> + <br>Ignored if the main type is not a map or collection.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The parsed object.</dd> <dt><span class="throwsLabel">Throws:</span></dt> @@ -633,79 +657,35 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>parse</h4> -<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.265">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.301">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> type) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> -<div class="block">Parses input into the specified object type. - - <h6 class='topic'>Example:</h6> +<div class="block">Same as <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except optimized for a non-parameterized class. + <p> + This is the preferred parse method for simple types since you don't need to cast the results. + <h5 class='section'>Examples:</h5> <p class='bcode'> ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; + + <jc>// Parse into a string.</jc> + MyBean b = p.parse(json, String.<jk>class</jk>); + + <jc>// Parse into a bean.</jc> MyBean b = p.parse(json, MyBean.<jk>class</jk>); - </p> - <p> - This method equivalent to the following code: - <p class='bcode'> - ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; - ClassMeta<MyBean> cm = p.getBeanContext().getClassMeta(MyBean.<jk>class</jk>); - MyBean b = p.parse(json, cm, <jk>null</jk>); - </p></div> -<dl> -<dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The class type of the object to create.</dd> -<dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>input</code> - The input. See <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-"><code>parse(Object, ClassMeta)</code></a> for supported input types.</dd> -<dd><code>type</code> - The class type of the object to create.</dd> -<dt><span class="returnLabel">Returns:</span></dt> -<dd>The parsed object.</dd> -<dt><span class="throwsLabel">Throws:</span></dt> -<dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If the input contains a syntax error or is malformed, or is not valid for the specified type.</dd> -</dl> -</li> -</ul> -<a name="parseMap-java.lang.Object-java.lang.Class-java.lang.Class-java.lang.Class-"> -<!-- --> -</a> -<ul class="blockList"> -<li class="blockList"> -<h4>parseMap</h4> -<pre>public final <K,V,T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V>> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.304">parseMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> mapClass, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><K> keyClass, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><V> valueClass) - throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> -<div class="block">Parses input into a map with specified key and value types. - <h6 class='topic'>Example:</h6> - <p class='bcode'> - ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; - Map<String,MyBean> m = p.parseMap(json, LinkedHashMap.<jk>class</jk>, String.<jk>class</jk>, MyBean.<jk>class</jk>); - </p> - <p> - A simpler approach is often to just extend the map class you want and just use the normal <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-"><code>parse(Object, Class)</code></a> method: - </p> - <p class='bcode'> - <jk>public static class</jk> MyMap <jk>extends</jk> LinkedHashMap<String,MyBean> {} + <jc>// Parse into a linked-list of objects.</jc> + List l = p.parse(json, LinkedList.<jk>class</jk>); - ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; - Map<String,MyBean> m = p.parse(json, MyMap.<jk>class</jk>); - </p> - <p> - This method equivalent to the following code: - </p> - <p class='bcode'> - ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; - ClassMeta<Map<String,MyBean>> cm = p.getBeanContext().getMapClassMeta(LinkedList.<jk>class</jk>, String.<jk>class</jk>, MyBean.<jk>class</jk>); - Map<String,MyBean> m = p.parse(json, cm, <jk>null</jk>); + <jc>// Parse into a map of object keys/values.</jc> + Map m = p.parse(json, TreeMap.<jk>class</jk>); </p></div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The class type of the object to create.</dd> +<dd><code>T</code> - The class type of the object being created.</dd> <dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>input</code> - The input. See <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-"><code>parse(Object, ClassMeta)</code></a> for supported input types.</dd> -<dd><code>mapClass</code> - The map class type.</dd> -<dd><code>keyClass</code> - The key class type.</dd> -<dd><code>valueClass</code> - The value class type.</dd> +<dd><code>input</code> - The input. + See <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> for details.</dd> +<dd><code>type</code> - The object type to create.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The parsed object.</dd> <dt><span class="throwsLabel">Throws:</span></dt> @@ -713,53 +693,29 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org </dl> </li> </ul> -<a name="parseCollection-java.lang.Object-java.lang.Class-java.lang.Class-"> +<a name="parse-java.lang.Object-org.apache.juneau.ClassMeta-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> -<h4>parseCollection</h4> -<pre>public final <E,T extends <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E>> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.344">parseCollection</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> collectionClass, - <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><E> entryClass) - throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a>, - <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> -<div class="block">Parses input into a collection with a specified element type. - - <h6 class='topic'>Example:</h6> - <p class='bcode'> - ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; - List<MyBean> l = p.parseCollection(json, LinkedList.<jk>class</jk>, MyBean.<jk>class</jk>); - </p> +<h4>parse</h4> +<pre>public final <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.318">parse</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, + <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) + throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> +<div class="block">Same as <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> except the type has already been converted into a <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau"><code>ClassMeta</code></a> object. <p> - A simpler approach is often to just extend the collection class you want and just use the normal <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.Class-"><code>parse(Object, Class)</code></a> method: - </p> - <p class='bcode'> - <jk>public static class</jk> MyBeanCollection <jk>extends</jk> LinkedList<MyBean> {} - - ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; - List<MyBean> l = p.parse(json, MyBeanCollection.<jk>class</jk>); - </p> - <p> - This method equivalent to the following code: - </p> - <p class='bcode'> - ReaderParser p = JsonParser.<jsf>DEFAULT</jsf>; - ClassMeta<List<MyBean>> cm = p.getBeanContext().getCollectionClassMeta(LinkedList.<jk>class</jk>, MyBean.<jk>class</jk>); - List<MyBean> l = p.parse(json, cm, <jk>null</jk>); - </p></div> + This is mostly an internal method used by the framework.</div> <dl> <dt><span class="paramLabel">Type Parameters:</span></dt> -<dd><code>T</code> - The class type of the object to create.</dd> +<dd><code>T</code> - The class type of the object being created.</dd> <dt><span class="paramLabel">Parameters:</span></dt> -<dd><code>input</code> - The input. See <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-org.apache.juneau.ClassMeta-"><code>parse(Object, ClassMeta)</code></a> for supported input types.</dd> -<dd><code>collectionClass</code> - The collection class type.</dd> -<dd><code>entryClass</code> - The class type of entries in the collection.</dd> +<dd><code>input</code> - The input. + See <a href="../../../../org/apache/juneau/parser/Parser.html#parse-java.lang.Object-java.lang.reflect.Type-java.lang.reflect.Type...-"><code>parse(Object, Type, Type...)</code></a> for details.</dd> +<dd><code>type</code> - The object type to create.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The parsed object.</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></code> - If the input contains a syntax error or is malformed, or is not valid for the specified type.</dd> -<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code> - If a problem occurred trying to read from the reader.</dd> </dl> </li> </ul> @@ -769,7 +725,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>createSession</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.369">createSession</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, +<pre>public <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.341">createSession</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="../../../../org/apache/juneau/ObjectMap.html" title="class in org.apache.juneau">ObjectMap</a> op, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> javaMethod, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> outer, @@ -804,7 +760,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>createSession</h4> -<pre>protected final <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.381">createSession</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input)</pre> +<pre>protected final <a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.353">createSession</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input)</pre> <div class="block">Create a basic session object without overriding properties or specifying <code>javaMethod</code>. <p> Equivalent to calling <code>createSession(<jk>null</jk>, <jk>null</jk>)</code>.</div> @@ -822,7 +778,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>parseIntoMap</h4> -<pre>public final <K,V> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.409">parseIntoMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, +<pre>public final <K,V> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.381">parseIntoMap</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> m, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> keyType, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> valueType) @@ -858,7 +814,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>doParseIntoMap</h4> -<pre>protected <K,V> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.434">doParseIntoMap</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, +<pre>protected <K,V> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.406">doParseIntoMap</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><K,V> m, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> keyType, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> valueType) @@ -885,7 +841,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>parseIntoCollection</h4> -<pre>public final <E> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.454">parseIntoCollection</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, +<pre>public final <E> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.426">parseIntoCollection</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E> c, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> elementType) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> @@ -916,7 +872,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>doParseIntoCollection</h4> -<pre>protected <E> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.478">doParseIntoCollection</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, +<pre>protected <E> <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.450">doParseIntoCollection</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util">Collection</a><E> c, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Type.html?is-external=true" title="class or interface in java.lang.reflect">Type</a> elementType) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> @@ -941,7 +897,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>parseArgs</h4> -<pre>public final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.500">parseArgs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, +<pre>public final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.472">parseArgs</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> input, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?>[] argTypes) throws <a href="../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> <div class="block">Parses the specified array input with each entry in the object defined by the <code>argTypes</code> @@ -972,7 +928,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>doParseArgs</h4> -<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.525">doParseArgs</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, +<pre>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>[] <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.497">doParseArgs</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?>[] argTypes) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> <div class="block">Implementation method. @@ -995,7 +951,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>addListener</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.540">addListener</a>(<a href="../../../../org/apache/juneau/parser/ParserListener.html" title="class in org.apache.juneau.parser">ParserListener</a> listener) +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.512">addListener</a>(<a href="../../../../org/apache/juneau/parser/ParserListener.html" title="class in org.apache.juneau.parser">ParserListener</a> listener) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block">Adds a <a href="../../../../org/apache/juneau/parser/ParserListener.html" title="class in org.apache.juneau.parser"><code>ParserListener</code></a> to this parser to listen for parse events.</div> <dl> @@ -1014,7 +970,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>getListeners</h4> -<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/parser/ParserListener.html" title="class in org.apache.juneau.parser">ParserListener</a>> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.551">getListeners</a>()</pre> +<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/apache/juneau/parser/ParserListener.html" title="class in org.apache.juneau.parser">ParserListener</a>> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.523">getListeners</a>()</pre> <div class="block">Returns the current parser listeners associated with this parser.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -1028,7 +984,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>convertAttrToType</h4> -<pre>protected <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.567">convertAttrToType</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, +<pre>protected <T> T <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.539">convertAttrToType</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> outer, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> s, <a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><T> type) @@ -1055,7 +1011,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>setParent</h4> -<pre>protected void <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.608">setParent</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, +<pre>protected void <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.580">setParent</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> parent) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> @@ -1077,7 +1033,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>setName</h4> -<pre>protected void <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.623">setName</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, +<pre>protected void <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.595">setName</a>(<a href="../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> cm, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> name) throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre> @@ -1099,7 +1055,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>onUnknownProperty</h4> -<pre>protected <T> void <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.643">onUnknownProperty</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, +<pre>protected <T> void <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.615">onUnknownProperty</a>(<a href="../../../../org/apache/juneau/parser/ParserSession.html" title="class in org.apache.juneau.parser">ParserSession</a> session, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName, <a href="../../../../org/apache/juneau/BeanMap.html" title="class in org.apache.juneau">BeanMap</a><T> beanMap, int line, @@ -1127,7 +1083,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>getMediaTypes</h4> -<pre>public <a href="../../../../org/apache/juneau/MediaType.html" title="class in org.apache.juneau">MediaType</a>[] <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.661">getMediaTypes</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/MediaType.html" title="class in org.apache.juneau">MediaType</a>[] <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.633">getMediaTypes</a>()</pre> <div class="block">Returns the media types handled based on the value of the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>Consumes</code></a> annotation on the parser class. <p> This method can be overridden by subclasses to determine the media types programatically.</div> @@ -1143,7 +1099,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>getPrimaryMediaType</h4> -<pre>public <a href="../../../../org/apache/juneau/MediaType.html" title="class in org.apache.juneau">MediaType</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.670">getPrimaryMediaType</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/MediaType.html" title="class in org.apache.juneau">MediaType</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.642">getPrimaryMediaType</a>()</pre> <div class="block">Returns the first media type specified on this parser via the <a href="../../../../org/apache/juneau/annotation/Consumes.html" title="annotation in org.apache.juneau.annotation"><code>Consumes</code></a> annotation.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> @@ -1157,7 +1113,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>setProperty</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.679">setProperty</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.651">setProperty</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> property, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreApi.html#setProperty-java.lang.String-java.lang.Object-">CoreApi</a></code></span></div> @@ -1183,7 +1139,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>addNotBeanClasses</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.685">addNotBeanClasses</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.657">addNotBeanClasses</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreApi.html#addNotBeanClasses-java.lang.Class...-">CoreApi</a></code></span></div> <div class="block">Shortcut for calling <code>getContextFactory().addNotBeanClasses(<jf>classes</jf>)</code>.</div> @@ -1209,7 +1165,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>addBeanFilters</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.691">addBeanFilters</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.663">addBeanFilters</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreApi.html#addBeanFilters-java.lang.Class...-">CoreApi</a></code></span></div> <div class="block">Shortcut for calling <code>getContextFactory().addBeanFilters(<jf>classes</jf>)</code>.</div> @@ -1234,7 +1190,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>addPojoSwaps</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.697">addPojoSwaps</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.669">addPojoSwaps</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreApi.html#addPojoSwaps-java.lang.Class...-">CoreApi</a></code></span></div> <div class="block">Shortcut for calling <code>getContextFactory().addPojoSwaps(<jf>classes</jf>)</code>.</div> @@ -1259,7 +1215,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>addToDictionary</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.703">addToDictionary</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.675">addToDictionary</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?>... classes) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreApi.html#addToDictionary-java.lang.Class...-">CoreApi</a></code></span></div> <div class="block">Shortcut for calling <code>getContextFactory().addToDictionary(<jf>classes</jf>)</code>.</div> @@ -1284,7 +1240,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>addImplClass</h4> -<pre>public <T> <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.709">addImplClass</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass, +<pre>public <T> <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.681">addImplClass</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><T> interfaceClass, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><? extends T> implClass) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreApi.html#addImplClass-java.lang.Class-java.lang.Class-">CoreApi</a></code></span></div> @@ -1313,7 +1269,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>setClassLoader</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.715">setClassLoader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> classLoader) +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.687">setClassLoader</a>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/ClassLoader.html?is-external=true" title="class or interface in java.lang">ClassLoader</a> classLoader) throws <a href="../../../../org/apache/juneau/LockedException.html" title="class in org.apache.juneau">LockedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/CoreApi.html#setClassLoader-java.lang.ClassLoader-">CoreApi</a></code></span></div> <div class="block">Shortcut for calling <code>getContextFactory().setClassLoader(<jf>classLoader</jf>)</code>.</div> @@ -1337,7 +1293,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockList"> <li class="blockList"> <h4>lock</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.721">lock</a>()</pre> +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.693">lock</a>()</pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/Lockable.html#lock--">Lockable</a></code></span></div> <div class="block">Locks this object so that settings on it cannot be modified.</div> <dl> @@ -1354,7 +1310,7 @@ extends <a href="../../../../org/apache/juneau/CoreApi.html" title="class in org <ul class="blockListLast"> <li class="blockList"> <h4>clone</h4> -<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.727">clone</a>() +<pre>public <a href="../../../../org/apache/juneau/parser/Parser.html" title="class in org.apache.juneau.parser">Parser</a> <a href="../../../../src-html/org/apache/juneau/parser/Parser.html#line.699">clone</a>() throws <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/CloneNotSupportedException.html?is-external=true" title="class or interface in java.lang">CloneNotSupportedException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../org/apache/juneau/Lockable.html#clone--">Lockable</a></code></span></div> <div class="block">Creates an unlocked clone of this object.</div> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/afa6a1d0/content/site/apidocs/org/apache/juneau/parser/ParserContext.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/parser/ParserContext.html b/content/site/apidocs/org/apache/juneau/parser/ParserContext.html index 2197209..9bd70e1 100644 --- a/content/site/apidocs/org/apache/juneau/parser/ParserContext.html +++ b/content/site/apidocs/org/apache/juneau/parser/ParserContext.html @@ -253,7 +253,7 @@ extends <a href="../../../../org/apache/juneau/BeanContext.html" title="class in <!-- --> </a> <h3>Methods inherited from class org.apache.juneau.<a href="../../../../org/apache/juneau/BeanContext.html" title="class in org.apache.juneau">BeanContext</a></h3> -<code><a href="../../../../org/apache/juneau/BeanContext.html#Z:Z_class--">_class</a>, <a href="../../../../org/apache/juneau/BeanContext.html#createSession--">createSession</a>, <a href="../../../../org/apache/juneau/BeanContext.html#createSession-org.apache.juneau.ObjectMap-java.util.Locale-java.util.TimeZone-org.apache.juneau.MediaType-">createSession</a>, <a href="../../../../org/apache/juneau/BeanContext.html#dumpCacheStats--">dumpCacheStats</a>, <a href="../../../../org/apache/juneau/BeanContext.html#equals-java.lang.Object-">equals</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getBeanMeta-java.lang.Class-">getBeanMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getBeanRegistry--">getBeanRegistry</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getBeanTypePropertyName--">getBeanTypePropertyName</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMeta-org.apache.juneau.annotation.BeanProperty-java.lang.reflect.Type-ja va.util.Map-">getClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMeta-java.lang.Class-">getClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMeta-java.lang.Object...-">getClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMeta-java.lang.Object-">getClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMeta-java.lang.reflect.Type-">getClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMetaForObject-T-">getClassMetaForObject</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getImplClassConstructor-java.lang.Class-org.apache.juneau.Visibility-">getImplClassConstructor</a>, <a href="../../../../org/apache/juneau/BeanContext.html#hashCode--">hashCode</a>, <a href="../../../../org/apache/juneau/BeanContext.html#hasSameCache-org.apache.juneau.BeanContext-">hasSameCache</a>, <a href="../../../../org/apache/juneau/BeanContext.html#isNotABean- java.lang.Class-">isNotABean</a>, <a href="../../../../org/apache/juneau/BeanContext.html#normalizeClassMeta-org.apache.juneau.ClassMeta-">normalizeClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#object--">object</a>, <a href="../../../../org/apache/juneau/BeanContext.html#string--">string</a></code></li> +<code><a href="../../../../org/apache/juneau/BeanContext.html#Z:Z_class--">_class</a>, <a href="../../../../org/apache/juneau/BeanContext.html#createSession--">createSession</a>, <a href="../../../../org/apache/juneau/BeanContext.html#createSession-org.apache.juneau.ObjectMap-java.util.Locale-java.util.TimeZone-org.apache.juneau.MediaType-">createSession</a>, <a href="../../../../org/apache/juneau/BeanContext.html#dumpCacheStats--">dumpCacheStats</a>, <a href="../../../../org/apache/juneau/BeanContext.html#equals-java.lang.Object-">equals</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getBeanMeta-java.lang.Class-">getBeanMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getBeanRegistry--">getBeanRegistry</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getBeanTypePropertyName--">getBeanTypePropertyName</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMeta-java.lang.Class-">getClassMeta</a>, <a href="../../../../org/apache /juneau/BeanContext.html#getClassMeta-java.lang.reflect.Type-java.lang.reflect.Type...-">getClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getClassMetaForObject-T-">getClassMetaForObject</a>, <a href="../../../../org/apache/juneau/BeanContext.html#getImplClassConstructor-java.lang.Class-org.apache.juneau.Visibility-">getImplClassConstructor</a>, <a href="../../../../org/apache/juneau/BeanContext.html#hashCode--">hashCode</a>, <a href="../../../../org/apache/juneau/BeanContext.html#hasSameCache-org.apache.juneau.BeanContext-">hasSameCache</a>, <a href="../../../../org/apache/juneau/BeanContext.html#isNotABean-java.lang.Class-">isNotABean</a>, <a href="../../../../org/apache/juneau/BeanContext.html#object--">object</a>, <a href="../../../../org/apache/juneau/BeanContext.html#resolveClassMeta-org.apache.juneau.annotation.BeanProperty-java.lang.reflect.Type-java.util.Map-">resolveClassMeta</a>, <a href="../../../../org/apache/juneau/BeanContext.html#string--">str ing</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.org.apache.juneau.Context">
