cz.cuni.amis.pogamut.sposh
Enum PoshTreeEvent

Package class diagram package PoshTreeEvent
java.lang.Object
  extended by java.lang.Enum<PoshTreeEvent>
      extended by cz.cuni.amis.pogamut.sposh.PoshTreeEvent
All Implemented Interfaces:
Serializable, Comparable<PoshTreeEvent>

public enum PoshTreeEvent
extends Enum<PoshTreeEvent>

Enum for events that can change the POSH plan.

Author:
Honza

Enum Constant Summary
CHILD_NODE_MOVED
          Child was moved TODO: Not enough info, where was it before?
NEW_CHILD_NODE
          PoshDataNode has a new child PoshDataNode
NODE_DELETED
          PoshDataNode is the deleted node, but probably not necessary
 
Method Summary
static PoshTreeEvent valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PoshTreeEvent[] 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

NEW_CHILD_NODE

public static final PoshTreeEvent NEW_CHILD_NODE
PoshDataNode has a new child PoshDataNode


NODE_DELETED

public static final PoshTreeEvent NODE_DELETED
PoshDataNode is the deleted node, but probably not necessary


CHILD_NODE_MOVED

public static final PoshTreeEvent CHILD_NODE_MOVED
Child was moved TODO: Not enough info, where was it before?

Method Detail

values

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

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

valueOf

public static PoshTreeEvent 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


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.