Class Dtd


  • public class Dtd
    extends java.lang.Object
    Contains all information of a DTD. That is the actual DTD and the line within the XML that it was located in before.
    Author:
    pastuschek
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.String> dtdContent  
      private int line  
    • Constructor Summary

      Constructors 
      Constructor Description
      Dtd()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getContent()
      Returns the content of the DTD.
      int getLine()
      Returns the line of the DTD.
      void setContent​(java.util.List<java.lang.String> content)
      Sets the content of the DTD.
      void setLine​(int line)
      Sets the line of the DTD.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dtdContent

        private java.util.List<java.lang.String> dtdContent
      • line

        private int line
    • Constructor Detail

      • Dtd

        public Dtd()
    • Method Detail

      • setContent

        public void setContent​(java.util.List<java.lang.String> content)
        Sets the content of the DTD.
        Parameters:
        content - A List of Strings with the DTD content.
      • setLine

        public void setLine​(int line)
        Sets the line of the DTD. This is the number of the line where the DTD shall start in the XML file.
        Parameters:
        line - An Integer with the line where the DTD began in its original document.
      • getContent

        public java.util.List<java.lang.String> getContent()
        Returns the content of the DTD.
        Returns:
        List of Strings with the DTD content.
      • getLine

        public int getLine()
        Returns the line of the DTD. This is the line in which the DTD began in its original file.
        Returns:
        Integer with the line number.