com.ibm.websphere.management.configservice

Class ValidationResult.ValidationMessage

  1. java.lang.Object
  2. extended bycom.ibm.websphere.management.configservice.ValidationResult.ValidationMessage
All implemented interfaces:
java.io.Serializable
Enclosing class:
ValidationResult

  1. public static class ValidationResult.ValidationMessage
  2. extends java.lang.Object
  3. implements java.io.Serializable
This class defines the data structure for a single validation message.
See Also:
Serialized Form

Constructor Summary

Constructor and Description
ValidationResult.ValidationMessage(java.lang.String msg,java.lang.Object targetObject,int severity,int lineNo)
Constructor.

Method Summary

Modifier and Type Method and Description
  1. int
getLineNo()
Returns the line number inside the configuration document where the target object is defined.
  1. java.lang.String
getMessage()
Returns the content of the message.
  1. int
getSeverity()
Returns the severity of the validation message.
  1. 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

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

Method Detail

getMessage

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

getTargetObject

  1. 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

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

getLineNo

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