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

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

public class Values
extends ReportSDKVector<IValue>
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)
           
 boolean isDirectlyControllable()
           
 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, elementAt, insertElementAt, removeAllElements
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ControllableList
addAll, addAll, doControllerModification, enumerateMembers, getControllableMixin, iterator, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList
 
Methods inherited from class com.crystaldecisions.sdk.occa.report.lib.ClonableList
clone, findIndexOf
 
Methods inherited from class java.util.ArrayList
clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

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 ControllableList<IValue>

hasContent

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

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<IValue>

endElement

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

For internal use only.

Overrides:
endElement in class ClonableList<IValue>

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<IValue>

save

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

For internal use only.

Overrides:
save in class ClonableList<IValue>
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<IValue>
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<IValue>
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<IValue>

add

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

Specified by:
add in interface java.util.Collection<IValue>
Specified by:
add in interface java.util.List<IValue>
Overrides:
add in class ReportSDKVector<IValue>
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<IValue>
Overrides:
add in class ReportSDKVector<IValue>
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<IValue>
Specified by:
clear in interface java.util.List<IValue>
Overrides:
clear in class ControllableList<IValue>

isDirectlyControllable

public boolean isDirectlyControllable()
Overrides:
isDirectlyControllable in class ReportSDKVector<IValue>