001/*
002 * SPDX-FileCopyrightText: none
003 * SPDX-License-Identifier: CC0-1.0
004 */
005
006package gov.nist.secauto.metaschema.databind.model;
007
008import gov.nist.secauto.metaschema.core.model.IValued;
009
010import java.lang.reflect.ParameterizedType;
011import java.lang.reflect.Type;
012
013import edu.umd.cs.findbugs.annotations.NonNull;
014
015public interface IValuedMutable extends IValued {
016  /**
017   * Set the provided value on the provided object. The provided object must be of
018   * the item's type associated with this instance.
019   *
020   * @param parentObject
021   *          the object
022   * @param value
023   *          a value, which may be a simple {@link Type} or a
024   *          {@link ParameterizedType} for a collection
025   */
026  void setValue(@NonNull Object parentObject, Object value);
027}