@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 package-info.java
...
Class in package using defined namespaces...
Copyright © 2018 Apache. All rights reserved.