01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: *
05: * Licensed under the Educational Community License, Version 1.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.opensource.org/licenses/ecl1.php
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: // Created on May 8, 2006
18: package edu.iu.uis.eden.test.web.framework;
19:
20: import java.util.Arrays;
21: import java.util.Collection;
22: import java.util.Collections;
23:
24: import edu.iu.uis.eden.test.web.framework.schemes.LiteralScheme;
25: import edu.iu.uis.eden.test.web.framework.schemes.ResourceScheme;
26: import edu.iu.uis.eden.test.web.framework.schemes.URLScheme;
27: import edu.iu.uis.eden.test.web.framework.schemes.VariableScheme;
28:
29: public interface PropertyScheme {
30: public static final PropertyScheme VARIABLE_SCHEME = new VariableScheme();
31: public static final PropertyScheme LITERAL_SCHEME = new LiteralScheme();
32: public static final PropertyScheme RESOURCE_SCHEME = new ResourceScheme();
33: public static final PropertyScheme URL_SCHEME = new URLScheme();
34:
35: /* interfaces can't have static initializers */
36: public static final Collection SCHEMES = Collections
37: .unmodifiableCollection(Arrays.asList(new PropertyScheme[] {
38: VARIABLE_SCHEME, LITERAL_SCHEME, RESOURCE_SCHEME,
39: URL_SCHEME }));
40:
41: public String getName();
42:
43: public String getShortName();
44:
45: public Object load(Property property, ScriptState state);
46: }
|