View Javadoc
1   package ca.uhn.fhir.model.base.composite;
2   
3   import java.util.List;
4   
5   import ca.uhn.fhir.model.api.IDatatype;
6   import ca.uhn.fhir.model.api.IResource;
7   import ca.uhn.fhir.util.CoverageIgnore;
8   
9   /*
10   * #%L
11   * HAPI FHIR - Core Library
12   * %%
13   * Copyright (C) 2014 - 2018 University Health Network
14   * %%
15   * Licensed under the Apache License, Version 2.0 (the "License");
16   * you may not use this file except in compliance with the License.
17   * You may obtain a copy of the License at
18   * 
19   *      http://www.apache.org/licenses/LICENSE-2.0
20   * 
21   * Unless required by applicable law or agreed to in writing, software
22   * distributed under the License is distributed on an "AS IS" BASIS,
23   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24   * See the License for the specific language governing permissions and
25   * limitations under the License.
26   * #L%
27   */
28  
29  public abstract class BaseContainedDt implements IDatatype {
30  
31  	private static final long serialVersionUID = 1L;
32  
33  	public abstract List<? extends IResource> getContainedResources();
34  
35  	/**
36  	 * NOT SUPPORTED - Throws {@link UnsupportedOperationException}
37  	 */
38  	@Override
39  	@CoverageIgnore
40  	public List<String> getFormatCommentsPost() {
41  		throw new UnsupportedOperationException();
42  	}
43  
44  	/**
45  	 * NOT SUPPORTED - Throws {@link UnsupportedOperationException}
46  	 */
47  	@Override
48  	@CoverageIgnore
49  	public List<String> getFormatCommentsPre() {
50  		throw new UnsupportedOperationException();
51  	}
52  
53  	/**
54  	 * Returns false
55  	 */
56  	@Override
57  	@CoverageIgnore
58  	public boolean hasFormatComment() {
59  		return false;
60  	}
61  
62  }