01: /*
02: * Copyright 2001-2007 Hippo (www.hippo.nl)
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package nl.hippo.cms.editor.flow;
17:
18: public class Configuration {
19: private String document_resource_id;
20: private String document_uri_prefix;
21: private String document_type;
22:
23: public Configuration(String resourceId, String uriPrefix,
24: String type) {
25: this .document_resource_id = resourceId.replaceAll("[/]+", "/");
26: this .document_uri_prefix = uriPrefix;
27: this .document_type = type;
28: }
29:
30: public String getDocumentPath() {
31: return document_resource_id;
32: }
33:
34: public void setDocumentPath(String document_resource_id) {
35: this .document_resource_id = document_resource_id;
36: }
37:
38: public String getDocumentType() {
39: return document_type;
40: }
41:
42: public void setDocumentType(String document_type) {
43: this .document_type = document_type;
44: }
45:
46: public String getDocumentUriPrefix() {
47: return document_uri_prefix;
48: }
49:
50: public void setDocumentUriPrefix(String document_uri_prefix) {
51: this.document_uri_prefix = document_uri_prefix;
52: }
53:
54: }
|