Package com.veeva.vault.sdk.api.document
Interface DocumentFieldMetadata
- All Known Subinterfaces:
DocumentBooleanFieldMetadata,DocumentComponentFieldMetadata,DocumentDateFieldMetadata,DocumentDateTimeFieldMetadata,DocumentFormulaFieldMetadata,DocumentIdFieldMetadata,DocumentLookupFieldMetadata,DocumentNumberFieldMetadata,DocumentObjectReferenceFieldMetadata,DocumentPicklistFieldMetadata,DocumentRoleFieldMetadata,DocumentTextFieldMetadata,DocumentUrlFieldMetadata
public interface DocumentFieldMetadata
Provides methods to retrieve common metadata on the specified document field.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theDocumentFieldMetadataTypeof the given document field.Retrieves the help content of the given document field.getLabel()Retrieves the label value, in the current user's language, of the given document field.getName()Retrieves the name of the given document field.Retrieves theSourceTypeof the given object field.<T extends DocumentFieldMetadata>
TgetTypedDocumentFieldMetadata(Class<T> metadataClass) Retrieves a subclass ofDocumentFieldMetadata.Retrieves theValueTypeof the given document field.booleanisActive()Retrieves the active status of the given document field.booleanRetrieves whether the given field is a copy field.booleanRetrieves the editability of the given document field for the current user.booleanRetrieves whether the given object field is facetable.booleanRetrieves whether the given document field is queryable by VQL for the current user.booleanRetrieves the required status of the given document field.booleanisShared()Retrieves the shared status of the given document field.booleanRetrieves the visibility of the given document field for the current user.
-
Method Details
-
getName
String getName()Retrieves the name of the given document field. For example, "name__v".- Returns:
- the non-null field name
-
getLabel
String getLabel()Retrieves the label value, in the current user's language, of the given document field. For example, "Name".- Returns:
- the label value of the field
-
getHelpContent
String getHelpContent()Retrieves the help content of the given document field. This help content appears in the Vault UI to assist users in creating documents. For example, "Enter the most recent result."- Returns:
- help content specified on the field
-
getSourceType
SourceType getSourceType()Retrieves theSourceTypeof the given object field. For example,SourceType.STANDARD.- Returns:
- the
SourceTypeof the field - See Also:
-
getDocumentFieldMetadataType
DocumentFieldMetadataType getDocumentFieldMetadataType()Retrieves theDocumentFieldMetadataTypeof the given document field. For example,DocumentFieldMetadataType.TEXT.- Returns:
- the DocumentFieldMetadataType of the field
-
getTypedDocumentFieldMetadata
Retrieves a subclass ofDocumentFieldMetadata. This allows you to fetch the type field attributes of the given object field. For example,DocumentTextFieldMetadata.- Returns:
- a subclass of
DocumentFieldMetadatafor the field
-
getValueType
ValueType getValueType()Retrieves theValueTypeof the given document field. For example,ValueType.STRING.- Returns:
- the ValueType of the field
-
isActive
boolean isActive()Retrieves the active status of the given document field.- Returns:
- true if the field is active, otherwise false
-
isCopyField
boolean isCopyField()Retrieves whether the given field is a copy field.- Returns:
- true if the field is a copy field, otherwise false
-
isEditable
boolean isEditable()Retrieves the editability of the given document field for the current user.- Returns:
- true if the current user can edit this field, otherwise false
-
isVisible
boolean isVisible()Retrieves the visibility of the given document field for the current user.- Returns:
- true if the current user can view this field, otherwise false
-
isQueryable
boolean isQueryable()Retrieves whether the given document field is queryable by VQL for the current user.- Returns:
- true if the current user can query for this field, otherwise false
-
isRequired
boolean isRequired()Retrieves the required status of the given document field.- Returns:
- true if the field is required, otherwise false
-
isFacetable
boolean isFacetable()Retrieves whether the given object field is facetable. When true, the field is available for use as a faceted filter in the Vault UI.- Returns:
- true if the field is facetable, otherwise false
-