public class JDFDateTimeRange extends JDFRange
JDFBaseDataTypes.EnumFitsValueEPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION| Constructor and Description |
|---|
JDFDateTimeRange()
Empty range constructor
|
JDFDateTimeRange(JDFDate x)
Constructor - creates a DateTime range defined by x ("from x to x")
|
JDFDateTimeRange(JDFDate xmin,
JDFDate xmax)
Constructor - creates a DateTime range defined by xmin and xmax
|
JDFDateTimeRange(JDFDateTimeRange r)
copy constructor
|
JDFDateTimeRange(java.lang.String s)
Construct a JDFDateTimeRange from a string
|
| Modifier and Type | Method and Description |
|---|---|
static JDFDateTimeRange |
createDateTimeRange(java.lang.String date)
factory style constructor that catches all exceptions and returns null if date is invalid
|
JDFDate |
getLeft()
getLeft - get the left of the two range deliminators xmin ~ xmax
|
protected JDFDate |
getLeftObject() |
java.lang.String |
getLeftString(int precision) |
JDFDate |
getLowerValue()
getLowerValue - returns the lower value of the bounds
|
JDFDate |
getRight()
getRight - get the right of the two range deliminators xmin ~ xmax
|
protected JDFDate |
getRightObject() |
java.lang.String |
getRightString(int precision) |
JDFDate |
getUpperValue()
getUpperValue - returns the upper value of the bounds
|
java.lang.String |
getXJDFString(int precision)
toString
|
protected void |
init(JDFDate xmin,
JDFDate xmax)
Initialization
|
protected boolean |
inObjectRange(java.lang.Object other) |
boolean |
inRange(JDFDate x)
inRange - returns true if 'x' is within the range defined by 'this'
|
boolean |
isPartOfRange(JDFRange ra)
isPartOfRange - is range 'r' within this range?
|
boolean |
isValid(java.lang.String s)
isValid - validate the given String
|
void |
setLeft(JDFDate x)
setLeft - sets the left JDFDate object of the range
|
void |
setRight(JDFDate x)
setRight - sets the right JDFDate object of the range
|
java.lang.String |
toString()
toString
|
public JDFDateTimeRange()
public JDFDateTimeRange(JDFDate x)
x - boundary of the date/time rangepublic JDFDateTimeRange(JDFDate xmin, JDFDate xmax)
xmin - xmax - public JDFDateTimeRange(JDFDateTimeRange r)
r - public JDFDateTimeRange(java.lang.String s)
throws java.util.zip.DataFormatException
s - java.util.zip.DataFormatException - - if the String has not a valid formatpublic static JDFDateTimeRange createDateTimeRange(java.lang.String date)
date - the formatted date stringpublic java.lang.String toString()
public java.lang.String getXJDFString(int precision)
getXJDFString in class JDFRangepublic boolean isValid(java.lang.String s)
s - the given stringpublic boolean inRange(JDFDate x)
x - JDFDate that is to be compared with 'this'public boolean isPartOfRange(JDFRange ra)
isPartOfRange in class JDFRangera - the range to testpublic JDFDate getLeft()
public JDFDate getRight()
public void setLeft(JDFDate x)
x - the left JDFDate object of the rangepublic void setRight(JDFDate x)
x - the right JDFDate object of the rangepublic JDFDate getUpperValue()
public JDFDate getLowerValue()
protected JDFDate getRightObject()
getRightObject in class JDFRangeprotected JDFDate getLeftObject()
getLeftObject in class JDFRangeprotected boolean inObjectRange(java.lang.Object other)
inObjectRange in class JDFRangepublic java.lang.String getRightString(int precision)
getRightString in class JDFRangepublic java.lang.String getLeftString(int precision)
getLeftString in class JDFRange