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 <!ELEMENT target name declared in the DTD according the origin name node.
      Parameters:
      originNameNode - the origin name node (<ex :<!ATTLIST name).
      matchName - true if the origin name must match the value of target name and false otherwise.
      collector - collector to collect DTD <!ELEMENT target name.
    • searchDTDOriginElementDecls

      public static void searchDTDOriginElementDecls(DTDDeclNode targetNode, BiConsumer<DTDDeclParameter,DTDDeclParameter> collector, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
      Search origin DTD node (<!ATTRLIST element-name) or (child <!ELEMENT element-name (child)) from the given target DTD node (<!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)