01: package com.technoetic.xplanner.wiki;
02:
03: import java.util.Properties;
04:
05: import com.technoetic.xplanner.XPlannerProperties;
06:
07: public class PropertySimpleSchemeHandler extends SimpleSchemeHandler {
08: private String key = null;
09: private static final String NEW_TARGET = "_new";
10:
11: public PropertySimpleSchemeHandler(String key) {
12: this .key = key;
13: }
14:
15: protected String getTarget() {
16: return NEW_TARGET;
17: }
18:
19: protected String getPattern(Properties properties) {
20: return properties.getProperty(key);
21: }
22:
23: }
|