|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.archive.crawler.settings.refinements.TimespanCriteria
public class TimespanCriteria
A refinement criteria that checks if a URI is requested within a specific time frame.
The timeframe's resolution is minutes and always operates in 24h GMT. The format ishhmm, exmaples:
1200 for noon GMT
1805 for 5 minutes past six in the afternoon GMT.
| Constructor Summary | |
|---|---|
TimespanCriteria(java.lang.String from,
java.lang.String to)
Create a new instance of TimespanCriteria. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDescription()
Returns a description of the Criteria's current settings. |
java.lang.String |
getFrom()
Get the beginning of the time frame to check against. |
java.lang.String |
getName()
Returns the name of the Criteria type. |
java.lang.String |
getTo()
Get the end of the time frame to check against. |
boolean |
isWithinRefinementBounds(UURI uri)
Check if a uri is within the bounds of this criteria. |
void |
setFrom(java.lang.String from)
Set the beginning of the time frame to check against. |
void |
setTo(java.lang.String to)
Set the end of the time frame to check against. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimespanCriteria(java.lang.String from,
java.lang.String to)
throws java.text.ParseException
from - start of the time frame (inclusive).to - end of the time frame (inclusive).
java.text.ParseException| Method Detail |
|---|
public boolean isWithinRefinementBounds(UURI uri)
Criteria
isWithinRefinementBounds in interface Criteriauri - the UURI to check.
public java.lang.String getFrom()
public void setFrom(java.lang.String from)
throws java.text.ParseException
from - The from to set.
java.text.ParseExceptionpublic java.lang.String getTo()
public void setTo(java.lang.String to)
throws java.text.ParseException
to - The to to set.
java.text.ParseExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String getName()
Criteria
getName in interface Criteriapublic java.lang.String getDescription()
Criteria
getDescription in interface Criteria
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||