List of usage examples for org.apache.commons.collections.collection UnmodifiableCollection decorate
public static Collection decorate(Collection coll)
From source file:org.apache.cocoon.el.impl.objectmodel.UnmodifiableMultiMap.java
public Collection values() { Collection coll = super.values(); return UnmodifiableCollection.decorate(coll); }
From source file:sgf.gateway.model.metadata.DatasetImpl.java
public Collection<DatasetVersion> getDatasetVersions() { return UnmodifiableCollection.decorate(this.getDatasetVersionsReference()); }
From source file:sgf.gateway.model.metadata.DatasetImpl.java
public Collection<Activity> getActivityList() { return UnmodifiableCollection.decorate(this.getActivitiesReference().values()); }
From source file:sgf.gateway.model.metadata.DatasetImpl.java
public Collection<Activity> getAllActivities() { Set<Activity> completeList = new HashSet<Activity>(); completeList.addAll(getActivityList()); // If were not a top level dataset, include the parents if (!this.isTopLevelDataset()) { completeList.addAll(this.getParentDataset().getAllActivities()); }/*from w ww . j a va 2 s . c o m*/ return UnmodifiableCollection.decorate(completeList); }
From source file:sgf.gateway.model.metadata.DatasetImpl.java
public Collection<Topic> getTopics() { return UnmodifiableCollection.decorate(this.getTopicsReference()); }
From source file:sgf.gateway.model.metadata.DatasetImpl.java
public Collection<Topic> getIsoTopics() { Collection<Topic> isoTopics = new HashSet<Topic>(); Collection<Topic> topics = this.getTopicsReference(); for (Topic topic : topics) { if (Taxonomy.ISO == topic.getType()) { isoTopics.add(topic);//from w ww . j av a 2 s. com } } return UnmodifiableCollection.decorate(isoTopics); }
From source file:sgf.gateway.model.metadata.DatasetImpl.java
@Deprecated public Collection<Topic> getInheritedTopics() { Collection<Topic> allTopics = new HashSet<Topic>(this.getTopicsReference()); if (this.getParentDataset() != null) { allTopics.addAll(this.getParentDataset().getInheritedTopics()); }/*from w w w . j a va 2 s.c o m*/ return UnmodifiableCollection.decorate(allTopics); }
From source file:sgf.gateway.model.metadata.DatasetImpl.java
public Collection<Award> getAwards() { return UnmodifiableCollection.decorate(awards); }