001: /**
002: *
003: */package com.bostechcorp.cbesb.ui.componentflow.componentFlowEditor.diagram.wizards.httpExtra.models;
004:
005: import java.util.ArrayList;
006: import java.util.HashMap;
007: import java.util.List;
008:
009: /**
010: * @author LPS
011: *
012: */
013: public class SchematicWSDLmodel {
014:
015: private String suName = "";
016: private String wsName = "";
017: private List<ServiceOperation> operations = new ArrayList<ServiceOperation>();
018: private HashMap<String, String> xsdFiles = new HashMap<String, String>();
019:
020: /**
021: * @return the operations
022: */
023: public List<ServiceOperation> getOperations() {
024: return operations;
025: }
026:
027: /**
028: * @param operations the operations to set
029: */
030: public void setOperations(List<ServiceOperation> operations) {
031: this .operations = operations;
032: }
033:
034: /**
035: * @return the suName
036: */
037: public String getSuName() {
038: return suName;
039: }
040:
041: /**
042: * @param suName the suName to set
043: */
044: public void setSuName(String suName) {
045: this .suName = suName;
046: }
047:
048: /**
049: * @return the wsName
050: */
051: public String getWsName() {
052: return wsName;
053: }
054:
055: /**
056: * @param wsName the wsName to set
057: */
058: public void setWsName(String wsName) {
059: this .wsName = wsName;
060: }
061:
062: /**
063: * @return the xsdFiles
064: */
065: public HashMap<String, String> getXsdFileNames() {
066: return xsdFiles;
067: }
068:
069: /**
070: * @param xsdFiles the xsdFiles to set
071: */
072: public void setXsdFiles(HashMap<String, String> xsdFiles) {
073: this .xsdFiles = xsdFiles;
074: }
075:
076: /**
077: * @param index
078: * @param element
079: * @see java.util.List#add(int, java.lang.Object)
080: */
081: public void addOperation(int index, ServiceOperation element) {
082: operations.add(index, element);
083: }
084:
085: /**
086: * @param o
087: * @return
088: * @see java.util.List#add(java.lang.Object)
089: */
090: public boolean addOperation(ServiceOperation o) {
091: return operations.add(o);
092: }
093:
094: /**
095: * @param o
096: * @return
097: * @see java.util.List#contains(java.lang.Object)
098: */
099: public boolean containsOperation(Object o) {
100: return operations.contains(o);
101: }
102:
103: /**
104: * @param index
105: * @return
106: * @see java.util.List#get(int)
107: */
108: public ServiceOperation getOperation(int index) {
109: return operations.get(index);
110: }
111:
112: /**
113: * @param o
114: * @return
115: * @see java.util.List#remove(java.lang.Object)
116: */
117: public boolean removeOperation(Object o) {
118: return operations.remove(o);
119: }
120:
121: /**
122: * @param index
123: * @param element
124: * @return
125: * @see java.util.List#set(int, java.lang.Object)
126: */
127: public ServiceOperation setOperation(int index,
128: ServiceOperation element) {
129: return operations.set(index, element);
130: }
131:
132: /**
133: * @param key
134: * @return
135: * @see java.util.HashMap#containsKey(java.lang.Object)
136: */
137: public boolean containsNamespace(Object key) {
138: return xsdFiles.containsKey(key);
139: }
140:
141: /**
142: * @param value
143: * @return
144: * @see java.util.HashMap#containsValue(java.lang.Object)
145: */
146: public boolean containsFileName(Object value) {
147: return xsdFiles.containsValue(value);
148: }
149:
150: /**
151: * @param key
152: * @return
153: * @see java.util.HashMap#get(java.lang.Object)
154: */
155: public String getFileName(Object key) {
156: return xsdFiles.get(key);
157: }
158:
159: /**
160: * @param key
161: * @param value
162: * @return
163: * @see java.util.HashMap#put(java.lang.Object, java.lang.Object)
164: */
165: public String putFileName(String key, String value) {
166: return xsdFiles.put(key, value);
167: }
168:
169: /**
170: * @param key
171: * @return
172: * @see java.util.HashMap#remove(java.lang.Object)
173: */
174: public String removeFile(Object key) {
175: return xsdFiles.remove(key);
176: }
177:
178: }
|