com.ibm.xsp.exception
Class XSPExceptionUtil

java.lang.Object
  extended by com.ibm.xsp.exception.XSPExceptionUtil

public final class XSPExceptionUtil
extends java.lang.Object

XSP runtime exception utilities that provide error messages


Constructor Summary
XSPExceptionUtil()
           
 
Method Summary
static javax.faces.component.UIComponent getErrorComponent(java.lang.Object binding)
          Gets the component that caused the error from ValueBinding or Methoding Binding
static java.lang.String getErrorComponentId(java.lang.Object binding)
          Gets the component id from component that caused error
static java.lang.String getErrorPropertyId(java.lang.Object binding)
          Gets the property id from component that caused error
static java.lang.String getErrorText(java.lang.Object binding)
          Gets the error text from a ValueBinding or Method Binding
static java.lang.String getPropertyFromSourceId(java.lang.String sourceReferenceId)
          Helper method to extract the property name from a source id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSPExceptionUtil

public XSPExceptionUtil()
Method Detail

getErrorText

public static java.lang.String getErrorText(java.lang.Object binding)
Gets the error text from a ValueBinding or Method Binding

Returns:
Error text

getErrorComponent

public static javax.faces.component.UIComponent getErrorComponent(java.lang.Object binding)
Gets the component that caused the error from ValueBinding or Methoding Binding

Returns:
component that has caused error

getErrorComponentId

public static java.lang.String getErrorComponentId(java.lang.Object binding)
Gets the component id from component that caused error

Returns:
component Id

getErrorPropertyId

public static java.lang.String getErrorPropertyId(java.lang.Object binding)
Gets the property id from component that caused error

Returns:
property Id

getPropertyFromSourceId

public static java.lang.String getPropertyFromSourceId(java.lang.String sourceReferenceId)
Helper method to extract the property name from a source id.

Returns:
property name