net.java.properties
Enum PropertyEvent.Type

java.lang.Object
  extended by java.lang.Enum<PropertyEvent.Type>
      extended by net.java.properties.PropertyEvent.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PropertyEvent.Type>
Enclosing class:
PropertyEvent<T>

public static enum PropertyEvent.Type
extends java.lang.Enum<PropertyEvent.Type>


Enum Constant Summary
CHANGE
          The value has been changed but normllay it is still the same object.
ELEMENT_ADD
          An element has been added.
ELEMENT_PUT
          An element in a map like structure has been added.
ELEMENT_REMOVE
          An element has been removed.
ELEMENT_SET
          An element has been set and thus exchanged another object.
SET
          A normal set which would notmally mean that the new value is a different object.
WRAPPED
          The event is just wrapping another event.
 
Method Summary
static PropertyEvent.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PropertyEvent.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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

SET

public static final PropertyEvent.Type SET
A normal set which would notmally mean that the new value is a different object.


CHANGE

public static final PropertyEvent.Type CHANGE
The value has been changed but normllay it is still the same object.


ELEMENT_ADD

public static final PropertyEvent.Type ELEMENT_ADD
An element has been added.


ELEMENT_REMOVE

public static final PropertyEvent.Type ELEMENT_REMOVE
An element has been removed.


ELEMENT_SET

public static final PropertyEvent.Type ELEMENT_SET
An element has been set and thus exchanged another object.


ELEMENT_PUT

public static final PropertyEvent.Type ELEMENT_PUT
An element in a map like structure has been added.


WRAPPED

public static final PropertyEvent.Type WRAPPED
The event is just wrapping another event.

Method Detail

values

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

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

valueOf

public static PropertyEvent.Type 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


Copyright © 2007 MiG InfoCom AB. All Rights Reserved.