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

pack-priv final Class XmlAnyElementQuick

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

Auto-generated, do not edit.

Field Summary

Modifier and TypeField and Description
private final XmlAnyElement

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Class<XmlAnyElement>
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 boolean
lax()

Implements jakarta.xml.bind.annotation.XmlAnyElement.lax.

Controls the unmarshaller behavior when it sees elements known to the current JAXBContext.

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 Class<T>
value()

Implements jakarta.xml.bind.annotation.XmlAnyElement.value.

Specifies the DomHandler which is responsible for actually converting XML from/to a DOM-like data structure.

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

Field Detail

coreback to summary
private final XmlAnyElement core

Constructor Detail

XmlAnyElementQuickback to summary
public XmlAnyElementQuick(Locatable upstream, XmlAnyElement core)

Method Detail

annotationTypeback to summary
public Class<XmlAnyElement> 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
laxback to summary
public boolean lax()

Implements jakarta.xml.bind.annotation.XmlAnyElement.lax.

Doc from jakarta.xml.bind.annotation.XmlAnyElement.lax.

Controls the unmarshaller behavior when it sees elements known to the current JAXBContext.

When false
If false, all the elements that match the property will be unmarshalled to DOM, and the property will only contain DOM elements.
When true
If true, when an element matches a property marked with XmlAnyElement is known to JAXBContext (for example, there's a class with XmlRootElement that has the same tag name, or there's XmlElementDecl that has the same tag name), the unmarshaller will eagerly unmarshal this element to the Jakarta XML Binding object, instead of unmarshalling it to DOM. Additionally, if the element is unknown but it has a known xsi:type, the unmarshaller eagerly unmarshals the element to a JAXBElement, with the unknown element name and the JAXBElement value is set to an instance of the Jakarta XML Binding mapping of the known xsi:type.

As a result, after the unmarshalling, the property can become heterogeneous; it can have both DOM nodes and some Jakarta XML Binding objects at the same time.

This can be used to emulate the "lax" wildcard semantics of the W3C XML Schema.

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
valueback to summary
public Class<T> value()

Implements jakarta.xml.bind.annotation.XmlAnyElement.value.

Doc from jakarta.xml.bind.annotation.XmlAnyElement.value.

Specifies the DomHandler which is responsible for actually converting XML from/to a DOM-like data structure.

Annotations
@Override