more typesafety in the interface
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / RouterConfig.java
1 /*
2  * Copyright 2005-2011 the original author or authors.
3  * 
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
7  * 
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  * 
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.
15  */
16 package org.wamblee.xmlrouter.config;
17
18 import java.util.Collection;
19
20 import org.wamblee.xmlrouter.common.Id;
21
22 /**
23  * Configuration API for the XML router.
24  * 
25  * @author Erik Brakkee
26  */
27 public interface RouterConfig {
28
29     // Documents
30
31     Id<DocumentType> addDocumentType(DocumentType aType);
32
33     void removeDocumentType(Id<DocumentType> aId);
34
35     Collection<Id<DocumentType>> getDocumentTypes();
36
37     DocumentType getDocumentType(Id<DocumentType> aId);
38
39     // Transformations
40
41     Id<Transformation> addTransformation(Transformation aTransformation);
42
43     void removeTransformation(Id<Transformation> aId);
44
45     Collection<Id<Transformation>> getTransformations();
46
47     Transformation getTransformation(Id<Transformation> aId);
48
49     // Filters
50
51     Id<Filter> addFilter(Filter aFilter);
52
53     void removeFilter(Id<Filter> aId);
54
55     Collection<Id<Filter>> getFilters();
56
57     Filter getFilter(Id<Filter> aId);
58 }