Adam Lally wrote:
Hm, it doesn't look like that's possible. Seems like a missing API
feature. If you need it, please open a JIRA issue.
I think it's possible only through the low-level TypeSystem API:
LowLevelTypeSystem lts = aTypeSystem.getLowLevelTypeSystem();
return lts.ll_getStringSet(lts.ll_getCodeForType(aType));
Would be good to add to the "high-level" API too.
-Adam
A quick search turned up a static public method:
TypeSystemUtil.getAllowedValuesForType(Type aType, TypeSystem aTypeSystem)
This implements what Adam suggested above, but is in the public api
already I think.
The Javadoc does have a TODO - to make this a method on Type.
-Marshall