Package com.veeva.vault.sdk.api.document
Interface DocumentFormulaFieldMetadata
- All Superinterfaces:
DocumentFieldMetadata
Provides methods to retrieve metadata specific to and shared by all Formula fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the formula expression of the given Formula field.Retrieves the return type of the formula field.<T extends DocumentFormulaFieldTypeMetadata>
TgetFormulaTypeMetadata(Class<T> formulaMetadataClass) Retrieves a subclass ofDocumentFormulaFieldTypeMetadata.Retrieves theDocumentFormulaFieldMissingValueBehaviorTypeof the given formula field.Methods inherited from interface com.veeva.vault.sdk.api.document.DocumentFieldMetadata
getDocumentFieldMetadataType, getHelpContent, getLabel, getName, getSourceType, getTypedDocumentFieldMetadata, getValueType, isActive, isCopyField, isEditable, isFacetable, isQueryable, isRequired, isShared, isVisible
-
Method Details
-
getFormulaExpression
DocumentFormulaFieldExpressionMetadata getFormulaExpression()Retrieves the formula expression of the given Formula field.- Returns:
- the formula expression of the field
-
getFormulaFieldType
DocumentFormulaFieldType getFormulaFieldType()Retrieves the return type of the formula field. The return type is represented by theDocumentFormulaFieldTypeenum, which includes values such asDocumentFormulaFieldType.BOOLEAN,DocumentFormulaFieldType.DATE,DocumentFormulaFieldType.DATETIME,DocumentFormulaFieldType.NUMBER, andDocumentFormulaFieldType.TEXT.- Returns:
- the
DocumentFormulaFieldTypeof the formula field
-
getFormulaTypeMetadata
<T extends DocumentFormulaFieldTypeMetadata> T getFormulaTypeMetadata(Class<T> formulaMetadataClass) Retrieves a subclass ofDocumentFormulaFieldTypeMetadata. For example,DocumentFormulaTextFieldMetadata. This allows you to fetch the formula type field attributes of the given formula field.- Parameters:
formulaMetadataClass- a subclass ofDocumentFormulaFieldTypeMetadata. For example,DocumentFormulaTextFieldMetadata.- Returns:
- A subclass of
DocumentFormulaFieldTypeMetadataof the formula field
-
getMissingFieldValueBehaviorType
DocumentFormulaFieldMissingValueBehaviorType getMissingFieldValueBehaviorType()Retrieves theDocumentFormulaFieldMissingValueBehaviorTypeof the given formula field. For example,DocumentFormulaFieldMissingValueBehaviorType.EMPTY.- Returns:
- the
DocumentFormulaFieldMissingValueBehaviorTypeof the field
-