|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.crystaldecisions.sdk.occa.report.data.Value
com.crystaldecisions.sdk.occa.report.data.ConstantValue
public class ConstantValue
This object represents a literal value that needs no evaluation.
Expression values, those that need to be evaluated, are stored
using the ExpressionValue
object. The ConstantValue
object is used
by the FieldRangeFilterItem
object to store values in primitive
expressions of filters. When possible, use the IConstantValue
.
Constructor Summary | |
---|---|
ConstantValue()
|
|
ConstantValue(IConstantValue src)
|
Method Summary | |
---|---|
java.lang.Object |
clone(boolean deepClone)
|
int |
compareValue(ConstantValue arg1)
Compares the object to the value and returns whether it is equivalent. |
java.lang.String |
computeText()
The ComputeText method returns a String representation
of the field value that can be used in a report formula. |
void |
copyTo(java.lang.Object destObject,
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. |
java.lang.String |
displayText(java.util.Locale locale)
Returns the field's value as a localized and formatted String . |
void |
endElement(java.lang.String eleName,
java.util.Map objState)
For internal use only. |
java.lang.Object |
getValue()
Returns the value for a constant. |
boolean |
hasContent(java.lang.Object srcConstantValue)
|
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 |
setValue(java.lang.Object value)
Sets the value for a constant. |
void |
startElement(java.lang.String eleName,
java.util.Map objState,
org.xml.sax.Attributes attrs)
For internal use only. |
java.lang.String |
toString()
|
Methods inherited from class com.crystaldecisions.sdk.occa.report.data.Value |
---|
doControllerModification, enumerateMembers, getControllableMixin, isDirectlyControllable, toComputeText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConstantValue(IConstantValue src)
public ConstantValue()
Method Detail |
---|
public java.lang.Object clone(boolean deepClone)
clone
in class Value
public int compareValue(ConstantValue arg1)
Compares the object to the value and returns whether it is equivalent.
arg1
- A com.crystaldecisions.sdk.occa.report.data.ConstantValue
to compare with.
arg1
is greater than this object, and
1 if this object is greater than arg1
.public java.lang.String computeText()
IValue
The ComputeText method returns a String
representation
of the field value that can be used in a report formula.
The String
is not formatted or localized.
The syntax will always be Crystal syntax.
If the field contains a date, ComputeText
returns Date(x, x, x); if it contains a date and time,
ComputeText returns DateTime(x, x, x, x, x, x).
However, when the date is 1900, 0, 1 (the Java start date),
ComputeText returns Time(x, x, x). If you want to set a field
to a time value only (that is, with no date), you should set
the date to 1900, 0, 1, so that ComputeText will retrieve
the correct information.
computeText
in interface IValue
computeText
in class Value
String
representation
of the field value that can be used in a report formula.public void copyTo(java.lang.Object destObject, boolean deepCopy)
copyTo
in class Value
public java.lang.Object createMember(java.lang.String eleName, org.xml.sax.Attributes attrs, XMLSerializationContext ctxt, java.util.Map objState, boolean[] bLoaded)
Value
For internal use only.
createMember
in class Value
public java.lang.String displayText(java.util.Locale locale)
IValue
Returns the field's value as a localized and formatted
String
. The Locale can be a java.util.Locale
value.
The value is formatted according to the locale.
The user is required to pass in a locale; the system
default locale or user default locale is not used.
If the field contains a date, displayText
returns a
locale-specific date string; if it contains a date and time,
displayText
returns a locale-specific date time String
;
if it contains a time String
, displayText
returns a locale-specific
time String
.
displayText
in interface IValue
displayText
in class Value
locale
- The locale as specified by
java.util.Locale
.
String
.public void endElement(java.lang.String eleName, java.util.Map objState)
Value
For internal use only.
endElement
in class Value
public java.lang.Object getValue()
IConstantValue
Returns the value for a constant.
getValue
in interface IConstantValue
public boolean hasContent(java.lang.Object srcConstantValue)
hasContent
in class Value
public void readElement(java.lang.String eleName, java.lang.String sVal, org.xml.sax.Attributes attrs, java.util.Map objState)
Value
For internal use only.
readElement
in class Value
public void save(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
Value
For internal use only.
save
in class Value
java.io.IOException
public void save(XMLWriter writer, java.lang.String sTag, XMLSerializationContext ctxt) throws java.io.IOException
Value
For internal use only.
save
in class Value
java.io.IOException
public void saveContents(XMLWriter writer, XMLSerializationContext ctxt) throws java.io.IOException
Value
For internal use only.
saveContents
in class Value
java.io.IOException
public void setValue(java.lang.Object value)
IConstantValue
Sets the value for a constant.
setValue
in interface IConstantValue
value
- Objectpublic void startElement(java.lang.String eleName, java.util.Map objState, org.xml.sax.Attributes attrs)
For internal use only.
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |