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 Class getPropertyClass(DataProperty property) { return property.getDomain().getValuesClass(); }
public void setDomain(Domain domain) { this.domain = domain; if (domain != null) domain.setProperty(this); }
public DataProperty cloneProperty() { try { AbstractDataProperty clone = (AbstractDataProperty) super.clone(); clone.setDomain(domain.cloneDomain()); clone.setNameI18nMap(new HashMap<Locale,String>()); Iterator it = nameI18nMap.keySet().iterator(); while (it.hasNext()) { Locale locale = (Locale) it.next(); String name = getName(locale); clone.setName(name, locale); } return clone; } catch (CloneNotSupportedException e) { e.printStackTrace(); return null; } } }
if (maxNumberOfIntervals != null) domain.setMaxNumberOfIntervals(Integer.parseInt(maxNumberOfIntervals));
if (domain == null) return; maxNumberOfIntervals = String.valueOf(domain.getMaxNumberOfIntervals()); if (domain instanceof LabelDomain) { LabelDomain labelDomain = (LabelDomain) domain;
List<Interval> intervals = groupByProperty.getDomain().getIntervals();
public String getDescription(Locale l) { DataFormatterRegistry dfr = DataFormatterRegistry.lookup(); DataProperty property = getDomain().getProperty(); if (property == null) return getLabel(); DataPropertyFormatter dpf = dfr.getPropertyFormatter(property.getPropertyId()); return dpf.formatValue(property, getLabel(), l); }