Get List of Values For Attribute Type with Java API
I’m trying to programmatically get the list of allowed values for attribute type using the java api. I would think this would be included in the standard java api, but I can’t seem to find it in the standard java api docs - (https://.collibra.com/docs/javav2/index.html). I can find the allowed values using the REST API. Am I missing something?
chrislynch
Posted 4 years ago · Edited 1 year ago·Last reply 4 years ago
1 comment
arthurburkhardt
·4 years ago · EditedYou cannot get them from the “AttributeType” interface, that is common to all attribute types.
You can only get them from the SingleValueListAttributeType and MultiValueListAttributeType subinterfaces.
In the java docs, you can click on “index” and you will quickly find all the related “getAllowedValues()” methods.