|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
com.crystaldecisions.sdk.occa.report.lib.Strings
This class defines a collection of String
objects.
Constructor Summary | |
Strings()
Constructs an empty Strings object.
|
|
Strings(Strings src)
Constructs a new String collection with the same contents as the specified Strings object.
|
Method Summary | |
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this collection. |
boolean |
add(java.lang.Object o)
Appends the specified element to the end of this collection. |
void |
copyTo(java.lang.Object dest,
boolean deepCopy)
Copies the object. |
java.lang.Object |
createMember(java.lang.String eleName,
org.xml.sax.Attributes attrs,
XMLSerializationContext ctxt,
java.util.Map objState,
boolean[] bLoaded)
For internal use only. |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
boolean |
equalsIgnoreCase(IStrings srcStrings)
Returns true if the specified IStrings object is equal to this object,
regardless of case. |
java.lang.String |
getString(int index)
Returns the String at the specified index.
|
boolean |
hasContent(java.lang.Object obj)
Returns true if this object contains the same elements
as the passed in object. |
void |
readElement(java.lang.String eleName,
java.lang.String sVal,
org.xml.sax.Attributes attrs,
java.util.Map objState)
For internal use only. |
void |
save(com.crystaldecisions.xml.serialization.XMLWriter writer,
com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt)
For internal use only. |
void |
save(XMLWriter writer,
java.lang.String sTag,
XMLSerializationContext ctxt)
For internal use only. |
void |
saveContents(XMLWriter writer,
XMLSerializationContext ctxt)
For internal use only. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
java.lang.String[] |
toStringArray()
Returns the contents of this Strings collection as an array of String objects.
|
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector |
addElement, clone, elementAt, findIndexOf, insertElementAt, removeAllElements |
Methods inherited from class java.util.ArrayList |
addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
public Strings(Strings src)
Constructs a new String
collection with the same contents as the specified Strings
object.
This is equivalent to creating a new copy.
src
- The Strings
collection to be copied.public Strings()
Constructs an empty Strings
object.
Method Detail |
public void copyTo(java.lang.Object dest, boolean deepCopy)
Copies the object.
copyTo
in interface IClone
copyTo
in class ReportSDKVector
dest
- The destination object to copy to.deepCopy
- true
to use deep copy,
false
to use shallow.public java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
For internal use only.
public void endElement(java.lang.String eleName, java.util.Map objState)
For internal use only.
public boolean equalsIgnoreCase(IStrings srcStrings)
IStrings
Returns true
if the specified IStrings
object is equal to this object,
regardless of case. In other words, this method performs a case-insensitive equality test.
equalsIgnoreCase
in interface IStrings
srcStrings
- The IStrings
object to be compared to.
true
if the specified IStrings
object is equal to this object,
and false
otherwise.public java.lang.String getString(int index)
IStrings
Returns the String
at the specified index.
getString
in interface IStrings
index
- The index of the desired String
.
String
at the specified index.public boolean hasContent(java.lang.Object obj)
Returns true
if this object contains the same elements
as the passed in object.
hasContent
in interface IClone
hasContent
in class ReportSDKVector
obj
- The object to check for content.
true
if this object contains the same elements
as the passed in object, otherwise false
.public void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
For internal use only.
public void save(com.crystaldecisions.xml.serialization.XMLWriter writer, com.crystaldecisions.xml.serialization.XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void saveContents(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
For internal use only.
java.io.IOException
public void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
For internal use only.
public java.lang.String[] toStringArray()
Returns the contents of this Strings
collection as an array of String
objects.
String
objects containing the contents of this collection.public boolean add(java.lang.Object o)
add
in interface java.util.List
o
- element to be added into the collection.
java.lang.ClassCastException
- class of the specified element prevents it
from being added to this collection.
java.lang.NullPointerException
- if the specified element is null and this
collection does not support null elements.public void add(int index, java.lang.Object element)
add
in interface java.util.List
index
- index at which the specified element is to be inserted.element
- element to be inserted.
java.lang.IndexOutOfBoundsException
- if index is out of range
(index < 0 || index > size()).
java.lang.ClassCastException
- class of the specified element prevents it
from being added to this collection.
java.lang.NullPointerException
- if the specified element is null and this
collection does not support null elements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |