/** * Sets the value for the {@code LocalName} or {@code ScopedName}. * This method is called at unmarshalling-time by JAXB. * * @param code the new name. * @throws IllegalStateException if a name is already defined. */ public final void setValue(final NameValue code) throws IllegalStateException { ensureUndefined(); if (code != null) { name = code.getName(); } }
/** * Sets the value for the {@code LocalName} or {@code ScopedName}. * This method is called at unmarshalling-time by JAXB. * * @param code the new name. * @throws IllegalStateException if a name is already defined. */ public final void setValue(final NameValue code) throws IllegalStateException { ensureUndefined(); if (code != null) { name = code.getName(); } }