Package com.microstrategy.web.beans
Class WebBeanUtils
- java.lang.Object
-
- com.microstrategy.web.beans.WebBeanUtils
-
public class WebBeanUtils extends java.lang.ObjectThis class provides some utility functions for the bean package.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebBeanUtils.SimpleRequestKeys
-
Field Summary
Fields Modifier and Type Field Description static intFIELD_NAME_SEPARATOR_CHAR
-
Constructor Summary
Constructors Constructor Description WebBeanUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectBeangetObjectBean(WebObjectInfo _target, WebBean parentBean)static java.lang.StringgetObjectTypeName(BeanContext beanContext, int type, int subType)static java.lang.StringgetObjectTypeName(BeanContext beanContext, WebObjectInfo obj)Returns a localized string with the object type namestatic java.lang.ObjectgetStaticFieldValue(java.lang.String fieldName)Returns the integer value of a public static field of a class or interface.static intgetStaticFieldValueInt(java.lang.String fieldName)Returns the integer value of a public static field of a class or interface.
-
-
-
Field Detail
-
FIELD_NAME_SEPARATOR_CHAR
public static final int FIELD_NAME_SEPARATOR_CHAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getStaticFieldValueInt
public static int getStaticFieldValueInt(java.lang.String fieldName) throws WebBeanExceptionReturns 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 WebBeanExceptionReturns 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.
-
getObjectBean
public static ObjectBean getObjectBean(WebObjectInfo _target, WebBean parentBean) throws WebBeanException
- Throws:
WebBeanException- Since:
- MicroStrategy Web 8.0.0
-
getObjectTypeName
public static java.lang.String getObjectTypeName(BeanContext beanContext, WebObjectInfo obj)
Returns a localized string with the object type name- Parameters:
beanContext- BeanContextobj- 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
-
-