com.softwareag.mdm.instance
Interface ValueContextForValidation

All Superinterfaces:
ValueContext
All Known Subinterfaces:
ValueContextForInputValidation

public interface ValueContextForValidation
extends ValueContext

This container-interface adds to the basic ValueContext interface the services for adding validation messages.


Method Summary
 void addError(String aMessage)
           
 void addInfo(String aMessage)
           
 void addMessage(UserMessage msg)
          Adds the validation message specified.
 void addWarning(String aMessage)
           
 boolean hasErrorsOnNode()
          Returns true if the current node has errors.
 
Methods inherited from interface com.softwareag.mdm.instance.ValueContext
displayOccurrence, formatOccurrence, getHome, getNode, getNode, getValue, getValue
 

Method Detail

addMessage

public void addMessage(UserMessage msg)
Adds the validation message specified.

The implementation of this method ensures the attachment of the message added to the node that is currently validated. Hence the caller of this method does not need to bring informations on the node being validated (its name or location). For example, depending on the user interface context, the message will be displayed with an hyperlink to the node, or it is displayed under the UI component attached to the node.


addError

public void addError(String aMessage)

addInfo

public void addInfo(String aMessage)

addWarning

public void addWarning(String aMessage)

hasErrorsOnNode

public boolean hasErrorsOnNode()
Returns true if the current node has errors.



(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.