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;
18:
19: import java.io.Serializable;
20:
21: public class ProcessSourceName extends TimeStampedIdentity implements
22: IProcessSourceName, Serializable {
23:
24: private static final long serialVersionUID = -5063004254897931316L;
25:
26: private String name;
27: private boolean main;
28:
29: public ProcessSourceName(String id, String name, boolean main) {
30: this .setId(id);
31: this .name = name;
32: this .main = main;
33: }
34:
35: public ProcessSourceName(IProcessSourceName processSourceName) {
36: super (processSourceName);
37: this .name = processSourceName.getName();
38: this .main = processSourceName.isMain();
39: }
40:
41: public ProcessSourceName() {
42: super ();
43: }
44:
45: public String getName() {
46: return name;
47: }
48:
49: public boolean isMain() {
50: return main;
51: }
52:
53: public void setMain(boolean main) {
54: this .main = main;
55: }
56:
57: public void setName(String name) {
58: this.name = name;
59: }
60:
61: }
|