Class ExErrItem


  • public class ExErrItem
    extends java.lang.Object
    A class to represents the elements the ExFull class.

    Objects of this class are error messages, consisting of an associated resource property and an error message text property.

    Objects of this class are considered resolved whenever its error message text property has been loaded.

    • Constructor Summary

      Constructors 
      Constructor Description
      ExErrItem()
      Instantiate a ExErrItem object -- the default c'tor.
      ExErrItem​(int nNewResId)
      Instantiate a ExErrItem object -- the ResId c'tor.
      ExErrItem​(int nNewResId, java.lang.String sNewText)
      Instantiate a ExErrItem object -- the ResId, String c'tor.
      ExErrItem​(ExErrItem oSource)
      Instantiate a ExErrItem object -- the copy c'tor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int resId()
      Get this object's resource property.
      void resId​(int nNewResId)
      Set this object's resource property to the given resource.
      void resolve()
      Resolve (load) the resource text associated with this object's resource property to this object's error message text property, if not already resolved.
      java.lang.String text()
      Get this object's error message text property.
      void text​(java.lang.String sNewText)
      Set this object's error message text property to the given string.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExErrItem

        public ExErrItem()
        Instantiate a ExErrItem object -- the default c'tor.
      • ExErrItem

        public ExErrItem​(ExErrItem oSource)
        Instantiate a ExErrItem object -- the copy c'tor.
      • ExErrItem

        public ExErrItem​(int nNewResId)
        Instantiate a ExErrItem object -- the ResId c'tor.
        Parameters:
        nNewResId - - set this object's resource property to the given resource.
      • ExErrItem

        public ExErrItem​(int nNewResId,
                         java.lang.String sNewText)
        Instantiate a ExErrItem object -- the ResId, String c'tor.
        Parameters:
        nNewResId - - set this object's resource property to the given resource.
        sNewText - - set this object's error message text property to the string provided. The ructed object is considered resolved.
    • Method Detail

      • resId

        public int resId()
        Get this object's resource property.
        Returns:
        the ResId property.
      • resId

        public void resId​(int nNewResId)
        Set this object's resource property to the given resource.
        Parameters:
        nNewResId - - the new resource property.
      • resolve

        public void resolve()
        Resolve (load) the resource text associated with this object's resource property to this object's error message text property, if not already resolved.
      • text

        public java.lang.String text()
        Get this object's error message text property.
        Returns:
        the error message text property.
      • text

        public void text​(java.lang.String sNewText)
        Set this object's error message text property to the given string.
        Parameters:
        sNewText - - the new error message text property.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object