http://git-wip-us.apache.org/repos/asf/sling-site/blob/f2bd90f5/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-tree.html ---------------------------------------------------------------------- diff --git a/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-tree.html b/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-tree.html deleted file mode 100644 index 2077b50..0000000 --- a/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-tree.html +++ /dev/null @@ -1,169 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:07 CEST 2009 --> -<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<TITLE> -org.apache.sling.api.wrappers Class Hierarchy (Apache Sling Aggregate 5-incubator API) -</TITLE> - -<META NAME="date" CONTENT="2009-05-11"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="org.apache.sling.api.wrappers Class Hierarchy (Apache Sling Aggregate 5-incubator API)"; - } -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> -<HR> - - -<!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../org/apache/sling/api/servlets/package-tree.html"><B>PREV</B></A> - <A HREF="../../../../../org/apache/sling/commons/json/package-tree.html"><B>NEXT</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../index.html?org/apache/sling/api/wrappers/package-tree.html" target="_top"><B>FRAMES</B></A> - <A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> -<!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<CENTER> -<H2> -Hierarchy For Package org.apache.sling.api.wrappers -</H2> -</CENTER> -<DL> -<DT><B>Package Hierarchies:</B><DD><A HREF="../../../../../overview-tree.html">All Packages</A></DL> -<HR> -<H2> -Class Hierarchy -</H2> -<UL> -<LI TYPE="circle">java.lang.Object<UL> -<LI TYPE="circle">javax.servlet.ServletRequestWrapper (implements javax.servlet.ServletRequest) -<UL> -<LI TYPE="circle">javax.servlet.http.HttpServletRequestWrapper (implements javax.servlet.http.HttpServletRequest) -<UL> -<LI TYPE="circle">org.apache.sling.api.wrappers.<A HREF="../../../../../org/apache/sling/api/wrappers/SlingHttpServletRequestWrapper.html" title="class in org.apache.sling.api.wrappers"><B>SlingHttpServletRequestWrapper</B></A> (implements org.apache.sling.api.<A HREF="../../../../../org/apache/sling/api/SlingHttpServletRequest.html" title="interface in org.apache.sling.api">SlingHttpServletRequest</A>) -</UL> -</UL> -<LI TYPE="circle">javax.servlet.ServletResponseWrapper (implements javax.servlet.ServletResponse) -<UL> -<LI TYPE="circle">javax.servlet.http.HttpServletResponseWrapper (implements javax.servlet.http.HttpServletResponse) -<UL> -<LI TYPE="circle">org.apache.sling.api.wrappers.<A HREF="../../../../../org/apache/sling/api/wrappers/SlingHttpServletResponseWrapper.html" title="class in org.apache.sling.api.wrappers"><B>SlingHttpServletResponseWrapper</B></A> (implements org.apache.sling.api.<A HREF="../../../../../org/apache/sling/api/SlingHttpServletResponse.html" title="interface in org.apache.sling.api">SlingHttpServletResponse</A>) -</UL> -</UL> -<LI TYPE="circle">org.apache.sling.api.wrappers.<A HREF="../../../../../org/apache/sling/api/wrappers/SlingRequestPaths.html" title="class in org.apache.sling.api.wrappers"><B>SlingRequestPaths</B></A><LI TYPE="circle">org.apache.sling.api.wrappers.<A HREF="../../../../../org/apache/sling/api/wrappers/ValueMapDecorator.html" title="class in org.apache.sling.api.wrappers"><B>ValueMapDecorator</B></A> (implements org.apache.sling.api.resource.<A HREF="../../../../../org/apache/sling/api/resource/ValueMap.html" title="interface in org.apache.sling.api.resource">ValueMap</A>) -</UL> -</UL> -<HR> - - -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_bottom_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Use</FONT> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../org/apache/sling/api/servlets/package-tree.html"><B>PREV</B></A> - <A HREF="../../../../../org/apache/sling/commons/json/package-tree.html"><B>NEXT</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../index.html?org/apache/sling/api/wrappers/package-tree.html" target="_top"><B>FRAMES</B></A> - <A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> -<!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2007-2009. All Rights Reserved. -</BODY> -</HTML>
http://git-wip-us.apache.org/repos/asf/sling-site/blob/f2bd90f5/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-use.html ---------------------------------------------------------------------- diff --git a/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-use.html b/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-use.html deleted file mode 100644 index 1ca362a..0000000 --- a/assets/apidocs/sling5/org/apache/sling/api/wrappers/package-use.html +++ /dev/null @@ -1,145 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:11 CEST 2009 --> -<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<TITLE> -Uses of Package org.apache.sling.api.wrappers (Apache Sling Aggregate 5-incubator API) -</TITLE> - -<META NAME="date" CONTENT="2009-05-11"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="Uses of Package org.apache.sling.api.wrappers (Apache Sling Aggregate 5-incubator API)"; - } -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> -<HR> - - -<!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - PREV - NEXT</FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../index.html?org/apache/sling/api/wrappers/package-use.html" target="_top"><B>FRAMES</B></A> - <A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> -<!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<CENTER> -<H2> -<B>Uses of Package<br>org.apache.sling.api.wrappers</B></H2> -</CENTER> -No usage of org.apache.sling.api.wrappers -<P> -<HR> - - -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_bottom_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <FONT CLASS="NavBarFont1">Class</FONT> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - PREV - NEXT</FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../index.html?org/apache/sling/api/wrappers/package-use.html" target="_top"><B>FRAMES</B></A> - <A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> -<!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2007-2009. All Rights Reserved. -</BODY> -</HTML> http://git-wip-us.apache.org/repos/asf/sling-site/blob/f2bd90f5/assets/apidocs/sling5/org/apache/sling/commons/json/JSONArray.html ---------------------------------------------------------------------- diff --git a/assets/apidocs/sling5/org/apache/sling/commons/json/JSONArray.html b/assets/apidocs/sling5/org/apache/sling/commons/json/JSONArray.html deleted file mode 100644 index 71c1b85..0000000 --- a/assets/apidocs/sling5/org/apache/sling/commons/json/JSONArray.html +++ /dev/null @@ -1,1440 +0,0 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -<!--NewPage--> -<HTML> -<HEAD> -<!-- Generated by javadoc (build 1.6.0_10) on Mon May 11 08:55:05 CEST 2009 --> -<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> -<TITLE> -JSONArray (Apache Sling Aggregate 5-incubator API) -</TITLE> - -<META NAME="date" CONTENT="2009-05-11"> - -<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> - -<SCRIPT type="text/javascript"> -function windowTitle() -{ - if (location.href.indexOf('is-external=true') == -1) { - parent.document.title="JSONArray (Apache Sling Aggregate 5-incubator API)"; - } -} -</SCRIPT> -<NOSCRIPT> -</NOSCRIPT> - -</HEAD> - -<BODY BGCOLOR="white" onload="windowTitle();"> -<HR> - - -<!-- ========= START OF TOP NAVBAR ======= --> -<A NAME="navbar_top"><!-- --></A> -<A HREF="#skip-navbar_top" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_top_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JSONArray.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - PREV CLASS - <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../index.html?org/apache/sling/commons/json/JSONArray.html" target="_top"><B>FRAMES</B></A> - <A HREF="JSONArray.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_top"></A> -<!-- ========= END OF TOP NAVBAR ========= --> - -<HR> -<!-- ======== START OF CLASS DATA ======== --> -<H2> -<FONT SIZE="-1"> -org.apache.sling.commons.json</FONT> -<BR> -Class JSONArray</H2> -<PRE> -java.lang.Object - <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.sling.commons.json.JSONArray</B> -</PRE> -<HR> -<DL> -<DT><PRE>public class <B>JSONArray</B><DT>extends java.lang.Object</DL> -</PRE> - -<P> -A JSONArray is an ordered sequence of values. Its external text form is a - string wrapped in square brackets with commas separating the values. The - internal form is an object having <code>get</code> and <code>opt</code> - methods for accessing the values by index, and <code>put</code> methods for - adding or replacing values. The values can be any of these types: - <code>Boolean</code>, <code>JSONArray</code>, <code>JSONObject</code>, - <code>Number</code>, <code>String</code>, or the - <code>JSONObject.NULL object</code>. - <p> - The constructor can convert a JSON text into a Java object. The - <code>toString</code> method converts to JSON text. - <p> - A <code>get</code> method returns a value if one can be found, and throws an - exception if one cannot be found. An <code>opt</code> method returns a - default value instead of throwing an exception, and so is useful for - obtaining optional values. - <p> - The generic <code>get()</code> and <code>opt()</code> methods return an - object which you can cast or query for type. There are also typed - <code>get</code> and <code>opt</code> methods that do type checking and type - coersion for you. - <p> - The texts produced by the <code>toString</code> methods strictly conform to - JSON syntax rules. The constructors are more forgiving in the texts they will - accept: - <ul> - <li>An extra <code>,</code> <small>(comma)</small> may appear just - before the closing bracket.</li> - <li>The <code>null</code> value will be inserted when there - is <code>,</code> <small>(comma)</small> elision.</li> - <li>Strings may be quoted with <code>'</code> <small>(single - quote)</small>.</li> - <li>Strings do not need to be quoted at all if they do not begin with a quote - or single quote, and if they do not contain leading or trailing spaces, - and if they do not contain any of these characters: - <code>{ } [ ] / \ : , = ; #</code> and if they do not look like numbers - and if they are not the reserved words <code>true</code>, - <code>false</code>, or <code>null</code>.</li> - <li>Values can be separated by <code>;</code> <small>(semicolon)</small> as - well as by <code>,</code> <small>(comma)</small>.</li> - <li>Numbers may have the <code>0-</code> <small>(octal)</small> or - <code>0x-</code> <small>(hex)</small> prefix.</li> - <li>Comments written in the slashshlash, slashstar, and hash conventions - will be ignored.</li> - </ul> -<P> - -<P> -<DL> -<DT><B>Version:</B></DT> - <DD>2</DD> -<DT><B>Author:</B></DT> - <DD>JSON.org</DD> -</DL> -<HR> - -<P> - -<!-- ======== CONSTRUCTOR SUMMARY ======== --> - -<A NAME="constructor_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Constructor Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#JSONArray()">JSONArray</A></B>()</CODE> - -<BR> - Construct an empty JSONArray.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#JSONArray(java.util.Collection)">JSONArray</A></B>(java.util.Collection<?> collection)</CODE> - -<BR> - Construct a JSONArray from a Collection.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#JSONArray(org.apache.sling.commons.json.JSONTokener)">JSONArray</A></B>(<A HREF="../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x)</CODE> - -<BR> - Construct a JSONArray from a JSONTokener.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#JSONArray(java.lang.String)">JSONArray</A></B>(java.lang.String string)</CODE> - -<BR> - Construct a JSONArray from a source sJSON text.</TD> -</TR> -</TABLE> - -<!-- ========== METHOD SUMMARY =========== --> - -<A NAME="method_summary"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> -<B>Method Summary</B></FONT></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.Object</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#get(int)">get</A></B>(int index)</CODE> - -<BR> - Get the object value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> boolean</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#getBoolean(int)">getBoolean</A></B>(int index)</CODE> - -<BR> - Get the boolean value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> double</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#getDouble(int)">getDouble</A></B>(int index)</CODE> - -<BR> - Get the double value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#getInt(int)">getInt</A></B>(int index)</CODE> - -<BR> - Get the int value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#getJSONArray(int)">getJSONArray</A></B>(int index)</CODE> - -<BR> - Get the JSONArray associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#getJSONObject(int)">getJSONObject</A></B>(int index)</CODE> - -<BR> - Get the JSONObject associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> long</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#getLong(int)">getLong</A></B>(int index)</CODE> - -<BR> - Get the long value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.String</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#getString(int)">getString</A></B>(int index)</CODE> - -<BR> - Get the string associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> boolean</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#isNull(int)">isNull</A></B>(int index)</CODE> - -<BR> - Determine if the value is null.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.String</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#join(java.lang.String)">join</A></B>(java.lang.String separator)</CODE> - -<BR> - Make a string from the contents of this JSONArray.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#length()">length</A></B>()</CODE> - -<BR> - Get the number of elements in the JSONArray, included nulls.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.Object</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#opt(int)">opt</A></B>(int index)</CODE> - -<BR> - Get the optional object value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> boolean</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optBoolean(int)">optBoolean</A></B>(int index)</CODE> - -<BR> - Get the optional boolean value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> boolean</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optBoolean(int, boolean)">optBoolean</A></B>(int index, - boolean defaultValue)</CODE> - -<BR> - Get the optional boolean value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> double</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optDouble(int)">optDouble</A></B>(int index)</CODE> - -<BR> - Get the optional double value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> double</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optDouble(int, double)">optDouble</A></B>(int index, - double defaultValue)</CODE> - -<BR> - Get the optional double value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optInt(int)">optInt</A></B>(int index)</CODE> - -<BR> - Get the optional int value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> int</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optInt(int, int)">optInt</A></B>(int index, - int defaultValue)</CODE> - -<BR> - Get the optional int value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optJSONArray(int)">optJSONArray</A></B>(int index)</CODE> - -<BR> - Get the optional JSONArray associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optJSONObject(int)">optJSONObject</A></B>(int index)</CODE> - -<BR> - Get the optional JSONObject associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> long</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optLong(int)">optLong</A></B>(int index)</CODE> - -<BR> - Get the optional long value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> long</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optLong(int, long)">optLong</A></B>(int index, - long defaultValue)</CODE> - -<BR> - Get the optional long value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.String</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optString(int)">optString</A></B>(int index)</CODE> - -<BR> - Get the optional string value associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.String</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#optString(int, java.lang.String)">optString</A></B>(int index, - java.lang.String defaultValue)</CODE> - -<BR> - Get the optional string associated with an index.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(boolean)">put</A></B>(boolean value)</CODE> - -<BR> - Append a boolean value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(java.util.Collection)">put</A></B>(java.util.Collection<?> value)</CODE> - -<BR> - Put a value in the JSONArray, where the value will be a - JSONArray which is produced from a Collection.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(double)">put</A></B>(double value)</CODE> - -<BR> - Append a double value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int)">put</A></B>(int value)</CODE> - -<BR> - Append an int value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int, boolean)">put</A></B>(int index, - boolean value)</CODE> - -<BR> - Put or replace a boolean value in the JSONArray.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int, java.util.Collection)">put</A></B>(int index, - java.util.Collection<?> value)</CODE> - -<BR> - Put a value in the JSONArray, where the value will be a - JSONArray which is produced from a Collection.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int, double)">put</A></B>(int index, - double value)</CODE> - -<BR> - Put or replace a double value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int, int)">put</A></B>(int index, - int value)</CODE> - -<BR> - Put or replace an int value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int, long)">put</A></B>(int index, - long value)</CODE> - -<BR> - Put or replace a long value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int, java.util.Map)">put</A></B>(int index, - java.util.Map<java.lang.String,?> value)</CODE> - -<BR> - Put a value in the JSONArray, where the value will be a - JSONObject which is produced from a Map.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(int, java.lang.Object)">put</A></B>(int index, - java.lang.Object value)</CODE> - -<BR> - Put or replace an object value in the JSONArray.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(long)">put</A></B>(long value)</CODE> - -<BR> - Append an long value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(java.util.Map)">put</A></B>(java.util.Map<java.lang.String,?> value)</CODE> - -<BR> - Put a value in the JSONArray, where the value will be a - JSONObject which is produced from a Map.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#put(java.lang.Object)">put</A></B>(java.lang.Object value)</CODE> - -<BR> - Append an object value.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> <A HREF="../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A></CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#toJSONObject(org.apache.sling.commons.json.JSONArray)">toJSONObject</A></B>(<A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> names)</CODE> - -<BR> - Produce a JSONObject by combining a JSONArray of names with the values - of this JSONArray.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.String</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#toString()">toString</A></B>()</CODE> - -<BR> - Make a JSON text of this JSONArray.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.lang.String</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#toString(int)">toString</A></B>(int indentFactor)</CODE> - -<BR> - Make a prettyprinted JSON text of this JSONArray.</TD> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> -<CODE> java.io.Writer</CODE></FONT></TD> -<TD><CODE><B><A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html#write(java.io.Writer)">write</A></B>(java.io.Writer writer)</CODE> - -<BR> - Write the contents of the JSONArray as JSON text to a writer.</TD> -</TR> -</TABLE> - <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> -<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> -</TR> -<TR BGCOLOR="white" CLASS="TableRowColor"> -<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> -</TR> -</TABLE> - -<P> - -<!-- ========= CONSTRUCTOR DETAIL ======== --> - -<A NAME="constructor_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Constructor Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="JSONArray()"><!-- --></A><H3> -JSONArray</H3> -<PRE> -public <B>JSONArray</B>()</PRE> -<DL> -<DD>Construct an empty JSONArray. -<P> -</DL> -<HR> - -<A NAME="JSONArray(org.apache.sling.commons.json.JSONTokener)"><!-- --></A><H3> -JSONArray</H3> -<PRE> -public <B>JSONArray</B>(<A HREF="../../../../../org/apache/sling/commons/json/JSONTokener.html" title="class in org.apache.sling.commons.json">JSONTokener</A> x) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Construct a JSONArray from a JSONTokener. -<P> -<DL> -<DT><B>Parameters:</B><DD><CODE>x</CODE> - A JSONTokener -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If there is a syntax error.</DL> -</DL> -<HR> - -<A NAME="JSONArray(java.lang.String)"><!-- --></A><H3> -JSONArray</H3> -<PRE> -public <B>JSONArray</B>(java.lang.String string) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Construct a JSONArray from a source sJSON text. -<P> -<DL> -<DT><B>Parameters:</B><DD><CODE>string</CODE> - A string that begins with - <code>[</code> <small>(left bracket)</small> - and ends with <code>]</code> <small>(right bracket)</small>. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If there is a syntax error.</DL> -</DL> -<HR> - -<A NAME="JSONArray(java.util.Collection)"><!-- --></A><H3> -JSONArray</H3> -<PRE> -public <B>JSONArray</B>(java.util.Collection<?> collection)</PRE> -<DL> -<DD>Construct a JSONArray from a Collection. -<P> -<DL> -<DT><B>Parameters:</B><DD><CODE>collection</CODE> - A Collection.</DL> -</DL> - -<!-- ============ METHOD DETAIL ========== --> - -<A NAME="method_detail"><!-- --></A> -<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> -<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> -<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> -<B>Method Detail</B></FONT></TH> -</TR> -</TABLE> - -<A NAME="get(int)"><!-- --></A><H3> -get</H3> -<PRE> -public java.lang.Object <B>get</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the object value associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>An object value. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If there is no value for the index.</DL> -</DD> -</DL> -<HR> - -<A NAME="getBoolean(int)"><!-- --></A><H3> -getBoolean</H3> -<PRE> -public boolean <B>getBoolean</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the boolean value associated with an index. - The string values "true" and "false" are converted to boolean. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The truth. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If there is no value for the index or if the - value is not convertable to boolean.</DL> -</DD> -</DL> -<HR> - -<A NAME="getDouble(int)"><!-- --></A><H3> -getDouble</H3> -<PRE> -public double <B>getDouble</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the double value associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The value. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the key is not found or if the value cannot - be converted to a number.</DL> -</DD> -</DL> -<HR> - -<A NAME="getInt(int)"><!-- --></A><H3> -getInt</H3> -<PRE> -public int <B>getInt</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the int value associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The value. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the key is not found or if the value cannot - be converted to a number. - if the value cannot be converted to a number.</DL> -</DD> -</DL> -<HR> - -<A NAME="getJSONArray(int)"><!-- --></A><H3> -getJSONArray</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>getJSONArray</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the JSONArray associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>A JSONArray value. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If there is no value for the index. or if the - value is not a JSONArray</DL> -</DD> -</DL> -<HR> - -<A NAME="getJSONObject(int)"><!-- --></A><H3> -getJSONObject</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> <B>getJSONObject</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the JSONObject associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - subscript -<DT><B>Returns:</B><DD>A JSONObject value. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If there is no value for the index or if the - value is not a JSONObject</DL> -</DD> -</DL> -<HR> - -<A NAME="getLong(int)"><!-- --></A><H3> -getLong</H3> -<PRE> -public long <B>getLong</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the long value associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The value. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the key is not found or if the value cannot - be converted to a number.</DL> -</DD> -</DL> -<HR> - -<A NAME="getString(int)"><!-- --></A><H3> -getString</H3> -<PRE> -public java.lang.String <B>getString</B>(int index) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Get the string associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>A string value. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If there is no value for the index.</DL> -</DD> -</DL> -<HR> - -<A NAME="isNull(int)"><!-- --></A><H3> -isNull</H3> -<PRE> -public boolean <B>isNull</B>(int index)</PRE> -<DL> -<DD>Determine if the value is null. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>true if the value at the index is null, or if there is no value.</DL> -</DD> -</DL> -<HR> - -<A NAME="join(java.lang.String)"><!-- --></A><H3> -join</H3> -<PRE> -public java.lang.String <B>join</B>(java.lang.String separator) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Make a string from the contents of this JSONArray. The - <code>separator</code> string is inserted between each element. - Warning: This method assumes that the data structure is acyclical. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>separator</CODE> - A string that will be inserted between the elements. -<DT><B>Returns:</B><DD>a string. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the array contains an invalid number.</DL> -</DD> -</DL> -<HR> - -<A NAME="length()"><!-- --></A><H3> -length</H3> -<PRE> -public int <B>length</B>()</PRE> -<DL> -<DD>Get the number of elements in the JSONArray, included nulls. -<P> -<DD><DL> - -<DT><B>Returns:</B><DD>The length (or size).</DL> -</DD> -</DL> -<HR> - -<A NAME="opt(int)"><!-- --></A><H3> -opt</H3> -<PRE> -public java.lang.Object <B>opt</B>(int index)</PRE> -<DL> -<DD>Get the optional object value associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>An object value, or null if there is no - object at that index.</DL> -</DD> -</DL> -<HR> - -<A NAME="optBoolean(int)"><!-- --></A><H3> -optBoolean</H3> -<PRE> -public boolean <B>optBoolean</B>(int index)</PRE> -<DL> -<DD>Get the optional boolean value associated with an index. - It returns false if there is no value at that index, - or if the value is not Boolean.TRUE or the String "true". -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The truth.</DL> -</DD> -</DL> -<HR> - -<A NAME="optBoolean(int, boolean)"><!-- --></A><H3> -optBoolean</H3> -<PRE> -public boolean <B>optBoolean</B>(int index, - boolean defaultValue)</PRE> -<DL> -<DD>Get the optional boolean value associated with an index. - It returns the defaultValue if there is no value at that index or if - it is not a Boolean or the String "true" or "false" (case insensitive). -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1.<DD><CODE>defaultValue</CODE> - A boolean default. -<DT><B>Returns:</B><DD>The truth.</DL> -</DD> -</DL> -<HR> - -<A NAME="optDouble(int)"><!-- --></A><H3> -optDouble</H3> -<PRE> -public double <B>optDouble</B>(int index)</PRE> -<DL> -<DD>Get the optional double value associated with an index. - NaN is returned if there is no value for the index, - or if the value is not a number and cannot be converted to a number. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optDouble(int, double)"><!-- --></A><H3> -optDouble</H3> -<PRE> -public double <B>optDouble</B>(int index, - double defaultValue)</PRE> -<DL> -<DD>Get the optional double value associated with an index. - The defaultValue is returned if there is no value for the index, - or if the value is not a number and cannot be converted to a number. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - subscript<DD><CODE>defaultValue</CODE> - The default value. -<DT><B>Returns:</B><DD>The value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optInt(int)"><!-- --></A><H3> -optInt</H3> -<PRE> -public int <B>optInt</B>(int index)</PRE> -<DL> -<DD>Get the optional int value associated with an index. - Zero is returned if there is no value for the index, - or if the value is not a number and cannot be converted to a number. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optInt(int, int)"><!-- --></A><H3> -optInt</H3> -<PRE> -public int <B>optInt</B>(int index, - int defaultValue)</PRE> -<DL> -<DD>Get the optional int value associated with an index. - The defaultValue is returned if there is no value for the index, - or if the value is not a number and cannot be converted to a number. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1.<DD><CODE>defaultValue</CODE> - The default value. -<DT><B>Returns:</B><DD>The value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optJSONArray(int)"><!-- --></A><H3> -optJSONArray</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>optJSONArray</B>(int index)</PRE> -<DL> -<DD>Get the optional JSONArray associated with an index. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - subscript -<DT><B>Returns:</B><DD>A JSONArray value, or null if the index has no value, - or if the value is not a JSONArray.</DL> -</DD> -</DL> -<HR> - -<A NAME="optJSONObject(int)"><!-- --></A><H3> -optJSONObject</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> <B>optJSONObject</B>(int index)</PRE> -<DL> -<DD>Get the optional JSONObject associated with an index. - Null is returned if the key is not found, or null if the index has - no value, or if the value is not a JSONObject. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>A JSONObject value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optLong(int)"><!-- --></A><H3> -optLong</H3> -<PRE> -public long <B>optLong</B>(int index)</PRE> -<DL> -<DD>Get the optional long value associated with an index. - Zero is returned if there is no value for the index, - or if the value is not a number and cannot be converted to a number. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>The value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optLong(int, long)"><!-- --></A><H3> -optLong</H3> -<PRE> -public long <B>optLong</B>(int index, - long defaultValue)</PRE> -<DL> -<DD>Get the optional long value associated with an index. - The defaultValue is returned if there is no value for the index, - or if the value is not a number and cannot be converted to a number. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1.<DD><CODE>defaultValue</CODE> - The default value. -<DT><B>Returns:</B><DD>The value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optString(int)"><!-- --></A><H3> -optString</H3> -<PRE> -public java.lang.String <B>optString</B>(int index)</PRE> -<DL> -<DD>Get the optional string value associated with an index. It returns an - empty string if there is no value at that index. If the value - is not a string and is not null, then it is coverted to a string. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1. -<DT><B>Returns:</B><DD>A String value.</DL> -</DD> -</DL> -<HR> - -<A NAME="optString(int, java.lang.String)"><!-- --></A><H3> -optString</H3> -<PRE> -public java.lang.String <B>optString</B>(int index, - java.lang.String defaultValue)</PRE> -<DL> -<DD>Get the optional string associated with an index. - The defaultValue is returned if the key is not found. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index must be between 0 and length() - 1.<DD><CODE>defaultValue</CODE> - The default value. -<DT><B>Returns:</B><DD>A String value.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(boolean)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(boolean value)</PRE> -<DL> -<DD>Append a boolean value. This increases the array's length by one. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>value</CODE> - A boolean value. -<DT><B>Returns:</B><DD>this.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(java.util.Collection)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(java.util.Collection<?> value)</PRE> -<DL> -<DD>Put a value in the JSONArray, where the value will be a - JSONArray which is produced from a Collection. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>value</CODE> - A Collection value. -<DT><B>Returns:</B><DD>this.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(double)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(double value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Append a double value. This increases the array's length by one. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>value</CODE> - A double value. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - if the value is not finite.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int value)</PRE> -<DL> -<DD>Append an int value. This increases the array's length by one. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>value</CODE> - An int value. -<DT><B>Returns:</B><DD>this.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(long)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(long value)</PRE> -<DL> -<DD>Append an long value. This increases the array's length by one. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>value</CODE> - A long value. -<DT><B>Returns:</B><DD>this.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(java.util.Map)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(java.util.Map<java.lang.String,?> value)</PRE> -<DL> -<DD>Put a value in the JSONArray, where the value will be a - JSONObject which is produced from a Map. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>value</CODE> - A Map value. -<DT><B>Returns:</B><DD>this.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(java.lang.Object)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(java.lang.Object value)</PRE> -<DL> -<DD>Append an object value. This increases the array's length by one. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>value</CODE> - An object value. The value should be a - Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the - JSONObject.NULL object. -<DT><B>Returns:</B><DD>this.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int, boolean)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int index, - boolean value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Put or replace a boolean value in the JSONArray. If the index is greater - than the length of the JSONArray, then null elements will be added as - necessary to pad it out. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The subscript.<DD><CODE>value</CODE> - A boolean value. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the index is negative.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int, java.util.Collection)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int index, - java.util.Collection<?> value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Put a value in the JSONArray, where the value will be a - JSONArray which is produced from a Collection. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The subscript.<DD><CODE>value</CODE> - A Collection value. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the index is negative or if the value is - not finite.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int, double)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int index, - double value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Put or replace a double value. If the index is greater than the length of - the JSONArray, then null elements will be added as necessary to pad - it out. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The subscript.<DD><CODE>value</CODE> - A double value. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the index is negative or if the value is - not finite.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int, int)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int index, - int value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Put or replace an int value. If the index is greater than the length of - the JSONArray, then null elements will be added as necessary to pad - it out. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The subscript.<DD><CODE>value</CODE> - An int value. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the index is negative.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int, long)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int index, - long value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Put or replace a long value. If the index is greater than the length of - the JSONArray, then null elements will be added as necessary to pad - it out. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The subscript.<DD><CODE>value</CODE> - A long value. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the index is negative.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int, java.util.Map)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int index, - java.util.Map<java.lang.String,?> value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Put a value in the JSONArray, where the value will be a - JSONObject which is produced from a Map. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The subscript.<DD><CODE>value</CODE> - The Map value. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the index is negative or if the the value is - an invalid number.</DL> -</DD> -</DL> -<HR> - -<A NAME="put(int, java.lang.Object)"><!-- --></A><H3> -put</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> <B>put</B>(int index, - java.lang.Object value) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Put or replace an object value in the JSONArray. If the index is greater - than the length of the JSONArray, then null elements will be added as - necessary to pad it out. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>index</CODE> - The subscript.<DD><CODE>value</CODE> - The value to put into the array. The value should be a - Boolean, Double, Integer, JSONArray, JSONObject, Long, or String, or the - JSONObject.NULL object. -<DT><B>Returns:</B><DD>this. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If the index is negative or if the the value is - an invalid number.</DL> -</DD> -</DL> -<HR> - -<A NAME="toJSONObject(org.apache.sling.commons.json.JSONArray)"><!-- --></A><H3> -toJSONObject</H3> -<PRE> -public <A HREF="../../../../../org/apache/sling/commons/json/JSONObject.html" title="class in org.apache.sling.commons.json">JSONObject</A> <B>toJSONObject</B>(<A HREF="../../../../../org/apache/sling/commons/json/JSONArray.html" title="class in org.apache.sling.commons.json">JSONArray</A> names) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Produce a JSONObject by combining a JSONArray of names with the values - of this JSONArray. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>names</CODE> - A JSONArray containing a list of key strings. These will be - paired with the values. -<DT><B>Returns:</B><DD>A JSONObject, or null if there are no names or if this JSONArray - has no values. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE> - If any of the names are null.</DL> -</DD> -</DL> -<HR> - -<A NAME="toString()"><!-- --></A><H3> -toString</H3> -<PRE> -public java.lang.String <B>toString</B>()</PRE> -<DL> -<DD>Make a JSON text of this JSONArray. For compactness, no - unnecessary whitespace is added. If it is not possible to produce a - syntactically correct JSON text then null will be returned instead. This - could occur if the array contains an invalid number. - <p> - Warning: This method assumes that the data structure is acyclical. -<P> -<DD><DL> -<DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> -</DD> -<DD><DL> - -<DT><B>Returns:</B><DD>a printable, displayable, transmittable - representation of the array.</DL> -</DD> -</DL> -<HR> - -<A NAME="toString(int)"><!-- --></A><H3> -toString</H3> -<PRE> -public java.lang.String <B>toString</B>(int indentFactor) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Make a prettyprinted JSON text of this JSONArray. - Warning: This method assumes that the data structure is acyclical. -<P> -<DD><DL> -<DT><B>Parameters:</B><DD><CODE>indentFactor</CODE> - The number of spaces to add to each level of - indentation. -<DT><B>Returns:</B><DD>a printable, displayable, transmittable - representation of the object, beginning - with <code>[</code> <small>(left bracket)</small> and ending - with <code>]</code> <small>(right bracket)</small>. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE></DL> -</DD> -</DL> -<HR> - -<A NAME="write(java.io.Writer)"><!-- --></A><H3> -write</H3> -<PRE> -public java.io.Writer <B>write</B>(java.io.Writer writer) - throws <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></PRE> -<DL> -<DD>Write the contents of the JSONArray as JSON text to a writer. - For compactness, no whitespace is added. - <p> - Warning: This method assumes that the data structure is acyclical. -<P> -<DD><DL> - -<DT><B>Returns:</B><DD>The writer. -<DT><B>Throws:</B> -<DD><CODE><A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json">JSONException</A></CODE></DL> -</DD> -</DL> -<!-- ========= END OF CLASS DATA ========= --> -<HR> - - -<!-- ======= START OF BOTTOM NAVBAR ====== --> -<A NAME="navbar_bottom"><!-- --></A> -<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> -<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> -<TR> -<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> -<A NAME="navbar_bottom_firstrow"><!-- --></A> -<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> - <TR ALIGN="center" VALIGN="top"> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> - <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JSONArray.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> - <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> - </TR> -</TABLE> -</TD> -<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> -</EM> -</TD> -</TR> - -<TR> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - PREV CLASS - <A HREF="../../../../../org/apache/sling/commons/json/JSONException.html" title="class in org.apache.sling.commons.json"><B>NEXT CLASS</B></A></FONT></TD> -<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> - <A HREF="../../../../../index.html?org/apache/sling/commons/json/JSONArray.html" target="_top"><B>FRAMES</B></A> - <A HREF="JSONArray.html" target="_top"><B>NO FRAMES</B></A> - <SCRIPT type="text/javascript"> - <!-- - if(window==top) { - document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); - } - //--> -</SCRIPT> -<NOSCRIPT> - <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> -</NOSCRIPT> - - -</FONT></TD> -</TR> -<TR> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> - SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> -<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> -DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> -</TR> -</TABLE> -<A NAME="skip-navbar_bottom"></A> -<!-- ======== END OF BOTTOM NAVBAR ======= --> - -<HR> -Copyright © 2007-2009. All Rights Reserved. -</BODY> -</HTML>
