001: package hero.xpdl;
002:
003: /**
004: *
005: * Bonita
006: * Copyright (C) 1999 Bull S.A.
007: * Bull 68 route de versailles 78434 Louveciennes Cedex France
008: * Further information: bonita@objectweb.org
009: *
010: * This library is free software; you can redistribute it and/or
011: * modify it under the terms of the GNU Lesser General Public
012: * License as published by the Free Software Foundation; either
013: * version 2.1 of the License, or any later version.
014: *
015: * This library is distributed in the hope that it will be useful,
016: * but WITHOUT ANY WARRANTY; without even the implied warranty of
017: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
018: * Lesser General Public License for more details.
019: *
020: * You should have received a copy of the GNU Lesser General Public
021: * License along with this library; if not, write to the Free Software
022: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
023: * USA
024: *
025: *
026: --------------------------------------------------------------------------
027: * $Id: XPDLDataField.java,v 1.1 2006/06/06 08:16:08 mvaldes Exp $
028: *
029: --------------------------------------------------------------------------
030: */
031:
032: import java.io.Serializable;
033: import java.util.ArrayList;
034: import java.util.Vector;
035:
036: public final class XPDLDataField implements Serializable,
037: java.lang.Cloneable {
038:
039: // --------------------------------------------------- Instance Variables
040:
041: private String name = "";
042: private String id = "";
043: private String initialValue = "";
044: private String dataType = "";
045: private String basicType = "";
046: private ArrayList enumeration = new ArrayList();
047: private boolean propertyActivity = false;
048: private boolean document = false;
049: // field containing either : projectName, either the cste : PACKAGE_LEVEL
050: private String projectName = "";
051:
052: // ----------------------------------------------------------- Properties
053:
054: // Name
055: public String getName() {
056: return (name);
057: }
058:
059: public void setName(String name) {
060: this .name = name;
061: }
062:
063: //id
064: public String getId() {
065: return (id);
066: }
067:
068: public void setId(String id) {
069: this .id = id;
070: }
071:
072: //dataType : BasicType or EnumerationType at now
073: public String getDataType() {
074: return (dataType);
075: }
076:
077: public void setDataType(String dataType) {
078: this .dataType = dataType;
079: }
080:
081: //BasicType : String at now
082: public String getBasicType() {
083: return (basicType);
084: }
085:
086: public void setBasicType(String basicType) {
087: this .basicType = basicType;
088: }
089:
090: //initialValue
091: public String getInitialValue() {
092: return (initialValue);
093: }
094:
095: public void setInitialValue(String initialValue) {
096: this .initialValue = initialValue;
097: }
098:
099: // enumeration
100: public ArrayList getEnumeration() {
101: return (enumeration);
102: }
103:
104: public void setEnumeration(String enumeration) {
105: this .enumeration.add(enumeration);
106: }
107:
108: // boolean indicating the datafield is for activity (not for process WF Relevant Data)
109: public boolean getPropertyActivity() {
110: return (propertyActivity);
111: }
112:
113: public void setPropertyActivity() {
114: this .propertyActivity = true;
115: }
116:
117: // boolean indicating the datafield is an proed document type
118: public boolean getDocument() {
119: return (document);
120: }
121:
122: public void setDocument() {
123: this .document = true;
124: }
125:
126: // projectName (or "Package_level")
127: public String getProjectName() {
128: return (projectName);
129: }
130:
131: public void setProjectName(String projectName) {
132: this .projectName = projectName;
133: }
134:
135: public XPDLDataField() {
136: }
137:
138: public Object clone() throws java.lang.CloneNotSupportedException {
139: return super.clone();
140: }
141:
142: }
|