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 theDocumentFieldMetadataType
of 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 theSourceType
of the given object field.<T extends DocumentFieldMetadata>
TgetTypedDocumentFieldMetadata
(Class<T> metadataClass) Retrieves a subclass ofDocumentFieldMetadata
.Retrieves theValueType
of the given document field.boolean
isActive()
Retrieves the active status of the given document field.boolean
Retrieves whether the given field is a copy field.boolean
Retrieves the editability of the given document field for the current user.boolean
Retrieves whether the given object field is facetable.boolean
Retrieves whether the given document field is queryable by VQL for the current user.boolean
Retrieves the required status of the given document field.boolean
isShared()
Retrieves the shared status of the given document field.boolean
Retrieves 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 theSourceType
of the given object field. For example,SourceType.STANDARD
.- Returns:
- the
SourceType
of the field - See Also:
-
getDocumentFieldMetadataType
DocumentFieldMetadataType getDocumentFieldMetadataType()Retrieves theDocumentFieldMetadataType
of 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
DocumentFieldMetadata
for the field
-
getValueType
ValueType getValueType()Retrieves theValueType
of 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
-