import org.wamblee.xmlrouter.config.RouterConfig;
import org.wamblee.xmlrouter.config.Transformation;
+// TODO implement equality based on ids for the single routerconfig.
+// TODO add clear method to the routerconfig
+// TODO implement copying of routerconfig.
+
/**
* Represents a single configuration set of a single configuration client of the
* XML router.
documentTypes = new ConfigImpl<DocumentType>(new Id<Config>(
"documentTypes")) {
@Override
- public DocumentType wrap(DocumentType aT) {
- return new RobustDocumentType(aT);
+ public DocumentType wrap(String aPrefix, DocumentType aT) {
+ return new RobustDocumentType(aPrefix, aT);
}
};
transformations = new ConfigImpl<Transformation>(new Id<Config>(
"transformations")) {
@Override
- public Transformation wrap(Transformation aTransformation) {
- return new RobustTransformation(aTransformation);
+ public Transformation wrap(String aPrefix,
+ Transformation aTransformation) {
+ return new RobustTransformation(aPrefix, aTransformation);
}
};
filters = new ConfigImpl<Filter>(new Id<Config>("filters")) {
@Override
- public Filter wrap(Filter aFilter) {
- return new RobustFilter(aFilter);
+ public Filter wrap(String aPrefix, Filter aFilter) {
+ return new RobustFilter(aPrefix, aFilter);
}
};
}