public abstract class FieldData extends RecordPackWrapper
Modifier and Type | Method and Description |
---|---|
static FieldData |
createFromPack(JPack pack)
Creates a FieldData instance from the pack representation.
|
java.lang.String |
getDescription()
Return the description string for the given statistics entry.
|
java.lang.String |
getDisplayString()
Return the display string for the given statistics entry.
|
int |
getFieldType()
Return the type of the field for this field value range.
|
GUID |
getFieldUID()
Return the field UID for this field entry.
|
int |
getFieldValueInterpretation()
Return the value interpretation of the field for this field value range.
|
java.lang.String |
getFullDisplayString() |
boolean |
getIsExpandable()
Return whether this entry can be expanded (can return sub-entries).
|
int |
getItemCount()
Return the number of items in the range of this statistics entry.
|
int |
getLevel()
Returns the level of this entry in the statistics tree starting with 0.
|
java.util.Locale |
getLocale()
Returns the locale being used when creating display strings for this field data instance.
|
JPack |
getPack() |
abstract java.lang.String |
getRawMaxValue()
Return an internal string representation of the maximum value.
|
abstract java.lang.String |
getRawMinValue()
Return an internal string representation of the minimum value.
|
void |
readExternal(java.io.ObjectInput in)
Used for implementing
Externalizable . |
void |
setCurrentCollection(boolean currentCollection)
Specifies whether this field data will return children that are valid for the current collection only.
|
void |
setLocale(java.util.Locale locale)
Sets the locale to use when rendering display strings.
|
void |
setTimeZoneOffset(int timeZoneOffset)
Set the time zone offset.
|
void |
writeExternal(java.io.ObjectOutput out)
Used for implementing
Externalizable . |
toXMLString
public GUID getFieldUID()
FieldDefinition.getFieldUID()
for details.public int getFieldType()
public int getFieldValueInterpretation()
public java.lang.String getDisplayString()
public int getItemCount()
public boolean getIsExpandable()
true
if this entry can be expanded, false
otherwise.public int getLevel()
public java.util.Locale getLocale()
public java.lang.String getDescription()
public abstract java.lang.String getRawMinValue()
public abstract java.lang.String getRawMaxValue()
public void setTimeZoneOffset(int timeZoneOffset)
MultiItemCollection.getItemFieldStatistics(FieldData)
return the correct statistics for date fields. If you never set this time zone offset the current client's offset is used.timeZoneOffset
- The number of seconds to add to UTC time to get to local timepublic void setLocale(java.util.Locale locale)
locale
- new locale to use for children of this instance.public JPack getPack()
public static FieldData createFromPack(JPack pack)
pack
- pack to create the instance frompublic java.lang.String getFullDisplayString()
public void setCurrentCollection(boolean currentCollection)
currentCollection
- true for content of the current collection onlypublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
Externalizable
. Do not call directly!out
- stream to write data tojava.io.IOException
- in case of an errorpublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
Externalizable
. Do not call directly!in
- stream to read data fromjava.io.IOException
- in case of an errorjava.lang.ClassNotFoundException
- in case of an errorwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.