diff options
Diffstat (limited to 'src/main/model/html/TextNode.java')
-rw-r--r-- | src/main/model/html/TextNode.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/model/html/TextNode.java b/src/main/model/html/TextNode.java new file mode 100644 index 0000000..634bf3b --- /dev/null +++ b/src/main/model/html/TextNode.java @@ -0,0 +1,19 @@ +package model.html; + +import model.util.Node; + +public class TextNode implements Node { + private String text = ""; + + public String getText() { + return this.text; + } + + public TextNode(String text) { + this.text = text; + } + + public String getData() { + return getText(); + } +} |