org.andromda.core.metafacade
Class ModelValidationMessage

java.lang.Object
  extended by org.andromda.core.metafacade.ModelValidationMessage
All Implemented Interfaces:
java.io.Serializable

public class ModelValidationMessage
extends java.lang.Object
implements java.io.Serializable

Stores the validation messages that are collected during model validation.

Author:
Chad Brandon
See Also:
Serialized Form

Constructor Summary
ModelValidationMessage(MetafacadeBase metafacade, java.lang.String message)
          Constructs a new instance of MetafacadeValidationMessage taking a metafacade instance and a message indicating what has been violated.
ModelValidationMessage(MetafacadeBase metafacade, java.lang.String name, java.lang.String message)
          Constructs a new instance of MetafacadeValidationMessage taking a metafacade instance the name of the validation constraint and the actual message text indicating what has been violated.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getMessage()
          Gets the actual message text.
 java.lang.Class getMetafacadeClass()
          Gets the class of the metafacade to which this validation message applies.
 java.lang.String getMetafacadeName()
          Gets the name of the metafacade to which this validation message applies.
 java.lang.String getName()
          Gets the name of the validation constraint.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelValidationMessage

public ModelValidationMessage(MetafacadeBase metafacade,
                              java.lang.String message)
Constructs a new instance of MetafacadeValidationMessage taking a metafacade instance and a message indicating what has been violated.

Parameters:
metafacade - the metafacade being validated.
message - the message to to communitate about the validation.

ModelValidationMessage

public ModelValidationMessage(MetafacadeBase metafacade,
                              java.lang.String name,
                              java.lang.String message)
Constructs a new instance of MetafacadeValidationMessage taking a metafacade instance the name of the validation constraint and the actual message text indicating what has been violated.

Parameters:
metafacade - the metafacade being validated.
name - the name of the model element being validated.
message - the message to to communitate about the validation.
Method Detail

getName

public java.lang.String getName()
Gets the name of the validation constraint.

Returns:
the constraint name.

getMessage

public java.lang.String getMessage()
Gets the actual message text.

Returns:
Returns the message.

getMetafacadeName

public java.lang.String getMetafacadeName()
Gets the name of the metafacade to which this validation message applies.

Returns:
Returns the metafacade.

getMetafacadeClass

public java.lang.Class getMetafacadeClass()
Gets the class of the metafacade to which this validation message applies.

Returns:
the metafacade Class.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.