Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.model.annotation

pack-priv final Class XmlElementWrapperQuick

extends Quick
implements XmlElementWrapper
Class Inheritance
All Implemented Interfaces
jakarta.xml.bind.annotation.XmlElementWrapper, java.lang.annotation.Annotation
Imports
java.lang.annotation.Annotation, jakarta.xml.bind.annotation.XmlElementWrapper, org.glassfish.jaxb.core.v2.model.annotation.Locatable

Auto-generated, do not edit.

Field Summary

Modifier and TypeField and Description
private final XmlElementWrapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<XmlElementWrapper>
annotationType()

Implements java.lang.annotation.Annotation.annotationType.

Returns the annotation interface of this annotation.

protected Annotation
getAnnotation()

Implements abstract org.glassfish.jaxb.runtime.v2.model.annotation.Quick.getAnnotation.

Gets the annotation object that this object is wrapping.

public String
name()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.name.

Name of the XML wrapper element.

public String
namespace()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.namespace.

XML target namespace of the XML wrapper element.

protected Quick
newInstance(Locatable upstream, Annotation core)

Implements abstract org.glassfish.jaxb.runtime.v2.model.annotation.Quick.newInstance.

Factory method to create a new instance of the same kind.

public boolean
nillable()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.nillable.

If true, the absence of the collection is represented by using xsi:nil='true'.

public boolean
required()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.required.

Customize the wrapper element declaration to be required.

Inherited from org.glassfish.jaxb.runtime.v2.model.annotation.Quick:
getLocationgetUpstreamtoString

Field Detail

coreback to summary
private final XmlElementWrapper core

Constructor Detail

XmlElementWrapperQuickback to summary
public XmlElementWrapperQuick(Locatable upstream, XmlElementWrapper core)

Method Detail

annotationTypeback to summary
public Class<XmlElementWrapper> annotationType()

Implements java.lang.annotation.Annotation.annotationType.

Doc from java.lang.annotation.Annotation.annotationType.

Returns the annotation interface of this annotation.

Annotations
@Override
getAnnotationback to summary
protected Annotation getAnnotation()

Implements abstract org.glassfish.jaxb.runtime.v2.model.annotation.Quick.getAnnotation.

Doc from org.glassfish.jaxb.runtime.v2.model.annotation.Quick.getAnnotation.

Gets the annotation object that this object is wrapping.

Annotations
@Override
nameback to summary
public String name()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.name.

Doc from jakarta.xml.bind.annotation.XmlElementWrapper.name.

Name of the XML wrapper element. By default, the XML wrapper element name is derived from the JavaBean property name.

Annotations
@Override
namespaceback to summary
public String namespace()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.namespace.

Doc from jakarta.xml.bind.annotation.XmlElementWrapper.namespace.

XML target namespace of the XML wrapper element.

If the value is "##default", then the namespace is determined as follows:

  1. If the enclosing package has XmlSchema annotation, and its elementFormDefault is QUALIFIED, then the namespace of the enclosing class.
  2. Otherwise "" (which produces unqualified element in the default namespace.
Annotations
@Override
newInstanceback to summary
protected Quick newInstance(Locatable upstream, Annotation core)

Implements abstract org.glassfish.jaxb.runtime.v2.model.annotation.Quick.newInstance.

Doc from org.glassfish.jaxb.runtime.v2.model.annotation.Quick.newInstance.

Factory method to create a new instance of the same kind. A object also works as a factory of itself

Annotations
@Override
nillableback to summary
public boolean nillable()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.nillable.

Doc from jakarta.xml.bind.annotation.XmlElementWrapper.nillable.

If true, the absence of the collection is represented by using xsi:nil='true'. Otherwise, it is represented by the absence of the element.

Annotations
@Override
requiredback to summary
public boolean required()

Implements jakarta.xml.bind.annotation.XmlElementWrapper.required.

Doc from jakarta.xml.bind.annotation.XmlElementWrapper.required.

Customize the wrapper element declaration to be required.

If required() is true, then the corresponding generated XML schema element declaration will have minOccurs="1", to indicate that the wrapper element is always expected.

Note that this only affects the schema generation, and not the unmarshalling or marshalling capability. This is simply a mechanism to let users express their application constraints better.

Annotations
@Override