|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.datatypes.JDFRangeList
org.cip4.jdflib.datatypes.JDFDurationRangeList
public class JDFDurationRangeList
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
JDFBaseDataTypes.EnumFitsValue |
| Field Summary |
|---|
| Fields inherited from class org.cip4.jdflib.datatypes.JDFRangeList |
|---|
rangeList |
| Fields inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION |
| Constructor Summary | |
|---|---|
JDFDurationRangeList()
empty constructor |
|
JDFDurationRangeList(JDFDurationRangeList rl)
constructs a JDFDurationRangeList from the given JDFDurationRangeList |
|
JDFDurationRangeList(String s)
constructs a JDFDurationRangeList from a given string |
|
| Method Summary | |
|---|---|
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(String s)
factory for JDFDurationRangeList that silently returns null in case of illegal strings |
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(String s)
isValid - validate the given String |
void |
setString(String s)
setString - parse the given string and set the duration range list |
| Methods inherited from class org.cip4.jdflib.datatypes.JDFRangeList |
|---|
at, begin, clear, elementAt, end, equals, erase, getString, getString, hashCode, isList, isPartOfRange, isPartOfRange, isUnique, remove, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDFDurationRangeList()
public JDFDurationRangeList(String s)
throws DataFormatException
s - the given string
DataFormatException - - if the String has not a valid formatpublic JDFDurationRangeList(JDFDurationRangeList rl)
rl - the given JDFDurationRangeList| Method Detail |
|---|
public static JDFDurationRangeList createDurationRangeList(String s)
s - the string to parse
public boolean inRange(JDFDuration x)
x - the given JDFDuration (duration) value to compare
public void setString(String s)
throws DataFormatException
s - the given string
DataFormatException - - if the String has not a valid formatpublic boolean isValid(String s)
s - the given string
public void append(JDFDurationRange r)
r - the Duration range to append to the list
public 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 JDFRangeListpublic boolean isUniqueOrdered()
isUniqueOrdered in class JDFRangeList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||