/** * Get a Comparable value that implements the XML Schema ordering comparison semantics for this value. * This implementation handles the ordering rules for durations in XML Schema. * It is overridden for the two subtypes DayTimeDuration and YearMonthDuration. * * @return a suitable Comparable */ /*@NotNull*/ public Comparable getSchemaComparable() { return getSchemaComparable(this); }
/** * Get a Comparable value that implements the XML Schema ordering comparison semantics for this value. * This implementation handles the ordering rules for durations in XML Schema. * It is overridden for the two subtypes DayTimeDuration and YearMonthDuration. * * @return a suitable Comparable */ public Comparable getSchemaComparable() { return getSchemaComparable(this); }
/** * Get a Comparable value that implements the XML Schema ordering comparison semantics for this value. * This implementation handles the ordering rules for durations in XML Schema. * It is overridden for the two subtypes DayTimeDuration and YearMonthDuration. * * @return a suitable Comparable */ public Comparable getSchemaComparable() { return getSchemaComparable(this); }
/** * Get a Comparable value that implements the XML Schema ordering comparison semantics for this value. * This implementation handles the ordering rules for durations in XML Schema. * It is overridden for the two subtypes DayTimeDuration and YearMonthDuration. * * @return a suitable Comparable */ /*@NotNull*/ public Comparable getSchemaComparable() { return getSchemaComparable(this); }
throw new IllegalArgumentException("Supplied duration is not a SaxonDuration"); Comparable c0 = duration.getSchemaComparable(); Comparable c1 = ((SaxonDuration) rhs).duration.getSchemaComparable(); return c0.compareTo(c1);
throw new IllegalArgumentException("Supplied duration is not a SaxonDuration"); Comparable c0 = duration.getSchemaComparable(); Comparable c1 = ((SaxonDuration) rhs).duration.getSchemaComparable(); return c0.compareTo(c1);
other = (DurationComparable)o; } else if (o instanceof YearMonthDurationValue) { other = (DurationComparable)getSchemaComparable((YearMonthDurationValue)o); } else if (o instanceof DayTimeDurationValue) { other = (DurationComparable)getSchemaComparable((DayTimeDurationValue)o); } else { return INDETERMINATE_ORDERING;
other = (DurationComparable)o; } else if (o instanceof YearMonthDurationValue) { other = (DurationComparable)getSchemaComparable((YearMonthDurationValue)o); } else if (o instanceof DayTimeDurationValue) { other = (DurationComparable)getSchemaComparable((DayTimeDurationValue)o); } else { return INDETERMINATE_ORDERING;