com.sun.xml.bind.v2.schemagen
class Form extends Enum<Form>
Field Summary | |
---|---|
boolean | isEffectivelyQualified
What's the effective value? |
static Form | QUALIFIED |
static Form | UNQUALIFIED |
static Form | UNSET |
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 | |
---|---|
void | declare(String attName, Schema schema) |
void | declare(String attName, Schema schema) |
void | declare(String attName, Schema schema) |
abstract void | declare(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 Form | get(XmlNsForm xnf)
Gets the constant the corresponds to the given XmlNsForm. |
static Form | valueOf(String name) Static factory to return the enum constant pertaining to the given string name. |
void | writeForm(LocalElement e, QName tagName)
Given the effective 'form' value, write (or suppress) the @form attribute
on the generated XML. |
void | writeForm(LocalAttribute a, QName tagName) |
for(Form c : Form.VALUES) System.out.println(c);
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.
Throws: IllegalArgumentException if this enum class has no constant with the specified name.