org.millscript.commons.alert
Class Culprit

java.lang.Object
  extended by org.millscript.commons.alert.Culprit
Direct Known Subclasses:
Phase

public class Culprit
extends java.lang.Object

This class represents an individual culprit in a mishap. A culprit has a type and associated value, similar to a key-value pair in a map.


Constructor Summary
Culprit(java.lang.String a, java.lang.Object b)
          Creates a new culprit, with the specified type and value.
 
Method Summary
 java.lang.String getType()
          Returns this culprits type.
 java.lang.Object getValue()
          Returns this culprits value.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Culprit

public Culprit(java.lang.String a,
               java.lang.Object b)
Creates a new culprit, with the specified type and value.

Parameters:
a - the culprit type
b - the culprit value
Method Detail

getType

public java.lang.String getType()
Returns this culprits type.

Returns:
this culprits type

getValue

public java.lang.Object getValue()
Returns this culprits value.

Returns:
this culprits value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.