|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxsmeral.semnet.crawler.model.EntityDescriptor
@XStreamConverter(value=EntityDescConverter.class) public class EntityDescriptor
Part of the configuration of HTMLCrawler
, describes one entity type of a host.
Contains:
HostDescriptor
is kept.
The hashCode is pre-computed for fast map lookup.
Constructor Summary | |
---|---|
EntityDescriptor(Pattern urlPattern,
int updateFreq,
Collection<Configuration> scrapers,
int weight)
Initializes all fields |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
HostDescriptor |
getHostDesc()
Returns the owning HostDescriptor. |
Collection<Configuration> |
getScrapers()
Returns the scraper classes that processes this entity type. |
int |
getUpdateFreq()
Returns the update frequency for this entity type, in seconds. |
Pattern |
getUrlPattern()
Returns the URL pattern that identifies this entity type. |
int |
getWeight()
Returns the "weight" of this entity, a measue of preference. |
int |
hashCode()
Returns (pre-computed) hash code. |
void |
setHostDesc(HostDescriptor hostDesc)
Sets the owning HostDescriptor. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EntityDescriptor(Pattern urlPattern, int updateFreq, Collection<Configuration> scrapers, int weight)
Method Detail |
---|
public Collection<Configuration> getScrapers()
public Pattern getUrlPattern()
public int getUpdateFreq()
public HostDescriptor getHostDesc()
public void setHostDesc(HostDescriptor hostDesc)
public int getWeight()
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 |