psdi.common.erm

Class ERMAttributeError

  • java.lang.Object
    • psdi.common.erm.ERMAttributeError
  • All Implemented Interfaces:
    java.io.Serializable


    public class ERMAttributeError
    extends java.lang.Object
    implements java.io.Serializable
    This class is used to associate an error (Exception) with an ERMAttribute. This error can be associated with an exception so when the MXException is thrown back the the UI framework, the UI framework can associate the error with a particular input. (As long as the UI framework supplied the ERMEntity of the ERMAttribute) As of now the UI framework only supports the association with MXRequiredField exceptions.
    See Also:
    Serialized Form
    • Constructor Detail

      • ERMAttributeError

        public ERMAttributeError(ERMAttribute attribute,
                                 int mboIndex,
                                 ERMAttributeError.ErrorType errorType)
        Constructor taking in the ERMAttribute associated with the error and the index of the mbo the error occurred (basically which mbo in the MboSet) And also take the type of error. See enum ErrorType for possible error types
        Parameters:
        attribute - The ERMAttribute associated with the error
        mboIndex - The index of the mbo within its MboSet
        errorType - The type of error it is
    • Method Detail

      • getAttribute

        public ERMAttribute getAttribute()
        Returns the ERMAttribute associated with the error.
        Returns:
        ERMAttribute associated with the error
      • getMboIndex

        public int getMboIndex()
        Returns the index of the mbo (in the MboSet's Mbo vector) that the error occurred.
        Returns:
        int the index of the mbo that the error occurred.
      • getErrorType

        public ERMAttributeError.ErrorType getErrorType()
        Returns the ErrorType of error that occurred.
        Returns:
        ErrorType the type of error
      • setParentIndex

        public void setParentIndex(ERMEntity ermEntity,
                                   int mboVectorIndex)
      • getParentIndexes

        public java.util.LinkedHashMap getParentIndexes()
      • equals

        public boolean equals(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • invalidate

        public void invalidate()
      • setAttribute

        public void setAttribute(ERMAttribute attribute)
        Parameters:
        sets - the ERMAttribute of the ERMAttributeError