001/*
002 * SPDX-FileCopyrightText: none
003 * SPDX-License-Identifier: CC0-1.0
004 */
005
006package gov.nist.secauto.metaschema.databind.model.annotations;
007
008import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
009import static java.lang.annotation.RetentionPolicy.RUNTIME;
010
011import java.lang.annotation.Retention;
012import java.lang.annotation.Target;
013
014/**
015 * Used to identify the XML namespace to use for a set of annotated Java
016 * classes.
017 */
018@Retention(RUNTIME)
019@Target(ANNOTATION_TYPE)
020public @interface XmlNs {
021  /**
022   * Suggests a namespace prefix to use for generated code.
023   * <p>
024   * If the value is "##none", then there is no prefix defined.
025   *
026   * @return the associated namespace prefix
027   */
028  String prefix() default "##none";
029
030  /**
031   * Defines the Namespace URI for this namespace.
032   *
033   * @return the associated namespace
034   */
035  String namespace();
036}