org.jomc.sequences
Class SequenceChangeEvent.Status

Package class diagram package SequenceChangeEvent.Status
java.lang.Object
  extended by org.jomc.sequences.SequenceChangeEvent.Status
All Implemented Interfaces:
Serializable
Enclosing class:
SequenceChangeEvent

public static class SequenceChangeEvent.Status
extends Object
implements Serializable

Status of a SequenceChangeEvent.

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
static int ERROR
          Constant for an error.
static int INFORMATION
          Constant for an information.
static int NOTIFICATION
          Constant for a notification.
static int WARNING
          Constant for a warning.
 
Constructor Summary
Constructor and Description
SequenceChangeEvent.Status(int type, String identifier)
          Creates a new Status instance taking a type constant and an identifier of the instance.
 
Method Summary
Modifier and Type Method and Description
 boolean equals(Object o)
          Indicates whether some other object is "equal to" this one by comparing the value of property identifier.
 String getIdentifier()
          Gets the identifier of status.
 int getType()
          Gets the type of the status.
 int hashCode()
          Returns a hash code value for the object.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INFORMATION

public static final int INFORMATION
Constant for an information.

See Also:
Constant Field Values

NOTIFICATION

public static final int NOTIFICATION
Constant for a notification.

See Also:
Constant Field Values

WARNING

public static final int WARNING
Constant for a warning.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Constant for an error.

See Also:
Constant Field Values
Constructor Detail

SequenceChangeEvent.Status

public SequenceChangeEvent.Status(int type,
                                  String identifier)
Creates a new Status instance taking a type constant and an identifier of the instance.

Parameters:
type - The type of the new status.
identifier - The identifier of the status.
Method Detail

getType

public int getType()
Gets the type of the status.

Returns:
The type of the status.

getIdentifier

public String getIdentifier()
Gets the identifier of status.

Returns:
The identifier of the status.

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
A string representation of the object.

equals

public boolean equals(Object o)
Indicates whether some other object is "equal to" this one by comparing the value of property identifier.

Overrides:
equals in class Object
Parameters:
o - The reference object with which to compare.
Returns:
true if this object is the same as the obj argument; false otherwise.

hashCode

public int hashCode()
Returns a hash code value for the object.

Overrides:
hashCode in class Object
Returns:
A hash code value for this object.


Copyright © 2005-2010 The JOMC Project. All Rights Reserved.