de.smartics.properties.api.core.domain
Class PropertyValueChangeMessageBean

Package class diagram package PropertyValueChangeMessageBean
java.lang.Object
  extended by de.smartics.exceptions.i18n.AbstractMessageBean
      extended by de.smartics.properties.api.core.app.AbstractBaseMessageBean
          extended by de.smartics.properties.api.core.domain.PropertyMessageBean
              extended by de.smartics.properties.api.core.domain.PropertyDescriptorMessageBean
                  extended by de.smartics.properties.api.core.domain.PropertyValueChangeMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable

public class PropertyValueChangeMessageBean
     
     
extends PropertyDescriptorMessageBean

Provides context information for errors concerning a failed change of a property value.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Constructor Summary
PropertyValueChangeMessageBean(PropertyCode code, PropertyDescriptor propertyDescriptor, Object currentValue, Object rejectedValue)
          Default constructor.
 
Method Summary
 Serializable getCurrentValue()
          Returns the current value of the property that has not been changed.
 Serializable getRejectedValue()
          Returns the value the property was requested to change to but has been rejected.
 
Methods inherited from class de.smartics.properties.api.core.domain.PropertyDescriptorMessageBean
getPropertyDescriptor
 
Methods inherited from class de.smartics.properties.api.core.domain.PropertyMessageBean
getPropertyKey
 
Methods inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
getCause, getCauseTrail, getCauseTrail, getClassLoader, getCode, getLocalizedInfo, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedTextMessage, getLocalizedTextMessage, getLocalizedTextMessage, getMessage, getMessage, getMessage, getMessages, getMessages, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyValueChangeMessageBean

public PropertyValueChangeMessageBean(PropertyCode code,
                                      PropertyDescriptor propertyDescriptor,
                                      Object currentValue,
                                      Object rejectedValue)
Default constructor.

Parameters:
code - the error or exception code of the exception.
propertyDescriptor - the descriptor of the property raising the exception.
currentValue - the current value of the property that has not been changed.
rejectedValue - the value the property was requested to change to but has been rejected.
Method Detail

getCurrentValue

public final Serializable getCurrentValue()
Returns the current value of the property that has not been changed.

Returns:
the current value of the property that has not been changed.

getRejectedValue

public final Serializable getRejectedValue()
Returns the value the property was requested to change to but has been rejected.

Returns:
the value the property was requested to change to but has been rejected.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.