Class ParsedDoctype

java.lang.Object
jodd.lagarto.ParsedDoctype
All Implemented Interfaces:
Doctype

class ParsedDoctype extends Object implements Doctype
Implementation of Doctype used during parsing. Only one instance is created per parsing and it is reused.
  • Field Details

  • Constructor Details

    • ParsedDoctype

      ParsedDoctype()
  • Method Details

    • reset

      public void reset()
    • getName

      public CharSequence getName()
      Returns DOCTYPE name. Returns null if name was not specified (due to parsing error).
      Specified by:
      getName in interface Doctype
    • isQuirksMode

      public boolean isQuirksMode()
      Returns true if quirks mode was forced.
      Specified by:
      isQuirksMode in interface Doctype
    • getPublicIdentifier

      public CharSequence getPublicIdentifier()
      Returns public identifier, if specified. Returns null if not specified, DOCTYPE is SYSTEM or there was a parsing error.
      Specified by:
      getPublicIdentifier in interface Doctype
    • getSystemIdentifier

      public CharSequence getSystemIdentifier()
      Returns system identifier, if specified. Returns null if not specified or there was a parsing error.
      Specified by:
      getSystemIdentifier in interface Doctype