public class JDFDateTimeRangeList extends JDFRangeList
JDFBaseDataTypes.EnumFitsValue
rangeList
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION
Constructor and Description |
---|
JDFDateTimeRangeList()
empty constructor
|
JDFDateTimeRangeList(JDFDateTimeRangeList rl)
constructs a JDFDateTimeRangeList from the given JDFDateTimeRangeList
|
JDFDateTimeRangeList(String s)
constructs a JDFDateTimeRangeList from a given string
|
Modifier and Type | Method and Description |
---|---|
void |
append(JDFDate x)
Add an individual JDFDate element
|
void |
append(JDFDate xMin,
JDFDate xMax)
Add a Duration range defined by two dates xMin~xMax
|
void |
append(JDFDateTimeRange r)
Add a Duration range r =rMin~rMax
|
static JDFDateTimeRangeList |
createDateTimeRangeList(String s)
factory for JDFDateTimeRangeList that silently returns null in case of illegal strings
|
boolean |
inRange(JDFDate x)
inRange - returns true if the given JDFDate value is in one of the ranges of the range list
|
boolean |
isOrdered()
isOrdered - tests if 'this' is an OrderedRangeList
|
boolean |
isUniqueOrdered()
isUniqueOrdered - tests if 'this' is an UniqueOrdered RangeList
|
boolean |
isValid(String s)
isValid - validate the given String
|
void |
setString(String s)
setString - parse the given string and set the duration range list
|
public JDFDateTimeRangeList()
public JDFDateTimeRangeList(String s) throws DataFormatException
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic JDFDateTimeRangeList(JDFDateTimeRangeList rl)
rl
- the given JDFDateTimeRangeListpublic static JDFDateTimeRangeList createDateTimeRangeList(String s)
s
- the string to parsepublic boolean inRange(JDFDate x)
x
- the given JDFDate (duration) value to comparepublic void setString(String s) throws DataFormatException
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic boolean isValid(String s)
s
- the given stringpublic void append(JDFDateTimeRange r)
r
- the Duration range to append to the listpublic void append(JDFDate xMin, JDFDate xMax)
xMin
- the left value of the Duration range to append to the listxMax
- the right value of the Duration range to append to the listpublic void append(JDFDate x)
x
- the left and right value of the Duration range to append to the listpublic boolean isOrdered()
isOrdered
in class JDFRangeList
public boolean isUniqueOrdered()
isUniqueOrdered
in class JDFRangeList
Copyright © 2018. All rights reserved.