|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.types.resources.selectors.Date
public class Date
Date ResourceSelector. Based on the date FileSelector, with the most notable difference being the lack of support for the includedirs attribute. It is recommended that the effect of includeDirs = "false" be achieved for resources by enclosing a "dir" Type ResourceSelector and a Date ResourceSelector in an Or ResourceSelector.
Constructor Summary | |
---|---|
Date()
|
Method Summary | |
---|---|
java.lang.String |
getDatetime()
Get the date & time in String format. |
long |
getGranularity()
Get the timestamp granularity used by this ResourceSelector. |
long |
getMillis()
Get the date/time in ms. |
java.lang.String |
getPattern()
Get the pattern for use with the datetime attribute. |
TimeComparison |
getWhen()
Get the comparison mode. |
boolean |
isSelected(Resource r)
Return true if this Resource is selected. |
void |
setDateTime(java.lang.String s)
Set the date and time as a String. |
void |
setGranularity(long g)
Set the granularity to use for this ResourceSelector. |
void |
setMillis(long m)
Set the date/time in milliseconds since 1970. |
void |
setPattern(java.lang.String p)
Set the optional pattern to use with the datetime attribute. |
void |
setWhen(TimeComparison c)
Set the comparison mode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Date()
Method Detail |
---|
public void setMillis(long m)
m
- the number of millis.public long getMillis()
public void setDateTime(java.lang.String s)
s
- the date & time to use.public java.lang.String getDatetime()
public void setGranularity(long g)
g
- the timestamp granularity.public long getGranularity()
public void setPattern(java.lang.String p)
p
- the SimpleDateFormat-compatible pattern string.public java.lang.String getPattern()
public void setWhen(TimeComparison c)
c
- a TimeComparison object.public TimeComparison getWhen()
public boolean isSelected(Resource r)
isSelected
in interface ResourceSelector
r
- the Resource to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |