com.ibm.websphere.management.configservice
Class ValidationResult.ValidationMessage

java.lang.Object
  |
  +--com.ibm.websphere.management.configservice.ValidationResult.ValidationMessage
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
ValidationResult

public static class ValidationResult.ValidationMessage
extends java.lang.Object
implements java.io.Serializable

This class defines the data structure for a single validation message.

See Also:
Serialized Form

Constructor Summary
ValidationResult.ValidationMessage(java.lang.String msg, java.lang.Object targetObject, int severity, int lineNo)
          Constructor.
 
Method Summary
 int getLineNo()
          Returns the line number inside the configuration document where the target object is defined.
 java.lang.String getMessage()
          Returns the content of the message.
 int getSeverity()
          Returns the severity of the validation message.
 java.lang.Object getTargetObject()
          Returns the config data that this validation message is for.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationResult.ValidationMessage

public ValidationResult.ValidationMessage(java.lang.String msg,
                                          java.lang.Object targetObject,
                                          int severity,
                                          int lineNo)
Constructor. Should never be called by end user.

Method Detail

getMessage

public java.lang.String getMessage()
Returns the content of the message. This message is localized, thus can be displayed to end user directly.


getTargetObject

public java.lang.Object getTargetObject()
Returns the config data that this validation message is for. If TargetObject is a configData, this value is ObjectName that can be used to query or modify the configData using ConfigService.


getSeverity

public int getSeverity()
Returns the severity of the validation message. The smaller number indicates severer problem.


getLineNo

public int getLineNo()
Returns the line number inside the configuration document where the target object is defined.



 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.