KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > upgrade > common > arguments > ParsedArgument


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 package com.sun.enterprise.tools.upgrade.common.arguments;
25
26 /**
27  *
28  * @author Hans Hrasna
29  */

30
31 import java.util.*;
32 import com.sun.enterprise.tools.upgrade.common.CommonInfoModel;
33
34 public class ParsedArgument {
35     
36     private Class JavaDoc instructionHandler;
37     private String JavaDoc mneumonic;
38     private Vector parameters;
39     private CommonInfoModel commonInfo;
40     private HashMap interactiveMap;
41     
42     public ParsedArgument(Class JavaDoc instHandler, String JavaDoc cmd, Vector params, CommonInfoModel infoModel, HashMap iMap) {
43         instructionHandler = instHandler;
44         mneumonic = cmd;
45         parameters = params;
46         commonInfo = infoModel;
47         interactiveMap = iMap;
48     }
49     
50     public Class JavaDoc getHandler() {
51         return instructionHandler;
52     }
53     
54     public String JavaDoc getMneumonic() {
55         return mneumonic;
56     }
57     
58     public Vector getParameters() {
59         return parameters;
60     }
61     
62     public CommonInfoModel getCommonInfo() {
63         return commonInfo;
64     }
65     
66     public HashMap getInteractiveMap() {
67         return interactiveMap;
68     }
69 }
Popular Tags