java.lang.Object
org.eclipse.lemminx.extensions.dtd.utils.DTDUtils

public class DTDUtils extends Object
DTD utilities.
Author:
Angelo ZERR
  • Constructor Details

    • DTDUtils

      public DTDUtils()
  • Method Details

    • searchDTDTargetElementDecl

      public static void searchDTDTargetElementDecl(DTDDeclParameter originNameNode, boolean matchName, Consumer<DTDDeclParameter> collector)
      Collect invalid input: '<!'ELEMENT target name declared in the DTD according the origin name node.
      Parameters:
      originNameNode - the origin name node (invalid input: '<'ex :invalid input: '<!'ATTLIST name).
      matchName - true if the origin name must match the value of target name and false otherwise.
      collector - collector to collect DTD invalid input: '<!'ELEMENT target name.
    • searchDTDOriginElementDecls

      public static void searchDTDOriginElementDecls(DTDDeclNode targetNode, BiConsumer<DTDDeclParameter,DTDDeclParameter> collector, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
      Search origin DTD node (invalid input: '<!'ATTRLIST element-name) or (child invalid input: '<!'ELEMENT element-name (child)) from the given target DTD node (invalid input: '<!'ELEMENT element-name.
      Parameters:
      targetNode - the referenced node
      collector - the collector to collect reference between an origin and target attribute.
    • createFilesChangedTracker

      public static FilesChangedTracker createFilesChangedTracker(org.apache.xerces.impl.dtd.DTDGrammar grammar)