Top Description Methods
org.eclipse.persistence.oxm.annotations

public @Interface XmlElementNillable

extends Annotation
Annotations
@Target:TYPE, PACKAGE
@Retention:RUNTIME
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Purpose: Provide a means of setting nillable on type and package level, which is not possible with standard XmlElement annotation.

Type level annotation overrides package level annotation.

Standard XmlElement with nillable attribute overrides the value of XmlElementNillable annotation.

See Also
jakarta.xml.bind.annotation.XmlElement

Method Summary

Modifier and TypeMethod and Description
public boolean
nillable()

(Optional) Customize the element declaration to be nillable.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nillableback to summary
public boolean nillable()

(Optional) Customize the element declaration to be nillable. If nillable() is true, then the JavaBean property is mapped to a XML Schema nillable element declaration.