maspack.properties
Enum PropertyMode

java.lang.Object
  extended by java.lang.Enum<PropertyMode>
      extended by maspack.properties.PropertyMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PropertyMode>

public enum PropertyMode
extends java.lang.Enum<PropertyMode>


Enum Constant Summary
Explicit
          Indicates that a property value is explicitly set, and should not be inherited from matching properties in an ancestor hierarchy.
Inactive
          Indicates that a property value is inactive.
Inherited
          Indicates that a property value is to be inherited from the closest explicitly-set matching property in the ancestor hierarchy.
Void
          Indicates no mode value.
 
Method Summary
static PropertyMode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PropertyMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Explicit

public static final PropertyMode Explicit
Indicates that a property value is explicitly set, and should not be inherited from matching properties in an ancestor hierarchy.


Inherited

public static final PropertyMode Inherited
Indicates that a property value is to be inherited from the closest explicitly-set matching property in the ancestor hierarchy.


Inactive

public static final PropertyMode Inactive
Indicates that a property value is inactive. As with Inherited, its value is to be inherited from the closest explicitly-set matching property in the ancestor hierarchy. However, when an inactive value is set, it's mode is not automatically set to Explicit and its new value it not propagated to hierarchy descendants.


Void

public static final PropertyMode Void
Indicates no mode value. Reserved for internal system use.

Method Detail

values

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

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

valueOf

public static PropertyMode 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
java.lang.NullPointerException - if the argument is null