org.netbeans.modules.xml.xam
Enum Model.State

java.lang.Object
  extended by java.lang.Enum<Model.State>
      extended by org.netbeans.modules.xml.xam.Model.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Model.State>
Enclosing interface:
Model<C extends Component<C>>

public static enum Model.State
extends java.lang.Enum<Model.State>

State of the model. VALID - Source is well-formed and model is in-sync. NOT_WELL_FORMED - Source is not well-formed, model is not synced. NOT_SYNCED - Source is well-formed, but there was error from last sync.


Enum Constant Summary
NOT_SYNCED
           
NOT_WELL_FORMED
           
VALID
           
 
Method Summary
static Model.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Model.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
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

VALID

public static final Model.State VALID

NOT_WELL_FORMED

public static final Model.State NOT_WELL_FORMED

NOT_SYNCED

public static final Model.State NOT_SYNCED
Method Detail

values

public static final Model.State[] 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(Model.State c : Model.State.values())
        System.out.println(c);

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

valueOf

public static Model.State 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