jcreek.representation
Class EntityTypeNotMatchedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjcreek.util.CreekException
              extended byjcreek.representation.EntityTypeNotMatchedException
All Implemented Interfaces:
java.io.Serializable

public class EntityTypeNotMatchedException
extends CreekException

Title: EntityTypeNotMatchedException

Description: Thrown when an attempt is made to instanciate an EntityType with an entity that do not match the pattern expressed by this type.

Version:
1.0
Author:
Frode Sørmo
See Also:
Serialized Form

Constructor Summary
EntityTypeNotMatchedException(Entity entity, java.lang.Class entityType)
          Creates a new EntityTypeNotMatchedException.
 
Method Summary
 Entity getEntity()
          Returns the entity that the was attempted to be instanciated.
 java.lang.Class getEntityTypeClass()
          Returns the class of the EntityType subclass.
 
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

EntityTypeNotMatchedException

public EntityTypeNotMatchedException(Entity entity,
                                     java.lang.Class entityType)
Creates a new EntityTypeNotMatchedException.

Parameters:
entity - The entity that is attempted instanciated.
entityType - The subclass of EntityType this entity do not currently match.
Method Detail

getEntity

public Entity getEntity()
Returns the entity that the was attempted to be instanciated.


getEntityTypeClass

public java.lang.Class getEntityTypeClass()
Returns the class of the EntityType subclass.



Created at IDI, NTNU by the Artificial Intelligence and Learning group