Interface EMediplanExtendable

All Known Implementing Classes:
EMediplan, EMediplanExtension, EMediplanMedicament, EMediplanPatient, EMediplanPatientMedicalData

public interface EMediplanExtendable
Interface for objects that contain extensions. The extension property itself is to be defined by the implementing object, so that the JSON field name can be customized in principle. This interface provides convenience methods for extensions with a default implementation.
See Also:
  • Method Details

    • getExtensions

      List<@NonNull EMediplanExtension> getExtensions()
      Gets the list of this object's extensions.
      Returns:
      The list of extensions.
    • addExtension

      default void addExtension(@NonNull EMediplanExtension extension)
      Adds an extension to the list of this object's extensions.
      Parameters:
      extension - The extension to be added.
    • findExtension

      default @Nullable EMediplanExtension findExtension(String schema, String name)
      Finds an extension within the embedded list of extensions whose schema and name match the provided ones. If the list of embedded extensions is null or empty, or if no match is found, null is returned.
      Parameters:
      schema - The schema to be matched.
      name - The field name to be matched.
      Returns:
      The matching extension, if any, null otherwise.