/* XBN Java: Generically useful, non-GUI Java code. http://sourceforge.net/projects/xbnjava Copyright (C) 1997-2003, Jeff Epstein All rights reserved. Modifications: No Redistribution in binary form, with or without modifications, are permitted provided that the following conditions are met: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * If modifications are made to source code then this license should indicate that fact in the "Modifications" section above. * Neither the author, nor the contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. [NOTE: This license contains NO advertising clause.] */ package xbn.string; import xbn.array.primitive.PASAOObject; import xbn.array.primitive.PARString; /**
A PASAOObject that wraps around an array of StringOrBuffers, representing the string value. See StringOrBuffer.
Source code: PASStringOrBuffer.java.
To shorten code and Javadoc.
Equal to "xbn.array.primitive.PASStringOrBuffer"
**/ public static final String sPASOB = "xbn.array.primitive.PASStringOrBuffer"; /**Create a PASStringOrBuffer with default values.
Equal to PASStringOrBuffer(null)
Create a PASStringOrBuffer.
Equal to PASStringOrBuffer(sPASOB, a_strOrBfr)
Create a PASStringOrBuffer.
Equal to PASStringOrBuffer(s_fqExtendingClass, a_strOrBfr, (new PARString()))
Create a PASStringOrBuffer.
Equal to PASStringOrBuffer(sPASOB, a_strOrBfr, par_string)
Create a PASStringOrBuffer.
Equal to PASStringOrBuffer(s_fqExtendingClass, a_strOrBfr, par_string)
Create a PASStringOrBuffer.
Equal to PASStringOrBuffer(sPASOB, a_strOrBfr, (new PARString()), b_lock)
Create a PASStringOrBuffer.
Equal to PASStringOrBuffer(sPASOB, a_strOrBfr, par_string, b_lock)
Create a PASStringOrBuffer.
Equal to PASStringOrBuffer(sPASOB, a_strOrBfr, (new PARString()), b_lock)
Create an PASStringOrBuffer.
Equal to PASAOObject(s_fqExtendingClass, a_strOrBfr, par_string, b_lock)
Get the String at the requested array index.
@returngetStringOrBuffer(i_dx).toString()
**/
public final String getString(int i_dx) {
return getStringOrBuffer(i_dx).toString();
}
/**
Get the StringOrBuffer at the requested array index.
@return(StringOrBuffer)getObject(i_dx)
**/
public final StringOrBuffer getStringOrBuffer(int i_dx) {
return (StringOrBuffer)getObject(i_dx);
}
/**
Get the StringOrBuffer array for direct manipulation.
@return(StringOrBuffer[])getAOObject()
**/
public final StringOrBuffer[] getAOString() {
return (StringOrBuffer[])getAOObject();
}
}