/** * Given a ratingScheme, this method returns the aspect name which would * by convention be used to store rating property rollups. * * @param ratingScheme the ratingScheme. * @return the aspect name used to store all property rollups for that scheme. */ public QName getRollupAspectNameFor(RatingScheme ratingScheme) { final String modelPrefix = ratingScheme.getModelPrefix(); final String ratingSchemeName = ratingScheme.getName(); String result = modelPrefix + ":" + ratingSchemeName + "Rollups"; return QName.createQName(result, namespaceService); }
/** * Given a ratingScheme, this method returns the aspect name which would * by convention be used to store rating property rollups. * * @param ratingScheme the ratingScheme. * @return the aspect name used to store all property rollups for that scheme. */ public QName getRollupAspectNameFor(RatingScheme ratingScheme) { final String modelPrefix = ratingScheme.getModelPrefix(); final String ratingSchemeName = ratingScheme.getName(); String result = modelPrefix + ":" + ratingSchemeName + "Rollups"; return QName.createQName(result, namespaceService); }
/** * Given a ratingScheme and a rollup name, this method returns the property name * which would by convention be used to store the given rollup. * * @param ratingScheme the ratingScheme. * @param rollupName the name of the property rollup as given by {@link AbstractRatingRollupAlgorithm#getRollupName()}. * @return the property name used to persist the given rollup in the given scheme. */ public QName getRollupPropertyNameFor(RatingScheme ratingScheme, String rollupName) { final String modelPrefix = ratingScheme.getModelPrefix(); final String ratingSchemeName = ratingScheme.getName(); String result = modelPrefix + ":" + ratingSchemeName + rollupName; return QName.createQName(result, namespaceService); } }
/** * Given a ratingScheme and a rollup name, this method returns the property name * which would by convention be used to store the given rollup. * * @param ratingScheme the ratingScheme. * @param rollupName the name of the property rollup as given by {@link AbstractRatingRollupAlgorithm#getRollupName()}. * @return the property name used to persist the given rollup in the given scheme. */ public QName getRollupPropertyNameFor(RatingScheme ratingScheme, String rollupName) { final String modelPrefix = ratingScheme.getModelPrefix(); final String ratingSchemeName = ratingScheme.getName(); String result = modelPrefix + ":" + ratingSchemeName + rollupName; return QName.createQName(result, namespaceService); } }