package org.wamblee.crawler;
/**
- *
+ * Represents the type of a page determining how the HTML should be transformed into
+ * XML.
*/
public class PageType {
+ /**
+ * Type string.
+ */
private String _type;
+ /**
+ * Constructs the type.
+ * @param aType Type.
+ */
public PageType(String aType) {
_type = aType;
}
+ /**
+ * Gets the type.
+ * @return Type.
+ */
public String getType() {
return _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());
+ }
}