com.reverseXSL.types
Class Impact

java.lang.Object
  extended by com.reverseXSL.types.Impact
All Implemented Interfaces:
java.io.Serializable

public final class Impact
extends java.lang.Object
implements java.io.Serializable

Impact singletons specify the impact-level of a given exception onto a processed message (FATAL or WARNING), and not onto the system in general. It is a strong typed enumeration class compatible with JDK1.4.

Valid enumeration values are all like Impact.CODE where CODE must be a valid code; for the list of codes see table.

See Also:
com.reverseXSL.parser.ParserException, Serialized Form

Field Summary
static Impact FATAL
          FATAL exception for the relevant message; it implies that the message cannot be processed to the end, and will be rejected; the parser may be allowed to continue and record more than one FATAL exception before rejecting a message.
static Impact[] table
          May be used to iterate over all possible enumeration values.
static Impact WARNING
          WARNING impact exception affecting a message; the message may in theory be processed entirely and even distributed to recipients, but with warnings.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String toCode()
           
 java.lang.String toString()
          Provides a default string rendering with long name only.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FATAL

public static final Impact FATAL
FATAL exception for the relevant message; it implies that the message cannot be processed to the end, and will be rejected; the parser may be allowed to continue and record more than one FATAL exception before rejecting a message. But in any case, one or more FATAL exceptions shall cause message rejection next to parsing.


table

public static final Impact[] table
May be used to iterate over all possible enumeration values.


WARNING

public static final Impact WARNING
WARNING impact exception affecting a message; the message may in theory be processed entirely and even distributed to recipients, but with warnings.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toCode

public java.lang.String toCode()

toString

public java.lang.String toString()
Provides a default string rendering with long name only.

Overrides:
toString in class java.lang.Object