* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
+ */
package org.wamblee.xmlrouter.config;
import java.util.Collection;
*
* @author Erik Brakkee
*/
-public interface Config {
+public interface RouterConfig {
+
+ // Documents
Id<DocumentType> addDocumentType(DocumentType aType);
void removeDocumentType(Id<DocumentType> aId);
- Collection<DocumentType> getDocumentTypes();
+ Collection<Id<DocumentType>> getDocumentTypes();
+
+ DocumentType getDocumentType(Id<DocumentType> aId);
+
+ // Transformations
Id<Transformation> addTransformation(Transformation aTransformation);
void removeTransformation(Id<Transformation> aId);
- Collection<Transformation> getTransformations();
+ Collection<Id<Transformation>> getTransformations();
+
+ Transformation getTransformation(Id<Transformation> aId);
+
+ // Filters
Id<Filter> addFilter(Filter aFilter);
void removeFilter(Id<Filter> aId);
- Collection<Filter> getFilters();
+ Collection<Id<Filter>> getFilters();
+ Filter getFilter(Id<Filter> aId);
}