aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/html/Node.java
blob: 5c3ea41c91b3451ebcc4ef256357efcf2cf1ec2a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();

    // EFFECTS: returns a serialized form of the data
    public JSONObject serialize();
}