public class JDFNameRange extends JDFRange
JDFBaseDataTypes.EnumFitsValue
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 |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
public JDFNameRange()
public JDFNameRange(String s)
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic JDFNameRange(String p_left, String p_right)
p_left
- the given left stringp_right
- the given right stringpublic JDFNameRange(JDFNameRange nr)
JDFNameRange
- nrpublic boolean inRange(String x)
x
- comparison stringpublic boolean equals(Object other)
public int hashCode()
public String getLowerValue()
public String getUpperValue()
protected void isValid(String s)
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic String getLeft()
public String getRight()
public boolean isPartOfRange(JDFRange ra)
JDFRange
isPartOfRange
in class JDFRange
ra
- the range to testprotected Object getRightObject()
getRightObject
in class JDFRange
protected Object getLeftObject()
getLeftObject
in class JDFRange
protected boolean inObjectRange(Object other)
inObjectRange
in class JDFRange
Copyright © 2018. All rights reserved.