Class DTDAttlistDecl

All Implemented Interfaces:
DOMRange, Node

public class DTDAttlistDecl extends DTDDeclNode
DTD Attribute List declaration <!ATTLIST
  • Field Details

    • attributeName

      public DTDDeclParameter attributeName
      Format: <!ATTLIST element-name attribute-name attribute-type "attribute-value>"" or
       <!ATTLIST element-name 
                               attribute-name1 attribute-type1 "attribute-value1"
                               attribute-name2 attribute-type2 "attribute-value2"
                               ..
       
      >
    • attributeType

      public DTDDeclParameter attributeType
    • attributeValue

      public DTDDeclParameter attributeValue
  • Constructor Details

    • DTDAttlistDecl

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

    • getNodeName

      public String getNodeName()
      Specified by:
      getNodeName in interface Node
      Overrides:
      getNodeName in class DTDDeclNode
    • getElementName

      public String getElementName()
      Returns the element name
      Returns:
      the element name
    • getAttributeName

      public String getAttributeName()
      Returns the attribute name
      Returns:
      the attribute name
    • setAttributeName

      public void setAttributeName(int start, int end)
    • getAttributeType

      public String getAttributeType()
    • setAttributeType

      public void setAttributeType(int start, int end)
    • getAttributeValue

      public String getAttributeValue()
    • setAttributeValue

      public void setAttributeValue(int start, int end)
    • getNodeType

      public short getNodeType()
      Specified by:
      getNodeType in interface Node
      Overrides:
      getNodeType in class DTDDeclNode
    • getInternalChildren

      public List<DTDAttlistDecl> getInternalChildren()
    • isRootAttlist

      public boolean isRootAttlist()
      Returns true if this node's parent is the Doctype node. This is used because an Attlist declaration can have multiple attribute declarations within a tag that are each represented by this class.