diff options
author | j-james | 2022-11-27 11:33:28 +0000 |
---|---|---|
committer | j-james | 2022-11-27 11:33:28 +0000 |
commit | f68781603c7c77ac62d90c224e171c31064b50a6 (patch) | |
tree | 951812d4c6c0bc55836cfd86d55173301dc5829b /src/main/model/html/Node.java | |
parent | 937412a1cddd18d522c3e2880b3894bad22fcefd (diff) |
Refactor Node into html package
Diffstat (limited to 'src/main/model/html/Node.java')
-rw-r--r-- | src/main/model/html/Node.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/model/html/Node.java b/src/main/model/html/Node.java new file mode 100644 index 0000000..3284b3c --- /dev/null +++ b/src/main/model/html/Node.java @@ -0,0 +1,14 @@ +package model.html; + +import org.json.JSONObject; + +/** + * This Node represents an abstract relationship between ElementNode and TextNode. + * It's extremely helpful / necessary for Lists of arbitrary ElementNodes/TextNodes. + */ +public interface Node { + // Return a representation of the Node. Useful for debugging. + public String getData(); + + public JSONObject serialize(); +} |