Class WebBeanUtils


  • public class WebBeanUtils
    extends java.lang.Object
    This class provides some utility functions for the bean package.
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Field Detail

      • FIELD_NAME_SEPARATOR_CHAR

        public static final int FIELD_NAME_SEPARATOR_CHAR
        See Also:
        Constant Field Values
    • Constructor Detail

      • WebBeanUtils

        public WebBeanUtils()
    • Method Detail

      • getStaticFieldValueInt

        public static int getStaticFieldValueInt​(java.lang.String fieldName)
                                          throws WebBeanException
        Returns the integer value of a public static field of a class or interface.
        Parameters:
        fieldName - the fully qualified name for a public static field.
        Returns:
        the value of the static field of type int.
        Throws:
        WebBeanException - thrown if any error occurs.
      • getStaticFieldValue

        public static java.lang.Object getStaticFieldValue​(java.lang.String fieldName)
                                                    throws WebBeanException
        Returns the integer value of a public static field of a class or interface.
        Parameters:
        fieldName - the fully qualified name for a public static field.
        Returns:
        the value of the static field
        Throws:
        WebBeanException - thrown if any error occurs.
      • getObjectTypeName

        public static java.lang.String getObjectTypeName​(BeanContext beanContext,
                                                         WebObjectInfo obj)
        Returns a localized string with the object type name
        Parameters:
        beanContext - BeanContext
        obj - WebObjectInfo
        Returns:
        String
        Since:
        MicroStrategy Web 9.0.0
      • getObjectTypeName

        public static java.lang.String getObjectTypeName​(BeanContext beanContext,
                                                         int type,
                                                         int subType)
        Since:
        MicroStrategy Web 9.0.0