public final class ScopedMethodInfo extends Object
XmlElementDecl.scope attribute defined. For example here comes global
(not scoped) and scoped element with the same name age but different namespaces:
@XmlElementDecl(namespace = "http://foo.bar/extra", name = "age")
public JAXBElement<String> createAge(String value) {
return new JAXBElement<String>(new QName("http://foo.bar/extra", "age"), String.class, null, value);
}
@XmlElementDecl(namespace = "http://foo.bar/scope", name = "age", scope = Container.class)
public JAXBElement<String> createReturnAge(String value) {
return new JAXBElement<String>(new QName("http://foo.bar/scope", "age"), String.class, Container.class, value);
}
| Modifier and Type | Field and Description |
|---|---|
String |
name
Element name ("post-office").
|
String |
namespace
Element namespace ("http://foo.bar").
|
com.sun.codemodel.JType |
type
Element type (
String). |
| Constructor and Description |
|---|
ScopedMethodInfo(String name,
String namespace,
com.sun.codemodel.JType type) |
Copyright © 2022–2023. All rights reserved.