/** * Returns true if the present instance of date/time type is equal to the parameter. * <p> * The equals relation is as defined in the W3C XML Schema Recommendation, part2. * * @param dateTime the date/time type to compare with the present instance * @return true if the present instance is equal to the parameter false if not */ protected boolean equal(DateTimeBase dateTime) { return EQUALS == this.compareTo(dateTime); } // equals
/** * Returns true if the present instance of date/time type is equal to the * parameter. * <p> * The equals relation is as defined in the W3C XML Schema Recommendation, * part2. * * @param dateTime * the date/time type to compare with the present instance * @return true if the present instance is equal to the parameter false if * not */ protected boolean equal(DateTimeBase dateTime) { return EQUALS == this.compareTo(dateTime); } //equals
int comparison = dateTime.compareTo(_fixed); if (comparison == DateTimeBase.INDETERMINATE) { String err = dateTime.getClass().getName() + " " + dateTime if (isThereMinInclusive && dateTime.compareTo(_minInclusive) != DateTimeBase.GREATER_THAN && !dateTime.equals(_minInclusive)) { String err = dateTime.getClass().getName() + " " + dateTime if (isThereMinExclusive && dateTime.compareTo(_minExclusive) != DateTimeBase.GREATER_THAN) { String err = dateTime.getClass().getName() + " " + dateTime + " is less than or equal to the minimum (exclusive) value: " + _minExclusive; if (isThereMaxInclusive && dateTime.compareTo(_maxInclusive) != DateTimeBase.LESS_THAN && !dateTime.equals(_maxInclusive)) { String err = dateTime.getClass().getName() + " " + dateTime if (isThereMaxExclusive && dateTime.compareTo(_maxExclusive) != DateTimeBase.LESS_THAN) { String err = dateTime.getClass().getName() + " " + dateTime + " is greater than or equal to the maximum (exclusive) value: " + _maxExclusive;
int comparison = dateTime.compareTo(_fixed); if (comparison == DateTimeBase.INDETERMINATE) { String err = dateTime.getClass().getName() + " " + dateTime if (isThereMinInclusive && dateTime.compareTo(_minInclusive) != DateTimeBase.GREATER_THAN && !dateTime.equals(_minInclusive)) { String err = dateTime.getClass().getName() + " " + dateTime if (isThereMinExclusive && dateTime.compareTo(_minExclusive) != DateTimeBase.GREATER_THAN) { String err = dateTime.getClass().getName() + " " + dateTime + " is less than or equal to the minimum (exclusive) value: " + _minExclusive; if (isThereMaxInclusive && dateTime.compareTo(_maxInclusive) != DateTimeBase.LESS_THAN && !dateTime.equals(_maxInclusive)) { String err = dateTime.getClass().getName() + " " + dateTime if (isThereMaxExclusive && dateTime.compareTo(_maxExclusive) != DateTimeBase.LESS_THAN) { String err = dateTime.getClass().getName() + " " + dateTime + " is greater than or equal to the maximum (exclusive) value: "