Class Dtd
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.artifactModel.xml.Dtd
-
public class Dtd extends java.lang.ObjectContains 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>dtdContentprivate intline
-
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.intgetLine()Returns the line of the DTD.voidsetContent(java.util.List<java.lang.String> content)Sets the content of the DTD.voidsetLine(int line)Sets the line of the 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.
-
-