com.sun.xml.bind.v2.schemagen

Class Form

class Form extends Enum<Form>

Represents the form default value.
Field Summary
booleanisEffectivelyQualified
What's the effective value?
static FormQUALIFIED
static FormUNQUALIFIED
static FormUNSET
static List<Form>VALUES
An immutable list containing the values comprising this enum class in the order they're declared.
Constructor Summary
Form(XmlNsForm xnf, boolean effectivelyQualified)
Method Summary
voiddeclare(String attName, Schema schema)
voiddeclare(String attName, Schema schema)
voiddeclare(String attName, Schema schema)
abstract voiddeclare(String attName, Schema schema)
Writes the attribute on the generated <schema> element.
List<Form>family()
Returns an immutable list containing the values comprising this enum class in the order they're declared.
static Formget(XmlNsForm xnf)
Gets the constant the corresponds to the given XmlNsForm.
static FormvalueOf(String name)
Static factory to return the enum constant pertaining to the given string name.
voidwriteForm(LocalElement e, QName tagName)
Given the effective 'form' value, write (or suppress) the @form attribute on the generated XML.
voidwriteForm(LocalAttribute a, QName tagName)

Field Detail

isEffectivelyQualified

public final boolean isEffectivelyQualified
What's the effective value? UNSET means unqualified per XSD spec.)

QUALIFIED

public static final Form QUALIFIED

UNQUALIFIED

public static final Form UNQUALIFIED

UNSET

public static final Form UNSET

VALUES

public static final List<Form> VALUES
An immutable list containing the values comprising this enum class in the order they're declared. This field may be used to iterate over the constants as follows:
for(Form c : Form.VALUES)
    System.out.println(c);

Constructor Detail

Form

Form(XmlNsForm xnf, boolean effectivelyQualified)

Method Detail

declare

void declare(String attName, Schema schema)

declare

void declare(String attName, Schema schema)

declare

void declare(String attName, Schema schema)

declare

abstract void declare(String attName, Schema schema)
Writes the attribute on the generated <schema> element.

family

public final List<Form> family()
Returns an immutable list containing the values comprising this enum class in the order they're declared. This instance method simply returns VALUES. Few programmers should have any need to use this method. It is provided for use by sophisticated enum-based data structures to prevent the need for reflective access to VALUES.

Returns: an immutable list containing the values comprising this enum class, in the order they're declared.

get

public static Form get(XmlNsForm xnf)
Gets the constant the corresponds to the given XmlNsForm.

valueOf

public static final Form valueOf(String name)
Static factory to return the enum constant pertaining to the given string name. The string must match exactly an identifier used to declare an enum constant in this type.

Throws: IllegalArgumentException if this enum class has no constant with the specified name.

writeForm

public void writeForm(LocalElement e, QName tagName)
Given the effective 'form' value, write (or suppress) the @form attribute on the generated XML.

writeForm

public void writeForm(LocalAttribute a, QName tagName)