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:
Serializable, Comparable<Form>

 enum Form
extends Enum<Form>

Represents the form default value.


Enum Constant Summary
QUALIFIED
           
UNQUALIFIED
           
UNSET
           
 
Field Summary
 boolean isEffectivelyQualified
          What's the effective value? UNSET means unqualified per XSD spec.)
 
Method Summary
(package private) abstract  void declare(String attName, com.sun.xml.bind.v2.schemagen.xmlschema.Schema schema)
          Writes the attribute on the generated <schema> element.
static Form get(XmlNsForm xnf)
          Gets the constant the corresponds to the given XmlNsForm.
static Form valueOf(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 are declared.
 void writeForm(com.sun.xml.bind.v2.schemagen.xmlschema.LocalAttribute a, QName tagName)
           
 void writeForm(com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement e, 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, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
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
Field Detail

isEffectivelyQualified

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

Method Detail

values

public static Form[] values()
Returns an array containing the constants of this enum type, in the order they are 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 are declared

valueOf

public static Form valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

declare

abstract void declare(String attName,
                      com.sun.xml.bind.v2.schemagen.xmlschema.Schema schema)
Writes the attribute on the generated <schema> element.


writeForm

public void writeForm(com.sun.xml.bind.v2.schemagen.xmlschema.LocalElement e,
                      QName tagName)
Given the effective 'form' value, write (or suppress) the @form attribute on the generated XML.


writeForm

public void writeForm(com.sun.xml.bind.v2.schemagen.xmlschema.LocalAttribute a,
                      QName tagName)

get

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