com.crystaldecisions.sdk.occa.report.data
Class Values

java.lang.Object
  extended by java.util.AbstractCollection
      extended by java.util.AbstractList
          extended by java.util.ArrayList
              extended by com.crystaldecisions.sdk.occa.report.lib.ClonableList
                  extended by com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
                      extended by com.crystaldecisions.sdk.occa.report.data.Values
All Implemented Interfaces:
IClone, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class Values
extends ReportSDKVector
implements IClone

This object defines a collection that contains an array of Value objects and allows you to add, remove, search for, and add new values to and from the collection.

See Also:
Serialized Form

Constructor Summary
Values()
           
Values(Values src)
           
 
Method Summary
 void add(boolean bValue)
           Adds a boolean value to the collection.
 void add(double dValue)
           Adds a double value to the collection.
 void add(double beginValue, RangeValueBoundType lowerBoundType, double endValue, RangeValueBoundType upperBoundType)
           Adds a range value to the collection.
 void add(int index, IValue element)
          Inserts the specified element at the specified position in this collection.
 boolean add(IValue o)
          Appends the specified element to the end of this collection.
 void add(java.lang.Object beginValue, RangeValueBoundType lowerBoundType, java.lang.Object endValue, RangeValueBoundType upperBoundType)
           Adds a range value to the collection.
 void add(java.lang.String sValue)
           Adds a String value to the collection.
 void clear()
           
 void copyTo(java.lang.Object dest, boolean deepCopy)
           
 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 getIsNoValue()
          Gets if the Values object should contain a value.
 IValue getValue(int index)
           Returns the IValue object at the specified index.
 boolean hasContent(java.lang.Object obj)
           
 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(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt)
           For internal use only.
 void save(XMLWriter writer, XMLSerializationContext ctxt)
           For internal use only.
 void saveContents(XMLWriter writer, XMLSerializationContext ctxt)
           For internal use only.
 void setIsNoValue(boolean isNoValue)
          Sets if the Values object should contain a value.
 void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
           For internal use only.
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ReportSDKVector
addElement, addNullElement, elementAt, insertElementAt, removeAllElements
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ClonableList
clone, copyTo, findIndexOf
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, 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, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Values

public Values(Values src)

Values

public Values()
Method Detail

copyTo

public void copyTo(java.lang.Object dest,
                   boolean deepCopy)
Overrides:
copyTo in class ClonableList

hasContent

public boolean hasContent(java.lang.Object obj)
Overrides:
hasContent in class ClonableList

add

public void add(java.lang.String sValue)

Adds a String value to the collection.

Parameters:
sValue - the string value to be added to the collection

add

public void add(double dValue)

Adds a double value to the collection.

Parameters:
dValue - the double value to be added to the collection

add

public void add(boolean bValue)

Adds a boolean value to the collection.

Parameters:
bValue - the boolean value to be added to the collection

add

public void add(double beginValue,
                RangeValueBoundType lowerBoundType,
                double endValue,
                RangeValueBoundType upperBoundType)

Adds a range value to the collection.

Parameters:
beginValue - the lower bound value of the range
lowerBoundType - the type of the lower bound of the range. See RangeValueBoundType for details.
endValue - the upper bound value of the range
upperBoundType - the type of the upper bound of the range. See RangeValueBoundType for details.

add

public void add(java.lang.Object beginValue,
                RangeValueBoundType lowerBoundType,
                java.lang.Object endValue,
                RangeValueBoundType upperBoundType)

Adds a range value to the collection. Tales as its parameters a begin and an end value of the range, and constants that specify the type of each of these values.

Parameters:
beginValue - the lower bound object of the range.
lowerBoundType - the type of the lower bound of the range. See RangeValueBoundType for details.
endValue - the upper bound object of the range.
upperBoundType - the type of the upper bound of the range. See RangeValueBoundType for details.

createMember

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.

Overrides:
createMember in class ClonableList

endElement

public void endElement(java.lang.String eleName,
                       java.util.Map objState)

For internal use only.

Overrides:
endElement in class ClonableList

getValue

public IValue getValue(int index)

Returns the IValue object at the specified index.

Parameters:
index - The index of the desired IValue object.
Returns:
The IValue object at the specified index.

readElement

public void readElement(java.lang.String eleName,
                        java.lang.String sVal,
                        org.xml.sax.Attributes attrs,
                        java.util.Map objState)

For internal use only.

Overrides:
readElement in class ClonableList

save

public void save(XMLWriter writer,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Overrides:
save in class ClonableList
Throws:
java.io.IOException

save

public void save(XMLWriter writer,
                 java.lang.String sTag,
                 XMLSerializationContext ctxt)
          throws java.io.IOException

For internal use only.

Overrides:
save in class ClonableList
Throws:
java.io.IOException

saveContents

public void saveContents(XMLWriter writer,
                         XMLSerializationContext ctxt)
                  throws java.io.IOException

For internal use only.

Overrides:
saveContents in class ClonableList
Throws:
java.io.IOException

startElement

public void startElement(java.lang.String eleName,
                         java.util.Map objState,
                         org.xml.sax.Attributes attrs)

For internal use only.

Overrides:
startElement in class ClonableList

add

public boolean add(IValue o)
Appends the specified element to the end of this collection.

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List
Overrides:
add in class ReportSDKVector
Parameters:
o - Element to be added into the collection.
Returns:
true if this collection changed as a result of the call.
Throws:
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.

add

public void add(int index,
                IValue element)
Inserts the specified element at the specified position in this collection. Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Specified by:
add in interface java.util.List
Overrides:
add in class ReportSDKVector
Parameters:
index - index at which the specified element is to be inserted.
element - element to be inserted.
Throws:
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.

getIsNoValue

public boolean getIsNoValue()
Gets if the Values object should contain a value.

Returns:
true if the Values object should not contain a value.

setIsNoValue

public void setIsNoValue(boolean isNoValue)
Sets if the Values object should contain a value.

Parameters:
isNoValue - true if the Values object should not contain a value.

clear

public void clear()
Specified by:
clear in interface java.util.Collection
Specified by:
clear in interface java.util.List
Overrides:
clear in class java.util.ArrayList