01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
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: package org.bpmscript.jbi.tasklist;
18:
19: import java.io.Serializable;
20:
21: public class AllowableResponse implements IAllowableResponse,
22: Serializable {
23:
24: private static final long serialVersionUID = -3696388514922743555L;
25:
26: private String path;
27: private Object message;
28: private IType type;
29:
30: public AllowableResponse() {
31: }
32:
33: public AllowableResponse(String path, Object message, IType type) {
34: super ();
35: this .path = path;
36: this .message = message;
37: this .type = type;
38: }
39:
40: public String getPath() {
41: return path;
42: }
43:
44: public Object getMessage() {
45: return message;
46: }
47:
48: public IType getType() {
49: return type;
50: }
51:
52: public void setMessage(Object message) {
53: this .message = message;
54: }
55:
56: public void setPath(String path) {
57: this .path = path;
58: }
59:
60: public void setType(IType type) {
61: this .type = type;
62: }
63:
64: public ComplexType complexType(String name) {
65: ComplexType complexType = new ComplexType(name);
66: this .type = complexType;
67: return complexType;
68: }
69:
70: public void string() {
71: this .type = SimpleType.STRING;
72: }
73:
74: public void integer() {
75: this.type = SimpleType.INTEGER;
76: }
77:
78: }
|