| /* |
| * Copyright (c) 1998, 2020 Oracle and/or its affiliates. All rights reserved. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0, |
| * or the Eclipse Distribution License v. 1.0 which is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| */ |
| |
| // Contributors: |
| // Denise Smith - 2.3 |
| package org.eclipse.persistence.testing.jaxb.xmlschema.model; |
| |
| import java.util.HashMap; |
| import java.util.Map; |
| import jakarta.xml.bind.annotation.XmlAccessType; |
| import jakarta.xml.bind.annotation.XmlAccessorType; |
| import jakarta.xml.bind.annotation.XmlAnyAttribute; |
| import jakarta.xml.bind.annotation.XmlSeeAlso; |
| import jakarta.xml.bind.annotation.XmlType; |
| import javax.xml.namespace.QName; |
| |
| |
| /** |
| * |
| * This type is extended by almost all schema types |
| * to allow attributes from other namespaces to be |
| * added to user schemas. |
| * |
| * |
| * <p>Java class for openAttrs complex type. |
| * |
| * <p>The following schema fragment specifies the expected content contained within this class. |
| * |
| * <pre> |
| * <complexType name="openAttrs"> |
| * <complexContent> |
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
| * <anyAttribute processContents='lax' namespace='##other'/> |
| * </restriction> |
| * </complexContent> |
| * </complexType> |
| * </pre> |
| * |
| * |
| */ |
| @XmlAccessorType(XmlAccessType.FIELD) |
| @XmlType(name = "openAttrs") |
| @XmlSeeAlso({ |
| Redefine.class, |
| Schema.class, |
| Annotation.class, |
| Annotated.class |
| }) |
| public class OpenAttrs { |
| |
| @XmlAnyAttribute |
| private Map<QName, String> otherAttributes = new HashMap<QName, String>(); |
| |
| /** |
| * Gets a map that contains attributes that aren't bound to any typed property on this class. |
| * |
| * <p> |
| * the map is keyed by the name of the attribute and |
| * the value is the string value of the attribute. |
| * |
| * the map returned by this method is live, and you can add new attribute |
| * by updating the map directly. Because of this design, there's no setter. |
| * |
| * |
| * @return |
| * always non-null |
| */ |
| public Map<QName, String> getOtherAttributes() { |
| return otherAttributes; |
| } |
| |
| } |