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