- sequenceNumbers = new AtomicLong(1);
- documentTypes = new LinkedHashMap<Long, DocumentType>();
- transformations = new Transformations();
- filters = new LinkedHashMap<Long, Filter>();
- destinations = new LinkedHashMap<Long, Destination>();
- }
-
- @Override
- public Id<DocumentType> addDocumentType(DocumentType aType) {
- long seqno = sequenceNumbers.getAndIncrement();
- documentTypes.put(seqno, aType);
- return new Id<DocumentType>(seqno);
- }
-
- @Override
- public void removeDocumentType(Id<DocumentType> aId) {
- documentTypes.remove(aId);
- }
-
- @Override
- public Collection<DocumentType> getDocumentTypes() {
- return Collections.unmodifiableCollection(documentTypes.values());
- }
-
- @Override
- public Id<Transformation> addTransformation(Transformation aTransformation) {
- return transformations.addTransformation(aTransformation);
- }
-
- @Override
- public void removeTransformation(Id<Transformation> aId) {
- transformations.removeTransformation(aId);
- }
-
- @Override
- public Collection<Transformation> getTransformations() {
- return transformations.getTransformations();
- }
-
- @Override
- public Id<Filter> addFilter(Filter aFilter) {
- long seqno = sequenceNumbers.getAndIncrement();
- filters.put(seqno, aFilter);
- return new Id<Filter>(seqno);
- }
-
- @Override
- public void removeFilter(Id<Filter> aId) {
- filters.remove(aId);
- }
-
- @Override
- public Collection<Filter> getFilters() {
- return Collections.unmodifiableCollection(filters.values());