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:
- public static class ValidationResult.ValidationMessage
- extends java.lang.Object
- implements java.io.Serializable
See Also:
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 |
---|---|
|
getLineNo()
Returns the line number inside the configuration document where the target object is defined.
|
|
getMessage()
Returns the content of the message.
|
|
getSeverity()
Returns the severity of the validation message.
|
|
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.