2 * Copyright 2005-2011 the original author or authors.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.wamblee.xmlrouter.config;
18 import java.util.Collection;
21 * This class represents a particular configuration of the XML router as
22 * provided by one configuration provider. There can be multiple configuration
23 * providers, each providing it's own part of the configuration.
25 * @author Erik Brakkee
27 public final class Configuration {
29 private Collection<DocumentType> documentTypes;
30 private Collection<Transformation> transformations;
31 private Collection<Filter> filters;
34 * Constructs the configuration object. Null objects will be ignored.
35 * DocumentTypes must have unique content-based ids (see
36 * {@link Identifiable}), with the same for transformations and filters.
37 * Objects with the same id as another object processed earlier will be
40 * @param aDocumentTypes
42 * @param aTransformations
47 public Configuration(Collection<DocumentType> aDocumentTypes,
48 Collection<Transformation> aTransformations, Collection<Filter> aFilters) {
49 documentTypes = aDocumentTypes;
50 transformations = aTransformations;
53 public Collection<DocumentType> getDocumentTypes() {
57 public Collection<Transformation> getTransformations() {
58 return transformations;
61 public Collection<Filter> getFilters() {