001package ca.uhn.fhir.model.api;
002
003/*
004 * #%L
005 * HAPI FHIR - Core Library
006 * %%
007 * Copyright (C) 2014 - 2021 Smile CDR, Inc.
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 *
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 *
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023import java.util.List;
024
025public interface ICompositeElement extends IElement {
026
027        /**
028         * Returns a list containing all child elements matching a given type
029         * 
030         * @param theType The type to match. If set to null, all child elements will be returned
031         * 
032         * @deprecated This method is not used by HAPI at this point, so there isn't much
033         * point to keeping it around. We are not deleting it just so that we don't break
034         * existing implementer code, but you do not need to supply an implementation
035         * of this code in your own structures. Deprecated in HAPI FHIR 2.3 (Jan 2017). 
036         * See See <a href="https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/hapi-fhir/AeV2hTDt--E/6EOgRA8YBwAJ"> for
037         * a discussion about this.
038         */
039        @Deprecated
040        <T extends IElement>
041        List<T> getAllPopulatedChildElementsOfType(Class<T> theType);
042        
043}