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

pack-priv final Class XmlElementRefQuick

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

Auto-generated, do not edit.

Field Summary

Modifier and TypeField and Description
private final XmlElementRef

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<XmlElementRef>
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
public String
namespace()

Implements jakarta.xml.bind.annotation.XmlElementRef.namespace.

This parameter and name() are used to determine the XML element for the JavaBean property.

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
required()

Implements jakarta.xml.bind.annotation.XmlElementRef.required.

Customize the element declaration to be required.

public Class<T>
type()

Implements jakarta.xml.bind.annotation.XmlElementRef.type.

The Java type being referenced.

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

Field Detail

coreback to summary
private final XmlElementRef core

Constructor Detail

XmlElementRefQuickback to summary
public XmlElementRefQuick(Locatable upstream, XmlElementRef core)

Method Detail

annotationTypeback to summary
public Class<XmlElementRef> 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.XmlElementRef.name.

Annotations
@Override
namespaceback to summary
public String namespace()

Implements jakarta.xml.bind.annotation.XmlElementRef.namespace.

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

This parameter and name() are used to determine the XML element for the JavaBean property.

If type() is JAXBElement.class , then namespace() and name() point to a factory method with XmlElementDecl. The XML element name is the element name from the factory method's XmlElementDecl annotation or if an element from its substitution group (of which it is a head element) has been substituted in the XML document, then the element name is from the XmlElementDecl on the substituted element.

If type() is not JAXBElement.class, then the XML element name is the XML element name statically associated with the type using the annotation XmlRootElement on the type. If the type is not annotated with an XmlElementDecl, then it is an error.

If type() is not JAXBElement.class, then this value must be "".

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
requiredback to summary
public boolean required()

Implements jakarta.xml.bind.annotation.XmlElementRef.required.

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

Customize the element declaration to be required.

If required() is true, then Javabean property is mapped to an XML schema element declaration with minOccurs="1". maxOccurs is "1" for a single valued property and "unbounded" for a multivalued property.

If required() is false, then the Javabean property is mapped to XML Schema element declaration with minOccurs="0". maxOccurs is "1" for a single valued property and "unbounded" for a multivalued property.

For compatibility with Jakarta XML Binding, this property defaults to true, despite the fact that XmlElement#required() defaults to false.

Annotations
@Override
typeback to summary
public Class<T> type()

Implements jakarta.xml.bind.annotation.XmlElementRef.type.

Doc from jakarta.xml.bind.annotation.XmlElementRef.type.

The Java type being referenced.

If the value is DEFAULT.class, the type is inferred from the the type of the JavaBean property.

Annotations
@Override