View Javadoc
1   package ca.uhn.fhir.context;
2   
3   import java.util.List;
4   
5   import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
6   
7   /*
8    * #%L
9    * HAPI FHIR - Core Library
10   * %%
11   * Copyright (C) 2014 University Health Network
12   * %%
13   * Licensed under the Apache License, Version 2.0 (the "License");
14   * you may not use this file except in compliance with the License.
15   * You may obtain a copy of the License at
16   * 
17   *      http://www.apache.org/licenses/LICENSE-2.0
18   * 
19   * Unless required by applicable law or agreed to in writing, software
20   * distributed under the License is distributed on an "AS IS" BASIS,
21   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22   * See the License for the specific language governing permissions and
23   * limitations under the License.
24   * #L%
25   */
26  
27  public class RuntimeSearchParam {
28  
29  	private String myDescription;
30  	private String myName;
31  	private SearchParamTypeEnum myParamType;
32  	private String myPath;
33  	private List<RuntimeSearchParam> myCompositeOf;
34  
35  	public RuntimeSearchParam(String theName, String theDescription, String thePath, SearchParamTypeEnum theParamType) {
36  		this(theName, theDescription, thePath, theParamType, null);
37  	}
38  
39  	public RuntimeSearchParam(String theName, String theDescription, String thePath, SearchParamTypeEnum theParamType, List<RuntimeSearchParam> theCompositeOf) {
40  		super();
41  		myName = theName;
42  		myDescription = theDescription;
43  		myPath = thePath;
44  		myParamType = theParamType;
45  		myCompositeOf = theCompositeOf;
46  	}
47  
48  	public List<RuntimeSearchParam> getCompositeOf() {
49  		return myCompositeOf;
50  	}
51  
52  	public String getDescription() {
53  		return myDescription;
54  	}
55  
56  	public String getName() {
57  		return myName;
58  	}
59  
60  	public SearchParamTypeEnum getParamType() {
61  		return myParamType;
62  	}
63  
64  	public String getPath() {
65  		return myPath;
66  	}
67  
68  }