git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed XSLT to XslTransformer.
[utils]
/
crawler
/
basic
/
src
/
org
/
wamblee
/
crawler
/
PageType.java
diff --git
a/crawler/basic/src/org/wamblee/crawler/PageType.java
b/crawler/basic/src/org/wamblee/crawler/PageType.java
index 9d2af30b74455c0f844060b7b80d375a3d0aed22..8320c0bea732142a40c0df81e3cbec549e27f2a9 100644
(file)
--- a/
crawler/basic/src/org/wamblee/crawler/PageType.java
+++ b/
crawler/basic/src/org/wamblee/crawler/PageType.java
@@
-17,16
+17,28
@@
package org.wamblee.crawler;
/**
package org.wamblee.crawler;
/**
- *
+ * Represents the type of a page determining how the HTML should be transformed into
+ * XML.
*/
public class PageType {
*/
public class PageType {
+ /**
+ * Type string.
+ */
private String _type;
private String _type;
+ /**
+ * Constructs the type.
+ * @param aType Type.
+ */
public PageType(String aType) {
_type = aType;
}
public PageType(String aType) {
_type = aType;
}
+ /**
+ * Gets the type.
+ * @return Type.
+ */
public String getType() {
return _type;
}
public String getType() {
return _type;
}
@@
-38,4
+50,15
@@
public class PageType {
public String toString() {
return "PageType(type='" + _type + "')";
}
public String toString() {
return "PageType(type='" + _type + "')";
}
+
+ /* (non-Javadoc)
+ * @see java.lang.Object#equals(java.lang.Object)
+ */
+ @Override
+ public boolean equals(Object obj) {
+ if (!(obj instanceof PageType)) {
+ return false;
+ }
+ return toString().equals(obj.toString());
+ }
}
}