com.mindfusion.diagramming
Class NamedEnum

java.lang.Object
  extended by com.mindfusion.diagramming.NamedEnum
Direct Known Subclasses:
FlowLayoutTraits, HierarchicalLayoutTraits, LayeredLayoutTraits, SpringLayoutTraits, SwimlaneLayoutTraits, TreeLayoutTraits

public abstract class NamedEnum
extends java.lang.Object

Implements XML serialization of enumeration members.


Constructor Summary
protected NamedEnum(int value)
          Initializes a new instance of the NamedEnum class with the specified value.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Object.equals override.
static java.lang.String getName(java.lang.Object value)
          Returns the name of the specified NamedEnum value.
 int hashCode()
          Object.hashCode override.
 int value()
          Returns the underlying integer value associated with this NamedEnum.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedEnum

protected NamedEnum(int value)
Initializes a new instance of the NamedEnum class with the specified value.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Object.equals override.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Object.hashCode override.

Overrides:
hashCode in class java.lang.Object

getName

public static java.lang.String getName(java.lang.Object value)
Returns the name of the specified NamedEnum value.


value

public int value()
Returns the underlying integer value associated with this NamedEnum.