Package Torello.HTML

Class SubSectionVectorException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SubSectionVectorException
    extends java.lang.RuntimeException
    In order for a Vector<SubSection> to properly work, its contents need to be sorted, and they may not overlap - so this exception is thrown if a SubSection-Vector does not obey these specifications.

    NOTE: The class InnerTagPeekInclusive and TagNodePeekInclusive will generate properly ordered / sorted Vector's, which means that if a Vector was created using those two classes, it is likely to adhere to at least the first of those two requirements.

    Generally, such Vector's are useful when replacing the rows in a table, or the items in an ordered or unodered list, and naturally, these items will not be overlapping unless the user has submitted invalid HTML in the first place.

    The class ReplaceNodes offers a tremendous efficiency-improvement over using the HTML Iterators when updated a long list of HTML sections like rows, columns, list items, or any type of element, for that matter. The Iterator 'set' method invariable involve shifting the entire list of nodes in an HTML-Vector each and every time that an 'insert' or 'set' method is invoked. While using a variant of the Peek search classes to obtain a list of SubSection, modifying those sections individually, and then rebuilding this can save quite a bit of time wasted on shifting lists.
    See Also:
    Serialized Form


    • Field Summary

       
      Serializable ID
      Modifier and Type Field
      static long serialVersionUID
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        🡇    
        public static final long serialVersionUID
        This fulfils the SerialVersion UID requirement for all classes that implement Java's interface java.io.Serializable. Using the Serializable Implementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.

        Note that Java's java.lang.Exception and java.lang.Error classes implement the Serializable interface, and a warning-free build expects this field be defined here.
        See Also:
        Constant Field Values
        Code:
        Exact Field Declaration Expression:
        public static final long serialVersionUID = 1;
        
    • Constructor Detail

      • SubSectionVectorException

        🡅    
        public SubSectionVectorException​(java.lang.String message)
        Constructs a SubSectionVectorException with the specified detail message.
        Parameters:
        message - the detail message.