public void clearCategories() { getCategories().clear(); }
public void clearCategories() { getCategories().clear(); }
public void addCategory(MediaCategory category) { getCategories().add(category); }
public void addCategory(MediaCategory category) { getCategories().add(category); }
public List<MediaCategory> getMediaCategories() { MediaGroup group = getMediaGroup(); if (group == null) { return Collections.emptyList(); } return group.getCategories(); }
public List<MediaCategory> getMediaCategories() { MediaGroup group = getMediaGroup(); if (group == null) { return Collections.emptyList(); } return group.getCategories(); }
public List<MediaCategory> getMediaCategories() { MediaGroup group = getMediaGroup(); if (group == null) { return Collections.emptyList(); } return group.getCategories(); }
public List<MediaCategory> getMediaCategories() { MediaGroup group = getMediaGroup(); if (group == null) { return Collections.emptyList(); } return group.getCategories(); }
public List<MediaCategory> getMediaCategories() { MediaGroup group = getMediaGroup(); if (group == null) { return Collections.emptyList(); } return group.getCategories(); }
public List<MediaCategory> getMediaCategories() { MediaGroup group = getMediaGroup(); if (group == null) { return Collections.emptyList(); } return group.getCategories(); }
/** * Returns all the found categories of the given scheme. If the given scheme * parameter is null it returns all the categories that do not have a scheme * set. * * @param scheme scheme to search for, can be null. * @return the found categories that are of the given scheme, it may be an * empty set if no such categories were specified, but never null. */ public Set<MediaCategory> getCategoriesWithScheme(String scheme) { Set<MediaCategory> result = new HashSet<MediaCategory>(); for (MediaCategory category : getCategories()) { if ((scheme == null && category.getScheme() == null) || (scheme != null && scheme.equals(category.getScheme()))) { result.add(category); } } return Collections.unmodifiableSet(result); }
/** * Returns all the found categories of the given scheme. If the given scheme * parameter is null it returns all the categories that do not have a scheme * set. * * @param scheme scheme to search for, can be null. * @return the found categories that are of the given scheme, it may be an * empty set if no such categories were specified, but never null. */ public Set<MediaCategory> getCategoriesWithScheme(String scheme) { Set<MediaCategory> result = new HashSet<MediaCategory>(); for (MediaCategory category : getCategories()) { if ((scheme == null && category.getScheme() == null) || (scheme != null && scheme.equals(category.getScheme()))) { result.add(category); } } return Collections.unmodifiableSet(result); }