@Override public Map<String, Object> getStatistics() { return _configuredObject.getStatistics(); }
FormattingStatisticsResolver(final ConfiguredObject<?> object) { _statistics = object.getStatistics(); }
private void incorporateStatisticsIntoMap( final ConfiguredObject<?> confObject, Map<String, Object> object) { Map<String, Object> statMap = new TreeMap<String,Object>(confObject.getStatistics()); if(!statMap.isEmpty()) { object.put(STATISTICS_MAP_KEY, statMap); } }
private Object getValue(final ConfiguredObject<?> object) { if(SPECIAL_ATTRIBUTES.contains(_propertyName)) { if(PARENT_ATTR.equals(_propertyName)) { return object.getParent(); } else { return null; } } else { return object.getAttributeNames().contains(_propertyName) ? object.getAttribute(_propertyName) : object.getStatistics().get(_propertyName); } }