Top Description Fields Constructors Methods
org.glassfish.jaxb.runtime.v2.schemagen

pack-priv sealed Enum Form

extends Enum<Form>
Class Inheritance
Imports
org.glassfish.jaxb.runtime.v2.schemagen.xmlschema.LocalAttribute, .LocalElement, .Schema, com.sun.xml.txw2.TypedXmlWriter, jakarta.xml.bind.annotation.XmlNsForm, javax.xml.namespace.QName

Represents the form default value.
Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
public final boolean
isEffectivelyQualified

What's the effective value?

public static final Form
public static final Form
public static final Form
private final XmlNsForm
xnf

The same constant defined in the spec.

Constructor Summary

AccessConstructor and Description
private
Form(XmlNsForm xnf, boolean effectivelyQualified)

Method Summary

Modifier and TypeMethod and Description
private void
pack-priv abstract void
declare(String attName, Schema schema)

Writes the attribute on the generated <schema> element.

public static Form
get(XmlNsForm xnf)

Gets the constant the corresponds to the given XmlNsForm.

public static Form
public static Form[]
public void
writeForm(LocalElement e, QName tagName)

Given the effective 'form' value, write (or suppress) the @form attribute on the generated XML.

public void
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

isEffectivelyQualifiedback to summary
public final boolean isEffectivelyQualified

What's the effective value? UNSET means unqualified per XSD spec.)

QUALIFIEDback to summary
public static final Form QUALIFIED
UNQUALIFIEDback to summary
public static final Form UNQUALIFIED
UNSETback to summary
public static final Form UNSET
xnfback to summary
private final XmlNsForm xnf

The same constant defined in the spec.

Constructor Detail

Formback to summary
private Form(XmlNsForm xnf, boolean effectivelyQualified)

Method Detail

_writeFormback to summary
private void _writeForm(TypedXmlWriter e, QName tagName)
declareback to summary
pack-priv abstract void declare(String attName, Schema schema)

Writes the attribute on the generated <schema> element.

getback to summary
public static Form get(XmlNsForm xnf)

Gets the constant the corresponds to the given XmlNsForm.

valueOfback to summary
public static Form valueOf(String name)
valuesback to summary
public static Form[] values()
writeFormback to summary
public void writeForm(LocalElement e, QName tagName)

Given the effective 'form' value, write (or suppress) the @form attribute on the generated XML.

writeFormback to summary
public void writeForm(LocalAttribute a, QName tagName)