001package ca.uhn.fhir.model.base.composite; 002 003import java.util.List; 004 005import ca.uhn.fhir.model.api.IDatatype; 006import ca.uhn.fhir.model.api.IResource; 007import ca.uhn.fhir.util.CoverageIgnore; 008 009/* 010 * #%L 011 * HAPI FHIR - Core Library 012 * %% 013 * Copyright (C) 2014 - 2022 Smile CDR, Inc. 014 * %% 015 * Licensed under the Apache License, Version 2.0 (the "License"); 016 * you may not use this file except in compliance with the License. 017 * You may obtain a copy of the License at 018 * 019 * http://www.apache.org/licenses/LICENSE-2.0 020 * 021 * Unless required by applicable law or agreed to in writing, software 022 * distributed under the License is distributed on an "AS IS" BASIS, 023 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 024 * See the License for the specific language governing permissions and 025 * limitations under the License. 026 * #L% 027 */ 028 029public abstract class BaseContainedDt implements IDatatype { 030 031 private static final long serialVersionUID = 1L; 032 033 public abstract List<? extends IResource> getContainedResources(); 034 035 /** 036 * NOT SUPPORTED - Throws {@link UnsupportedOperationException} 037 */ 038 @Override 039 @CoverageIgnore 040 public List<String> getFormatCommentsPost() { 041 throw new UnsupportedOperationException(); 042 } 043 044 /** 045 * NOT SUPPORTED - Throws {@link UnsupportedOperationException} 046 */ 047 @Override 048 @CoverageIgnore 049 public List<String> getFormatCommentsPre() { 050 throw new UnsupportedOperationException(); 051 } 052 053 /** 054 * Returns false 055 */ 056 @Override 057 @CoverageIgnore 058 public boolean hasFormatComment() { 059 return false; 060 } 061 062}