com.softwareag.mdm.schema
Interface SchemaNodeContext

All Known Subinterfaces:
ConstraintContext, TriggerSetupContext, ValueFunctionContext

public interface SchemaNodeContext

This interface defines common services for setting up a schema component.


Method Summary
 void addError(String aMessage)
          Adds the error message specified.
 void addError(String aMessage, Exception ex)
          Adds the error message and the exception specified.
 void addInfo(String aMessage)
          Adds an information message specified.
 void addMessage(UserMessage aMessage)
          Attaches the message specified to the current component.
 void addWarning(String aMessage)
          Adds the warning message specified.
 SchemaNode getSchemaNode()
          Returns the node on which the component is attached.
 

Method Detail

addMessage

public void addMessage(UserMessage aMessage)
Attaches the message specified to the current component. This method is used rather than addError(String), addWarning(String), addInfo(String), when message must be internationalized.

When displaying the message, the implementation will add information about the component type and location (so it is not needed to bring such information in the string argument).


addError

public void addError(String aMessage)
Adds the error message specified.

When displaying the message, the implementation will add information about the component type and location (so it is not needed to bring such information in the string argument).


addError

public void addError(String aMessage,
                     Exception ex)
Adds the error message and the exception specified.

When displaying the message, the implementation will add information about the component type and location (so it is not needed to bring such information in the string argument).


addInfo

public void addInfo(String aMessage)
Adds an information message specified.

When displaying the message, the implementation will add information about the component type and location (so it is not needed to bring such information in the string argument).


addWarning

public void addWarning(String aMessage)
Adds the warning message specified.

When displaying the message, the implementation will add information about the component type and location (so it is not needed to bring such information in the string argument).


getSchemaNode

public SchemaNode getSchemaNode()
Returns the node on which the component is attached.



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