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

Package class diagram package DuplicatePropertyDeclarationException
java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by de.smartics.properties.api.core.app.PropertyRootException
                  extended by de.smartics.properties.api.core.domain.PropertyException
                      extended by de.smartics.properties.api.core.domain.DuplicatePropertyDeclarationException
All Implemented Interfaces:
Serializable

public class DuplicatePropertyDeclarationException
     
     
extends PropertyException

Signals that a property descriptor has been encountered twice.

See Also:
Serialized Form

Constructor Summary
DuplicatePropertyDeclarationException(PropertyDescriptor currentDescriptor, PropertyDescriptor newDescriptor)
          Constructor.
 
Method Summary
 PropertyDescriptor getCurrentDescriptor()
          Returns the previously encountered and currently active property.
 PropertyDescriptor getNewDescriptor()
          Returns the new encountered property descriptor with the same key.
 
Methods inherited from class de.smartics.properties.api.core.domain.PropertyException
getPropertyKey
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicatePropertyDeclarationException

public DuplicatePropertyDeclarationException(PropertyDescriptor currentDescriptor,
                                             PropertyDescriptor newDescriptor)
Constructor.

Implementation Notes:
Since this is an exception we do not check that the key of the current descriptor and that of the new descriptor matches. But these two keys must be equal.
Parameters:
currentDescriptor - the previously encountered and currently active property.
newDescriptor - the new encountered property descriptor with the same key.
Method Detail

getCurrentDescriptor

public final PropertyDescriptor getCurrentDescriptor()
Returns the previously encountered and currently active property.

Returns:
the previously encountered and currently active property.

getNewDescriptor

public final PropertyDescriptor getNewDescriptor()
Returns the new encountered property descriptor with the same key.

Returns:
the new encountered property descriptor with the same key.


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