http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.BooleanOrSchemaSwap.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.BooleanOrSchemaSwap.html b/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.BooleanOrSchemaSwap.html index a047ccf..1916c24 100644 --- a/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.BooleanOrSchemaSwap.html +++ b/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.BooleanOrSchemaSwap.html @@ -117,13 +117,18 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public static class <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.html#line.1133">Schema.BooleanOrSchemaSwap</a> +<pre>public static class <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.html#line.1185">Schema.BooleanOrSchemaSwap</a> extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></pre> <div class="block">Used during parsing to convert the <property>additionalProperties</property> property to the correct class type. + <ul class='spaced-list'> - <li>If parsing a JSON-object, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/Schema.html" title="class in org.apache.juneau.dto.jsonschema"><code>Schema</code></a>. - <li>If parsing a JSON-boolean, converts to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>. + <li> + If parsing a JSON-object, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/Schema.html" title="class in org.apache.juneau.dto.jsonschema"><code>Schema</code></a>. + <li> + If parsing a JSON-boolean, converts to a <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a>. </ul> + + <p> Serialization method is a no-op.</div> </li> </ul> @@ -225,7 +230,7 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockListLast"> <li class="blockList"> <h4>BooleanOrSchemaSwap</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.BooleanOrSchemaSwap.html#line.1133">BooleanOrSchemaSwap</a>()</pre> +<pre>public <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.BooleanOrSchemaSwap.html#line.1185">BooleanOrSchemaSwap</a>()</pre> </li> </ul> </li> @@ -242,28 +247,36 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockList"> <li class="blockList"> <h4>swap</h4> -<pre>public <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/dto/jsonschema/Schema.BooleanOrSchemaSwap.html#line.1136">swap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, +<pre>public <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/dto/jsonschema/Schema.BooleanOrSchemaSwap.html#line.1188">swap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</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> o) throws <a href="../../../../../org/apache/juneau/serializer/SerializeException.html" title="class in org.apache.juneau.serializer">SerializeException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#swap-org.apache.juneau.BeanSession-T-">PojoSwap</a></code></span></div> <div class="block">If this transform is to be used to serialize non-serializable POJOs, it must implement this method. + <p> The object must be converted into one of the following serializable types: <ul class='spaced-list'> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><code>Number</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> containing anything on this list. - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> containing anything on this list. - <li>A java bean with properties of anything on this list. - <li>An array of anything on this list. + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><code>Number</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> containing anything on this list. + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> containing anything on this list. + <li> + A java bean with properties of anything on this list. + <li> + An array of anything on this list. </ul></div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#swap-org.apache.juneau.BeanSession-T-">swap</a></code> in class <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The bean session to use to get the class meta. - This is always going to be the same bean context that created this swap.</dd> + This is always going to be the same bean context that created this swap.</dd> <dd><code>o</code> - The object to be transformed.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The transformed object.</dd> @@ -278,7 +291,7 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockListLast"> <li class="blockList"> <h4>unswap</h4> -<pre>public <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/dto/jsonschema/Schema.BooleanOrSchemaSwap.html#line.1141">unswap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, +<pre>public <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/dto/jsonschema/Schema.BooleanOrSchemaSwap.html#line.1193">unswap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</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> o, <a href="../../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> hint) throws <a href="../../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> @@ -289,11 +302,12 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <dd><code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#unswap-org.apache.juneau.BeanSession-S-org.apache.juneau.ClassMeta-">unswap</a></code> in class <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The bean session to use to get the class meta. - This is always going to be the same bean context that created this swap.</dd> + This is always going to be the same bean context that created this swap.</dd> <dd><code>o</code> - The transformed object.</dd> -<dd><code>hint</code> - If possible, the parser will try to tell you the object type being created. For example, - on a serialized date, this may tell you that the object being created must be of type <code>GregorianCalendar</code>. - <br>This may be <jk>null</jk> if the parser cannot make this determination.</dd> +<dd><code>hint</code> - If possible, the parser will try to tell you the object type being created. + For example, on a serialized date, this may tell you that the object being created must be of type + <code>GregorianCalendar</code>. + <br>This may be <jk>null</jk> if the parser cannot make this determination.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The narrowed object.</dd> <dt><span class="throwsLabel">Throws:</span></dt>
http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html b/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html index 71eb934..f43c40a 100644 --- a/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html +++ b/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html @@ -117,13 +117,18 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public static class <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.html#line.298">Schema.JsonTypeOrJsonTypeArraySwap</a> +<pre>public static class <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.html#line.314">Schema.JsonTypeOrJsonTypeArraySwap</a> extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></pre> <div class="block">Used during parsing to convert the <property>type</property> property to the correct class type. + <ul class='spaced-list'> - <li>If parsing a JSON-array, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/JsonTypeArray.html" title="class in org.apache.juneau.dto.jsonschema"><code>JsonTypeArray</code></a>. - <li>If parsing a JSON-object, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/JsonType.html" title="enum in org.apache.juneau.dto.jsonschema"><code>JsonType</code></a>. + <li> + If parsing a JSON-array, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/JsonTypeArray.html" title="class in org.apache.juneau.dto.jsonschema"><code>JsonTypeArray</code></a>. + <li> + If parsing a JSON-object, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/JsonType.html" title="enum in org.apache.juneau.dto.jsonschema"><code>JsonType</code></a>. </ul> + + <p> Serialization method is a no-op.</div> </li> </ul> @@ -225,7 +230,7 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockListLast"> <li class="blockList"> <h4>JsonTypeOrJsonTypeArraySwap</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html#line.298">JsonTypeOrJsonTypeArraySwap</a>()</pre> +<pre>public <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html#line.314">JsonTypeOrJsonTypeArraySwap</a>()</pre> </li> </ul> </li> @@ -242,28 +247,36 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockList"> <li class="blockList"> <h4>swap</h4> -<pre>public <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/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html#line.301">swap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, +<pre>public <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/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html#line.317">swap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</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> o) throws <a href="../../../../../org/apache/juneau/serializer/SerializeException.html" title="class in org.apache.juneau.serializer">SerializeException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#swap-org.apache.juneau.BeanSession-T-">PojoSwap</a></code></span></div> <div class="block">If this transform is to be used to serialize non-serializable POJOs, it must implement this method. + <p> The object must be converted into one of the following serializable types: <ul class='spaced-list'> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><code>Number</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> containing anything on this list. - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> containing anything on this list. - <li>A java bean with properties of anything on this list. - <li>An array of anything on this list. + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><code>Number</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> containing anything on this list. + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> containing anything on this list. + <li> + A java bean with properties of anything on this list. + <li> + An array of anything on this list. </ul></div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#swap-org.apache.juneau.BeanSession-T-">swap</a></code> in class <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The bean session to use to get the class meta. - This is always going to be the same bean context that created this swap.</dd> + This is always going to be the same bean context that created this swap.</dd> <dd><code>o</code> - The object to be transformed.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The transformed object.</dd> @@ -278,7 +291,7 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockListLast"> <li class="blockList"> <h4>unswap</h4> -<pre>public <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/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html#line.306">unswap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, +<pre>public <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/dto/jsonschema/Schema.JsonTypeOrJsonTypeArraySwap.html#line.322">unswap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</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> o, <a href="../../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> hint) throws <a href="../../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> @@ -289,11 +302,12 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <dd><code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#unswap-org.apache.juneau.BeanSession-S-org.apache.juneau.ClassMeta-">unswap</a></code> in class <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The bean session to use to get the class meta. - This is always going to be the same bean context that created this swap.</dd> + This is always going to be the same bean context that created this swap.</dd> <dd><code>o</code> - The transformed object.</dd> -<dd><code>hint</code> - If possible, the parser will try to tell you the object type being created. For example, - on a serialized date, this may tell you that the object being created must be of type <code>GregorianCalendar</code>. - <br>This may be <jk>null</jk> if the parser cannot make this determination.</dd> +<dd><code>hint</code> - If possible, the parser will try to tell you the object type being created. + For example, on a serialized date, this may tell you that the object being created must be of type + <code>GregorianCalendar</code>. + <br>This may be <jk>null</jk> if the parser cannot make this determination.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The narrowed object.</dd> <dt><span class="throwsLabel">Throws:</span></dt> http://git-wip-us.apache.org/repos/asf/incubator-juneau-website/blob/1b5bde65/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html ---------------------------------------------------------------------- diff --git a/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html b/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html index e4a80c6..a1a856d 100644 --- a/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html +++ b/content/site/apidocs/org/apache/juneau/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html @@ -117,13 +117,18 @@ var activeTableTab = "activeTableTab"; </dl> <hr> <br> -<pre>public static class <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.html#line.568">Schema.SchemaOrSchemaArraySwap</a> +<pre>public static class <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.html#line.599">Schema.SchemaOrSchemaArraySwap</a> extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></pre> <div class="block">Used during parsing to convert the <property>items</property> property to the correct class type. + <ul class='spaced-list'> - <li>If parsing a JSON-array, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/SchemaArray.html" title="class in org.apache.juneau.dto.jsonschema"><code>SchemaArray</code></a>. - <li>If parsing a JSON-object, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/Schema.html" title="class in org.apache.juneau.dto.jsonschema"><code>Schema</code></a>. + <li> + If parsing a JSON-array, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/SchemaArray.html" title="class in org.apache.juneau.dto.jsonschema"><code>SchemaArray</code></a>. + <li> + If parsing a JSON-object, converts to a <a href="../../../../../org/apache/juneau/dto/jsonschema/Schema.html" title="class in org.apache.juneau.dto.jsonschema"><code>Schema</code></a>. </ul> + + <p> Serialization method is a no-op.</div> </li> </ul> @@ -225,7 +230,7 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockListLast"> <li class="blockList"> <h4>SchemaOrSchemaArraySwap</h4> -<pre>public <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html#line.568">SchemaOrSchemaArraySwap</a>()</pre> +<pre>public <a href="../../../../../src-html/org/apache/juneau/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html#line.599">SchemaOrSchemaArraySwap</a>()</pre> </li> </ul> </li> @@ -242,28 +247,36 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockList"> <li class="blockList"> <h4>swap</h4> -<pre>public <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/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html#line.571">swap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, +<pre>public <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/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html#line.602">swap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</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> o) throws <a href="../../../../../org/apache/juneau/serializer/SerializeException.html" title="class in org.apache.juneau.serializer">SerializeException</a></pre> <div class="block"><span class="descfrmTypeLabel">Description copied from class: <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#swap-org.apache.juneau.BeanSession-T-">PojoSwap</a></code></span></div> <div class="block">If this transform is to be used to serialize non-serializable POJOs, it must implement this method. + <p> The object must be converted into one of the following serializable types: <ul class='spaced-list'> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><code>Number</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a> - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> containing anything on this list. - <li><a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> containing anything on this list. - <li>A java bean with properties of anything on this list. - <li>An array of anything on this list. + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang"><code>String</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang"><code>Number</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true" title="class or interface in java.lang"><code>Boolean</code></a> + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a> containing anything on this list. + <li> + <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> containing anything on this list. + <li> + A java bean with properties of anything on this list. + <li> + An array of anything on this list. </ul></div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#swap-org.apache.juneau.BeanSession-T-">swap</a></code> in class <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The bean session to use to get the class meta. - This is always going to be the same bean context that created this swap.</dd> + This is always going to be the same bean context that created this swap.</dd> <dd><code>o</code> - The object to be transformed.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The transformed object.</dd> @@ -278,7 +291,7 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <ul class="blockListLast"> <li class="blockList"> <h4>unswap</h4> -<pre>public <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/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html#line.576">unswap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</a> session, +<pre>public <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/dto/jsonschema/Schema.SchemaOrSchemaArraySwap.html#line.607">unswap</a>(<a href="../../../../../org/apache/juneau/BeanSession.html" title="class in org.apache.juneau">BeanSession</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> o, <a href="../../../../../org/apache/juneau/ClassMeta.html" title="class in org.apache.juneau">ClassMeta</a><?> hint) throws <a href="../../../../../org/apache/juneau/parser/ParseException.html" title="class in org.apache.juneau.parser">ParseException</a></pre> @@ -289,11 +302,12 @@ extends <a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title <dd><code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html#unswap-org.apache.juneau.BeanSession-S-org.apache.juneau.ClassMeta-">unswap</a></code> in class <code><a href="../../../../../org/apache/juneau/transform/PojoSwap.html" title="class in org.apache.juneau.transform">PojoSwap</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>,<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>></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>session</code> - The bean session to use to get the class meta. - This is always going to be the same bean context that created this swap.</dd> + This is always going to be the same bean context that created this swap.</dd> <dd><code>o</code> - The transformed object.</dd> -<dd><code>hint</code> - If possible, the parser will try to tell you the object type being created. For example, - on a serialized date, this may tell you that the object being created must be of type <code>GregorianCalendar</code>. - <br>This may be <jk>null</jk> if the parser cannot make this determination.</dd> +<dd><code>hint</code> - If possible, the parser will try to tell you the object type being created. + For example, on a serialized date, this may tell you that the object being created must be of type + <code>GregorianCalendar</code>. + <br>This may be <jk>null</jk> if the parser cannot make this determination.</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>The narrowed object.</dd> <dt><span class="throwsLabel">Throws:</span></dt>
