public class MetadataTemplateEntry extends BaseManager
Modifier and Type | Class and Description |
---|---|
static class |
MetadataTemplateEntry.ValueFillMode
Describes the available fill modes for field values.
|
BaseManager.PackEntryChangeListener, BaseManager.RegistryEntry
TYPE_EJP, TYPE_NATIVE
Modifier and Type | Method and Description |
---|---|
void |
clearValue() |
boolean |
fillField()
Returns whether this entry should be used when applying this metadata template.
|
boolean |
getBooleanValue()
Returns this entries value as a boolean value.
|
java.util.Date |
getDateValue()
Returns this entries value as a Date value.
|
double |
getDoubleValue()
Returns this entries value as a double value.
|
java.lang.String |
getFieldName()
Returns the display name of this field.
|
int |
getFieldType()
Returns the field type of this entry.
|
java.lang.String |
getFieldUID()
Returns the field UDI of this entry.
|
int |
getFillMode()
Deprecated.
Use
getValueFillMode() instead |
java.lang.String |
getFormula()
Returns the formula of this entry if available.
|
int |
getIntValue()
Returns this entries value as a integer value.
|
long |
getLongValue()
Returns this entries value as a long value.
|
java.lang.String |
getName()
Returns the name of this metadata template entry.
|
static java.lang.String[] |
getPKValues(java.lang.String uid) |
int[] |
getStringEnumValue()
Returns this entries value as a string enum value.
|
java.lang.String |
getStringValue()
Returns this entries value as a string value.
|
java.lang.Object |
getValue()
Deprecated.
Use one of the type-specific functions instead!
|
MetadataTemplateEntry.ValueFillMode |
getValueFillMode()
Returns the mode for applying this entry for string fields.
|
int |
getValueInterpretation()
Returns the value interpretation for this entry.
|
int[] |
getVocabularyValue()
Returns this entries value as a vocabulary value.
|
boolean |
hasFormula()
Returns whether this entry has a formula instead of a static value.
|
void |
setBooleanValue(boolean value)
Sets this entries value as a boolean value.
|
void |
setDateValue(java.util.Date value)
Sets this entries value as a Date value.
|
void |
setDateValue(java.util.Date value,
boolean asDateTime64)
Sets this entries value as a Date value.
|
void |
setDoubleValue(double value)
Sets this entries value as an double value.
|
void |
setFillField(boolean value)
Configures whether this entry should be used when applying this metadata template.
|
void |
setFillMode(int mode)
Deprecated.
|
void |
setFormula(java.lang.String formula)
Sets a formula for this entry.
|
void |
setIntValue(int value)
Sets this entries value as an integer value.
|
void |
setLongValue(long value)
Sets this entries value as an long value.
|
void |
setStringEnumValue(int[] value)
Sets this entries value as an string enum value.
|
void |
setStringValue(java.lang.String value)
Sets this entries value as an string value.
|
void |
setValue(java.lang.Object value)
Deprecated.
Use one of the type-specific functions instead!
|
void |
setValueFillMode(MetadataTemplateEntry.ValueFillMode mode)
Configures the mode for applying this entry for string fields.
|
void |
setVocabularyValue(int[] value)
Sets this entries value as an vocabulary value.
|
addChangeListener, addChangeListener, addGlobalChangeListener, addPackListener, forgetPush, getPack, isShared, popPack, pushPack, removeChangeListener, removeChangeListener, removeGlobalChangeListener, removePackListener, save, save, toString, writeAsXML
public static final java.lang.String FORMULA_PLACEHOLDER_DATE_NOW
public static final java.lang.String FORMULA_PLACEHOLDER_DATE_TODAY
public static final char FORMULA_PLACEHOLDER_DATE_MODIFIER_DAYS
public static final char FORMULA_PLACEHOLDER_DATE_MODIFIER_HOURS
public static final char FORMULA_PLACEHOLDER_DATE_MODIFIER_MINUTES
public static final char FORMULA_PLACEHOLDER_DATE_MODIFIER_SECONDS
@Deprecated public static final int FILL_MODE_OPTION_REPLACE
MetadataTemplateEntry.ValueFillMode.REPLACE
instead.@Deprecated public static final int FILL_MODE_OPTION_APPEND
MetadataTemplateEntry.ValueFillMode.APPEND
instead.@Deprecated public static final int FILL_MODE_OPTION_PREPEND
FILL_MODE_OPTION_PREPEND
instead.@Deprecated public static final int FILL_MODE_OPTION_ADD
MetadataTemplateEntry.ValueFillMode.ADD
instead.@Deprecated public static final int FILL_MODE_OPTION_REMOVE
MetadataTemplateEntry.ValueFillMode.REMOVE
instead.@Deprecated public static final int FILL_MODE_OPTION_CLEAR_VALUE
MetadataTemplateEntry.ValueFillMode.CLEAR_VALUE
instead.@Deprecated public static final int FILL_MODE_OPTION_REPLACE_IF_EMPTY
MetadataTemplateEntry.ValueFillMode.REPLACE_IF_EMPTY
instead.public java.lang.String getName()
public boolean fillField()
public void setFillField(boolean value)
value
- set to true if this entry should be usedpublic java.lang.String getFieldName()
public java.lang.String getFieldUID()
public int getFieldType()
public int getValueInterpretation()
@Deprecated public int getFillMode()
getValueFillMode()
insteadFILL_MODE_OPTION_APPEND
, FILL_MODE_OPTION_PREPEND
and
FILL_MODE_OPTION_REPLACE
. Defaults to FILL_MODE_OPTION_REPLACE
.public MetadataTemplateEntry.ValueFillMode getValueFillMode()
FILL_MODE_OPTION_APPEND
, FILL_MODE_OPTION_PREPEND
and
FILL_MODE_OPTION_REPLACE
. Defaults to FILL_MODE_OPTION_REPLACE
.@Deprecated public void setFillMode(int mode)
setValueFillMode(com.canto.cumulus.prefs.MetadataTemplateEntry.ValueFillMode)
insteadFILL_MODE_OPTION_APPEND
, FILL_MODE_OPTION_PREPEND
and FILL_MODE_OPTION_REPLACE
.mode
- mode for applying the entry for string fieldspublic void setValueFillMode(MetadataTemplateEntry.ValueFillMode mode)
mode
- mode for applying the entrypublic boolean hasFormula()
getFormula()
. Calling getValue()
on a formula entry returns the result of the evaluated formula.public java.lang.String getFormula()
public void setFormula(java.lang.String formula)
formula
- the formula to setpublic boolean getBooleanValue()
public void setBooleanValue(boolean value)
value
- new valuepublic java.util.Date getDateValue()
public void setDateValue(java.util.Date value)
value
- new valuepublic void setDateValue(java.util.Date value, boolean asDateTime64)
value
- new valueasDateTime64
- indicates whether the value should be saved as double (true
) value or as integer value (false
)public int getIntValue()
public void setIntValue(int value)
value
- new valuepublic long getLongValue()
public void setLongValue(long value)
value
- new valuepublic double getDoubleValue()
public void setDoubleValue(double value)
value
- new valuepublic java.lang.String getStringValue()
public void setStringValue(java.lang.String value)
value
- new valuepublic int[] getStringEnumValue()
public void setStringEnumValue(int[] value)
value
- new valuepublic int[] getVocabularyValue()
public void setVocabularyValue(int[] value)
value
- new valuepublic void clearValue()
@Deprecated public void setValue(java.lang.Object value)
value
- new value@Deprecated public java.lang.Object getValue()
public static java.lang.String[] getPKValues(java.lang.String uid)
www.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.