01: // THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
02: // CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
03: // BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
04: // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
05: // OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
06: // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
07: // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
08: // OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
09: // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
10: // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
11: // EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
12: // POSSIBILITY OF SUCH DAMAGE.
13: //
14: // Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
15: package com.metaboss.sdlctools.services.jdktools;
16:
17: /** This structure contains comilation output */
18: public final class SourceType {
19: /** Type describing the simple source code, which only requires basic classes (rt.jar) to compile */
20: public static final SourceType SIMPLE = new SourceType("SIMPLE");
21: /** Type describing the source code of the java class which is used at the run time
22: * of the MetaBoss generated software. It is given access to all
23: * basic run time libraries of MetaBoss */
24: public static final SourceType METABOSS_RUNTIME = new SourceType(
25: "METABOSS_RUNTIME");
26: /** Type describing the source code of the java class which is used in the the metaboss tool
27: * (i.e. during MetaBoss dev time). This includes all MetaBoss model user jars on the classpath */
28: public static final SourceType METABOSS_DEVTIME = new SourceType(
29: "METABOSS_DEVTIME");
30:
31: public boolean equals(Object pObject) {
32: if (pObject == null)
33: return false;
34: if (!(pObject instanceof SourceType))
35: return false;
36: SourceType lObject = (SourceType) pObject;
37: if (!(lObject.mSourceTypeName.equals(mSourceTypeName)))
38: return false;
39: return true;
40: }
41:
42: private String mSourceTypeName = null;
43:
44: /** Creates the source type with the specified name */
45: private SourceType(String pSourceTypeName) {
46: mSourceTypeName = pSourceTypeName;
47: }
48: }
|