Package com.veeva.vault.sdk.api.document
Interface DocumentLookupFieldMetadata
- All Superinterfaces:
DocumentFieldMetadata
Provides methods to retrieve common metadata on lookup fields.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theDocumentLookupFieldTypeof the given lookup field.<T extends DocumentLookupFieldTypeMetadata>
TgetLookupTypeMetadata(Class<T> lookupMetadataClass) Retrieves a subclass ofDocumentLookupFieldTypeMetadataso you can fetch the lookup type field attributes of the given lookup field.Retrieves the source field of the given lookup field.Retrieves the source object of the given lookup 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
-
getSourceField
String getSourceField()Retrieves the source field of the given lookup field.- Returns:
- the source field that this field is looking up. For example, "source_field__c".
-
getSourceObjectName
String getSourceObjectName()Retrieves the source object of the given lookup field.- Returns:
- the source object that this field is looking up. For example, "source_object__c".
-
getLookupFieldType
DocumentLookupFieldType getLookupFieldType()Retrieves theDocumentLookupFieldTypeof the given lookup field.- Returns:
- the
DocumentLookupFieldTypeof the field. For example,DocumentLookupFieldType.PICKLIST.
-
getLookupTypeMetadata
Retrieves a subclass ofDocumentLookupFieldTypeMetadataso you can fetch the lookup type field attributes of the given lookup field.- Parameters:
lookupMetadataClass- a subclass ofDocumentLookupFieldTypeMetadata. For example, ObjectLookupTextFieldMetadata.class.- Returns:
- A subclass of
DocumentLookupFieldTypeMetadataof the field. For example,DocumentLookupPicklistFieldMetadata.
-