|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.datatypes.JDFRange
org.cip4.jdflib.datatypes.JDFNameRange
public class JDFNameRange
This class represents a name range (JDFNameRange). It is a whitespace separated list of 2 names separated by a tilde "~", for example "jack ~ john"
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
JDFBaseDataTypes.EnumFitsValue |
| Field Summary |
|---|
| 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 | |
|---|---|
JDFNameRange()
constructor |
|
JDFNameRange(JDFNameRange nr)
constructs a JDFNameRange with a give JDFNameRange |
|
JDFNameRange(String s)
constructs a JDFNameRange with the given string |
|
JDFNameRange(String p_left,
String p_right)
constructs a JDFNameRange with two given strings the left and the right name |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
equals - returns true if both JDFNameRange are equal otherwise false |
String |
getLeft()
|
protected Object |
getLeftObject()
|
String |
getLowerValue()
getLowerValue - returns the lower value of the range |
String |
getRight()
|
protected Object |
getRightObject()
|
String |
getUpperValue()
getUpperValue - return the upper value of the range |
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract |
protected boolean |
inObjectRange(Object other)
|
boolean |
inRange(String x)
inRange - returns true if (left string >= x <= right string), it is a lexicographical compare |
boolean |
isPartOfRange(JDFRange ra)
isPartOfRange - is range 'ra' within this range? |
protected void |
isValid(String s)
isValid - validates the given String |
String |
toString()
toString |
| Methods inherited from class org.cip4.jdflib.datatypes.JDFRange |
|---|
getString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDFNameRange()
public JDFNameRange(String s)
s - the given string
DataFormatException - - if the String has not a valid format
public JDFNameRange(String p_left,
String p_right)
p_left - the given left stringp_right - the given right stringpublic JDFNameRange(JDFNameRange nr)
JDFNameRange - nr| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean inRange(String x)
x - comparison string
public boolean equals(Object other)
equals in class JDFRangeother - Object to compare
public int hashCode()
hashCode in class JDFRangepublic String getLowerValue()
public String getUpperValue()
protected void isValid(String s)
s - the given string
DataFormatException - - if the String has not a valid formatpublic String getLeft()
public String getRight()
public boolean isPartOfRange(JDFRange ra)
JDFRange
isPartOfRange in class JDFRangera - the range to test
protected Object getRightObject()
getRightObject in class JDFRangeprotected Object getLeftObject()
getLeftObject in class JDFRangeprotected boolean inObjectRange(Object other)
inObjectRange in class JDFRange
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||