public class JDFNameRange extends JDFRange
JDFBaseDataTypes.EnumFitsValueEPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION| Constructor and Description |
|---|
JDFNameRange()
constructor
|
JDFNameRange(JDFNameRange nr)
constructs a JDFNameRange with a give JDFNameRange
|
JDFNameRange(java.lang.String s)
constructs a JDFNameRange with the given string
|
JDFNameRange(java.lang.String p_left,
java.lang.String p_right)
constructs a JDFNameRange with two given strings the left and the right name
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
equals - returns true if both JDFNameRange are equal otherwise false
|
java.lang.String |
getLeft() |
protected java.lang.Object |
getLeftObject() |
java.lang.String |
getLowerValue()
getLowerValue - returns the lower value of the range
|
java.lang.String |
getRight() |
protected java.lang.Object |
getRightObject() |
java.lang.String |
getUpperValue()
getUpperValue - return the upper value of the range
|
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract
|
protected boolean |
inObjectRange(java.lang.Object other) |
boolean |
inRange(java.lang.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(java.lang.String s)
isValid - validates the given String
|
java.lang.String |
toString()
toString
|
public JDFNameRange()
public JDFNameRange(java.lang.String s)
s - the given stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic JDFNameRange(java.lang.String p_left,
java.lang.String p_right)
p_left - the given left stringp_right - the given right stringpublic JDFNameRange(JDFNameRange nr)
JDFNameRange - nrpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean inRange(java.lang.String x)
x - comparison stringpublic boolean equals(java.lang.Object other)
public int hashCode()
public java.lang.String getLowerValue()
public java.lang.String getUpperValue()
protected void isValid(java.lang.String s)
s - the given stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic java.lang.String getLeft()
public java.lang.String getRight()
public boolean isPartOfRange(JDFRange ra)
JDFRangeisPartOfRange in class JDFRangera - the range to testprotected java.lang.Object getRightObject()
getRightObject in class JDFRangeprotected java.lang.Object getLeftObject()
getLeftObject in class JDFRangeprotected boolean inObjectRange(java.lang.Object other)
inObjectRange in class JDFRange