Assuming any user seeing this post , is aware of minimum Opentext Terminilogy , expecting this might help new and existing opentext developers , I'm posting this java method.
public static List<String> getValidValuesofStringProperty(AttributeGroupDefinition agdfn,
String propertyName) {
List<Attribute> catatrList=agdfn.getAttributes();
ArrayList<String> validValuesString=new ArrayList<String>();
for(Attribute catatr:catatrList){
String atrType=catatr.getType();
if(atrType.equalsIgnoreCase("String")){
StringAttribute strAtr=(StringAttribute) catatr;
List<String> validValues=strAtr.getValidValues();
if(validValues!=null){
if(!validValues.isEmpty() || validValues.size()>=1){
for(String s:validValues){
// System.out.println("Valid Value for " + strAtr.getDisplayName() + " is " + s);
validValuesString.add(s);
}
}
}
}
}
return validValuesString;
}