com.sun.xml.bind.v2.schemagen
Enum Form

java.lang.Object
  extended by java.lang.Enum<Form>
      extended by com.sun.xml.bind.v2.schemagen.Form
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Form>

 enum Form
extends java.lang.Enum<Form>

Represents the form default value.


Enum Constant Summary
QUALIFIED
           
UNQUALIFIED
           
UNSET
           
 
Method Summary
(package private) abstract  void declare(java.lang.String attName, Schema schema)
          Writes the attribute on the generated <schema> element.
static Form get(javax.xml.bind.annotation.XmlNsForm xnf)
          Gets the constant the corresponds to the given XmlNsForm.
static Form valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Form[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 void writeForm(LocalElement e, javax.xml.namespace.QName tagName)
          Given the effective 'form' value, write (or suppress) the @form attribute on the generated XML.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

QUALIFIED

public static final Form QUALIFIED

UNQUALIFIED

public static final Form UNQUALIFIED

UNSET

public static final Form UNSET
Method Detail

values

public static final Form[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Form c : Form.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Form valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

declare

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


writeForm

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


get

public static Form get(javax.xml.bind.annotation.XmlNsForm xnf)
Gets the constant the corresponds to the given XmlNsForm.