|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxsmeral.semnet.crawler.model.EntityDocument
public class EntityDocument
Container for documents retrieved by HTMLCrawler
, passed to a scraper (wrapper).
Contains base URL for resolving links, absolute URL of this document,
a descriptor of the contained entity and a TagNode containing parsed
document tree.
Constructor Summary | |
---|---|
EntityDocument()
|
|
EntityDocument(String baseURL,
String url,
EntityDescriptor entDesc,
TagNode document)
Initializes all fields |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getBaseURL()
Returns the base URL of the host, where this document originated. |
TagNode |
getDocument()
Returns the TagNode (HtmlCleaner) containing the document tree. |
EntityDescriptor |
getEntityDescriptor()
Returns the entity descriptor describing this document. |
String |
getUrl()
Returns absolute URL of the document. |
int |
hashCode()
|
void |
setBaseURL(String baseURL)
|
void |
setDocument(TagNode document)
|
void |
setEntityDescriptor(EntityDescriptor entDesc)
|
void |
setUrl(String url)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityDocument()
public EntityDocument(String baseURL, String url, EntityDescriptor entDesc, TagNode document)
Method Detail |
---|
public TagNode getDocument()
public void setDocument(TagNode document)
public String getBaseURL()
public void setBaseURL(String baseURL)
public String getUrl()
public void setUrl(String url)
public EntityDescriptor getEntityDescriptor()
public void setEntityDescriptor(EntityDescriptor entDesc)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |