1   /*
2    * SPDX-FileCopyrightText: none
3    * SPDX-License-Identifier: CC0-1.0
4    */
5   
6   package gov.nist.secauto.metaschema.core.model;
7   
8   public interface IFieldInstance extends IField, INamedModelInstance, IValuedInstance {
9     boolean DEFAULT_FIELD_IN_XML_WRAPPED = true;
10  
11    @Override
12    IFieldDefinition getDefinition();
13  
14    /**
15     * Determines if the field is configured to have a wrapper in XML.
16     *
17     * @return {@code true} if an XML wrapper is required, or {@code false}
18     *         otherwise
19     * @see #DEFAULT_FIELD_IN_XML_WRAPPED
20     */
21    default boolean isInXmlWrapped() {
22      return DEFAULT_FIELD_IN_XML_WRAPPED;
23    }
24  }