@Documented @Target(value=PACKAGE) @Retention(value=RUNTIME) @Inherited public @interface XmlSchema
| Modifier and Type | Optional Element and Description |
|---|---|
String |
namespace
Sets the default XML namespace URL for all classes in this and child packages.
|
String |
prefix
Sets the default XML prefix for all classes in this and child packages.
|
XmlNs[] |
xmlNs
Lists all namespace mappings to be used on all classes within this package.
|
public abstract String namespace
Must either be matched with a prefix() annotation, or an xmlNs() mapping with the same
@XmlNs(namespaceURI) value.
public abstract String prefix
Must either be matched with a namespace() annotation, or an xmlNs() mapping with the same
XmlNs.prefix() value.
public abstract XmlNs[] xmlNs
The purpose of this annotation is to allow namespace mappings to be defined in a single location and referred
to by name through just the @Xml(prefix) annotation.
Inherited by child packages.
Contents of
Class in package using defined namespaces...
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.