Class DTDDeclNode

java.lang.Object
org.eclipse.lemminx.dom.DOMNode
org.eclipse.lemminx.dom.DTDDeclNode
All Implemented Interfaces:
DOMRange, Node
Direct Known Subclasses:
DOMDocumentType, DTDAttlistDecl, DTDElementDecl, DTDEntityDecl, DTDNotationDecl

public class DTDDeclNode extends DOMNode
DTDNode
  • Field Details

    • unrecognized

      public DTDDeclParameter unrecognized
      This class is the base for all declaration nodes for DTD's. It can also be used to represent an undefined tag, meaning it is not any of: ELEMENT, ATTLIST, ENTITY, or NOTATION
    • declType

      public DTDDeclParameter declType
  • Constructor Details

    • DTDDeclNode

      public DTDDeclNode(int start, int end)
  • Method Details

    • getName

      public String getName()
    • getNameParameter

      public DTDDeclParameter getNameParameter()
    • getParameterAtIndex

      protected DTDDeclParameter getParameterAtIndex(int index)
    • setName

      public void setName(int start, int end)
    • isInNameParameter

      public boolean isInNameParameter(int offset)
    • getOwnerDocType

      public DOMDocumentType getOwnerDocType()
    • getNodeName

      public String getNodeName()
    • getNodeType

      public short getNodeType()
    • getUnrecognized

      public String getUnrecognized()
    • setUnrecognized

      public void setUnrecognized(int start, int end)
    • addNewParameter

      public DTDDeclParameter addNewParameter(int start, int end)
    • updateLastParameterEnd

      public void updateLastParameterEnd(int end)
    • getParameters

      public List<DTDDeclParameter> getParameters()
    • setDeclType

      public void setDeclType(int start, int end)
    • getDeclType

      public String getDeclType()
    • getReferencedElementNameAt

      public DTDDeclParameter getReferencedElementNameAt(int offset)
      Returns the parameter name which references a DTD element declaration (<!ELEMENT) at the given offset and null otherwise.

      <!ATTLIST element-name ... will return position of 'element-name' which references the <!ELEMENT element-name

      Parameters:
      offset - the offset
      Returns:
      the parameter name which references a DTD element declaration (<!ELEMENT) at the given offset and null otherwise.