From 2afeec11e70577d9b92b1e73bdc23869c46a85ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 9 Mar 2009 14:40:38 +0100 Subject: [PATCH] Add page container. --- src/net/pterodactylus/arachne/core/Page.java | 51 ++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 src/net/pterodactylus/arachne/core/Page.java diff --git a/src/net/pterodactylus/arachne/core/Page.java b/src/net/pterodactylus/arachne/core/Page.java new file mode 100644 index 0000000..8c4ae44 --- /dev/null +++ b/src/net/pterodactylus/arachne/core/Page.java @@ -0,0 +1,51 @@ +/* + * © 2009 David ‘Bombe’ Roden + */ +package net.pterodactylus.arachne.core; + +/** + * Container for a page. A page consists of a {@link Site} and a path within the + * site. + * + * @author David ‘Bombe’ Roden + */ +public class Page { + + /** The site of the page. */ + private final Site site; + + /** The path of the page. */ + private final String path; + + /** + * Creates a new page. + * + * @param site + * The site of the page + * @param path + * The path of the page + */ + public Page(Site site, String path) { + this.site = site; + this.path = path; + } + + /** + * Returns the site of the page. + * + * @return The page’s site + */ + public Site getSite() { + return site; + } + + /** + * Returns the path of the page within the site. + * + * @return The page’s path + */ + public String getPath() { + return path; + } + +} -- 2.7.4