// add the rule for the content adapter process
ruleSet.addRule("content", ContentRule.getDefaultInstance());
// add the rule for the transform process
ruleSet.addRule("transform",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new TransformAdapterProcess();
}
});
// add the rules for the URL to URLC process. This has two
// aliases. The former, which is the original name, is now
// deprecated as "DMS" is not a valid name in terms of
// Product Management naming.
// @todo later delete this deprecated rule when PM deems that it can be removed
ruleSet.addRule("convertImageURLToDMS",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new URLToURLCAdapterProcess();
}
});
ruleSet.addRule("convertImageURLToTranscoder",
new AbstractAddAdapterRule() {
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new URLToURLCAdapterProcess();
}
});
// add the rule for the convertElementCase process
ruleSet.addRule("convertElementCase",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new ElementCaseAdapterProcess();
}
});
// add the rule for the convertAbsoluteToRelativeURL process
ruleSet.addRule("convertAbsoluteToRelativeURL",
new AbstractAddAdapterRule() {
// javadoc inherited
public AdapterProcess createAdapterProcess(
DynamicProcess dynamicProcess) {
return new AbsoluteToRelativeURLAdapterProcess();
}