public class JDFDurationRangeList extends JDFRangeList
JDFBaseDataTypes.EnumFitsValuerangeListEPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION| Constructor and Description |
|---|
JDFDurationRangeList()
empty constructor
|
JDFDurationRangeList(JDFDurationRangeList rl)
constructs a JDFDurationRangeList from the given JDFDurationRangeList
|
JDFDurationRangeList(java.lang.String s)
constructs a JDFDurationRangeList from a given string
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(JDFDuration x)
add an individual JDFDuration element
|
void |
append(JDFDuration xMin,
JDFDuration xMax)
add a duration range defined by two dates xMin~xMax
|
void |
append(JDFDurationRange r)
add a duration range r =rMin~rMax
|
static JDFDurationRangeList |
createDurationRangeList(java.lang.String s)
factory for JDFDurationRangeList that silently returns null in case of illegal strings
|
protected java.util.ArrayList<JDFDuration> |
getOrderedArray() |
boolean |
inRange(JDFDuration x)
inRange - returns true if the given JDFDuration value is in one of the ranges of the range list
|
boolean |
isOrdered()
isOrdered - tests if 'this' is OrderedRangeList
|
boolean |
isUniqueOrdered()
isUniqueOrdered - tests if 'this' is UniqueOrdered RangeList
|
boolean |
isValid(java.lang.String s)
isValid - validate the given String
|
void |
setString(java.lang.String s)
setString - parse the given string and set the duration range list
|
public JDFDurationRangeList()
public JDFDurationRangeList(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic JDFDurationRangeList(JDFDurationRangeList rl)
rl - the given JDFDurationRangeListpublic static JDFDurationRangeList createDurationRangeList(java.lang.String s)
s - the string to parsepublic boolean inRange(JDFDuration x)
x - the given JDFDuration (duration) value to comparepublic void setString(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic boolean isValid(java.lang.String s)
s - the given stringpublic void append(JDFDurationRange r)
r - the Duration range to append to the listpublic void append(JDFDuration xMin, JDFDuration 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(JDFDuration x)
x - the left and right value of the Duration range to append to the listpublic boolean isOrdered()
isOrdered in class JDFRangeListprotected java.util.ArrayList<JDFDuration> getOrderedArray()
public boolean isUniqueOrdered()
isUniqueOrdered in class JDFRangeList