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

Package class diagram package PropertyDescriptorClashingMessageBean
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.PropertyDescriptorClashingMessageBean
All Implemented Interfaces:
de.smartics.exceptions.i18n.MessageBean, Serializable

public class PropertyDescriptorClashingMessageBean
     
     
extends PropertyDescriptorMessageBean

Provides context information for errors concerning two clashing property descriptors.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class de.smartics.exceptions.i18n.AbstractMessageBean
code, localizedInfo
 
Constructor Summary
PropertyDescriptorClashingMessageBean(PropertyCode code, PropertyDescriptor propertyDescriptor, PropertyDescriptor clashingDescriptor)
          Convenience constructor with no root cause.
PropertyDescriptorClashingMessageBean(PropertyCode code, Throwable cause, PropertyDescriptor propertyDescriptor, PropertyDescriptor clashingDescriptor)
          Default constructor.
 
Method Summary
 PropertyDescriptor getClashingDescriptor()
          Returns the clashing property descriptor with the same key.
 
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

PropertyDescriptorClashingMessageBean

public PropertyDescriptorClashingMessageBean(PropertyCode code,
                                             PropertyDescriptor propertyDescriptor,
                                             PropertyDescriptor clashingDescriptor)
Convenience constructor with no root cause.

Parameters:
code - the error or exception code of the exception.
propertyDescriptor - the descriptor of the property raising the exception.
clashingDescriptor - the clashing property descriptor with the same key.

PropertyDescriptorClashingMessageBean

public PropertyDescriptorClashingMessageBean(PropertyCode code,
                                             Throwable cause,
                                             PropertyDescriptor propertyDescriptor,
                                             PropertyDescriptor clashingDescriptor)
Default constructor.

Parameters:
code - the error or exception code of the exception.
cause - the cause (which is saved for later retrieval by the AbstractMessageBean.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
propertyDescriptor - the descriptor of the property raising the exception.
clashingDescriptor - the clashing property descriptor with the same key.
Method Detail

getClashingDescriptor

public final PropertyDescriptor getClashingDescriptor()
Returns the clashing property descriptor with the same key.

Returns:
the clashing property descriptor with the same key.


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