|
||||||||||
| 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.JDFNameRangeList
public class JDFNameRangeList
This class is a representation of a name range list (JDFNameRangeList). It is a whitespace separated list of name ranges, for example "anna~berta hans~otto"
| 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 | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| 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 JDFNameRangeList()
public JDFNameRangeList(String s)
throws DataFormatException
s - the given string
DataFormatException - - if the String has not a valid formatpublic JDFNameRangeList(JDFNameRangeList rl)
rl - the given JDFNameRangeList| Method Detail |
|---|
public static JDFNameRangeList createNameRangeList(String s)
s - the string to parse
public void setString(String s)
throws DataFormatException
s - the given string
DataFormatException - - 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
public void append(JDFNameRange r)
r - the given name rangepublic boolean isUniqueOrdered()
JDFRangeListthis 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
public boolean isOrdered()
isOrdered in class JDFRangeList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||