Package com.veeva.vault.sdk.api.document
Interface DocumentFormulaFieldMetadata
- All Superinterfaces:
DocumentFieldMetadata
Provides methods to retrieve common metadata on formula fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the formula expression of the given formula field.Retrieves theDocumentFormulaFieldTypeof the given 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 theDocumentFormulaFieldTypeof the given formula field. For example,DocumentFormulaFieldType.TEXT.- Returns:
- the
DocumentFormulaFieldTypeof the 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.class.- Returns:
- A subclass of
DocumentFormulaFieldTypeMetadataof the field
-
getMissingFieldValueBehaviorType
DocumentFormulaFieldMissingValueBehaviorType getMissingFieldValueBehaviorType()Retrieves theDocumentFormulaFieldMissingValueBehaviorTypeof the given formula field. For example,DocumentFormulaFieldMissingValueBehaviorType.EMPTY.- Returns:
- the
DocumentFormulaFieldMissingValueBehaviorTypeof the field
-