Class SourceId


  • public final class SourceId
    extends Enum
    Used in the logSource methods of the Session class to specify the type of source code.

    This class is fully thread-safe.

    • Field Detail

      • Html

        public static final SourceId Html
        Instructs the logSource methods of the Session class to choose syntax highlighting for HTML.
      • JavaScript

        public static final SourceId JavaScript
        Instructs the logSource methods of the Session class to choose syntax highlighting for JavaScript.
      • VbScript

        public static final SourceId VbScript
        Instructs the logSource methods of the Session class to choose syntax highlighting for VBScript.
      • Perl

        public static final SourceId Perl
        Instructs the logSource methods of the Session class to choose syntax highlighting for Perl.
      • Sql

        public static final SourceId Sql
        Instructs the logSource methods of the Session class to choose syntax highlighting for SQL.
      • Ini

        public static final SourceId Ini
        Instructs the logSource methods of the Session class to choose syntax highlighting for INI files.
      • Python

        public static final SourceId Python
        Instructs the logSource methods of the Session class to choose syntax highlighting for Python.
      • Xml

        public static final SourceId Xml
        Instructs the logSource methods of the Session class to choose syntax highlighting for XML.
    • Method Detail

      • toString

        public String toString()
        Overridden. Creates and returns a string representation of this object.
        Overrides:
        toString in class Enum
        Returns:
        A string representation of this object
      • toViewerId

        public ViewerId toViewerId()
        Returns the related viewer ID for this object.
        Returns:
        The related viewer ID