public class JDFNameRangeList 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 |
---|
JDFNameRangeList()
constructs an empty JDFNameRangeList
|
JDFNameRangeList(JDFNameRangeList rl)
constructs a JDFNameRangeList from the given JDFNameRangeList
|
JDFNameRangeList(String s)
constructs a JDFNameRangeList from a given string
|
Modifier and Type | Method and Description |
---|---|
void |
append(JDFNameRange r)
append - appends a name range to the range list
|
static JDFNameRangeList |
createNameRangeList(String s)
factory for JDFNameRangeList that silently returns null in case of illegal strings
|
boolean |
inRange(String x)
inRange - returns true if the given string is in range with one of the ranges in the range list (
|
boolean |
isOrdered() |
boolean |
isUniqueOrdered()
isUniqueOrdered - tests if
this has only unique values and if
the values are ordered |
void |
setString(String s)
setString - parse the string and separate all single ranges
|
public JDFNameRangeList()
public JDFNameRangeList(String s) throws DataFormatException
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic JDFNameRangeList(JDFNameRangeList rl)
rl
- the given JDFNameRangeListpublic static JDFNameRangeList createNameRangeList(String s)
s
- the string to parsepublic void setString(String s) throws DataFormatException
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic boolean inRange(String x)
- Parameters:
x
- the given string
- Returns:
- boolean - true if in range, otherwise false
-
append
public void append(JDFNameRange r)
append - appends a name range to the range list
- Parameters:
r
- the given name range
-
isUniqueOrdered
public boolean isUniqueOrdered()
Description copied from class: JDFRangeList
isUniqueOrdered - tests if this has only unique values and if
the values are ordered
- Specified by:
isUniqueOrdered
in class JDFRangeList
- Returns:
- true if values are unique and ordered, otherwise false
-
isOrdered
public boolean isOrdered()
- Specified by:
isOrdered
in class JDFRangeList
Copyright © 2018. All rights reserved.