public List getValues(DataProperty p) { if (domain instanceof LabelDomain) { LabelDomain labelDomain = (LabelDomain) domain; return labelDomain.getValues(intervals, p); } return super.getValues(p); } }
public List getValues(DataProperty p) { List results = new ArrayList(); List dvalues = domain.getProperty().getValues(); List pvalues = p.getValues(); for (int i = 0; i < pvalues.size(); i++) { Object dvalue = dvalues.get(i); Object pvalue = pvalues.get(i); if (this.contains(dvalue)) results.add(pvalue); } return results; }
public int compareTo(Object o) { try { if (o == null) return 1; Interval other = (Interval) o; Locale locale = LocaleManager.currentLocale(); return getDescription(locale).compareTo(other.getDescription(locale)); } catch (ClassCastException e) { return 1; } } }