org.cip4.jdflib.datatypes
Class JDFRange

java.lang.Object
  extended by org.cip4.jdflib.datatypes.JDFRange
All Implemented Interfaces:
JDFBaseDataTypes
Direct Known Subclasses:
JDFDateTimeRange, JDFDurationRange, JDFIntegerRange, JDFNameRange, JDFNumberRange, JDFRectangleRange, JDFShapeRange, JDFXYPairRange

public abstract class JDFRange
extends java.lang.Object
implements JDFBaseDataTypes

This class must be changed to abstract if possible.


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
JDFRange()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          equals - returns true if both JDFDateTimeRange are equal, otherwise false
protected abstract  java.lang.Object getLeftObject()
           
protected abstract  java.lang.Object getRightObject()
           
 int hashCode()
          hashCode: complements equals() to fulfill the equals/hashCode contract
protected  boolean inObjectRange(java.lang.Object other)
           
abstract  boolean isPartOfRange(JDFRange ra)
          isPartOfRange - is range 'ra' within this range?
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDFRange

public JDFRange()
Method Detail

isPartOfRange

public abstract boolean isPartOfRange(JDFRange ra)
isPartOfRange - is range 'ra' within this range?

Parameters:
ra - the range to test
Returns:
boolean - true if range 'r' is within this range, else false

equals

public boolean equals(java.lang.Object other)
equals - returns true if both JDFDateTimeRange are equal, otherwise false

Overrides:
equals in class java.lang.Object
Parameters:
other - Object to compare
Returns:
boolean - true if equal, otherwise false

hashCode

public int hashCode()
hashCode: complements equals() to fulfill the equals/hashCode contract

Overrides:
hashCode in class java.lang.Object
Returns:
int

getRightObject

protected abstract java.lang.Object getRightObject()

getLeftObject

protected abstract java.lang.Object getLeftObject()

inObjectRange

protected boolean inObjectRange(java.lang.Object other)