![JAR search and dependency download from the Maven repository](/logo.png)
com.viaoa.object.OAObjectEnumDelegate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oa-core Show documentation
Show all versions of oa-core Show documentation
Object Automation library
The newest version!
package com.viaoa.object;
import com.viaoa.hub.Hub;
public class OAObjectEnumDelegate {
/**
* Get name/value pairs (enum) for a property.
*/
public static Hub getNameValues(Class clazz, String propertyName) {
OAObjectInfo oi = OAObjectInfoDelegate.getOAObjectInfo(clazz);
OAPropertyInfo pi = oi.getPropertyInfo(propertyName);
if (pi == null) {
return null;
}
return pi.getNameValues();
}
/**
* Get the display name for name/value pairs (enum) for a property.
*/
public static Hub getDisplayNameValues(Class clazz, String propertyName) {
OAObjectInfo oi = OAObjectInfoDelegate.getOAObjectInfo(clazz);
OAPropertyInfo pi = oi.getPropertyInfo(propertyName);
if (pi == null) {
return null;
}
return pi.getDisplayNameValues();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy