com.hp.hpl.jena.enhanced
Class UnsupportedPolymorphismException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.hp.hpl.jena.shared.JenaException
                  extended by com.hp.hpl.jena.enhanced.UnsupportedPolymorphismException
All Implemented Interfaces:
Serializable

public class UnsupportedPolymorphismException
extends JenaException

Exception to throw if an enhanced graph does not support polymorphism to a specific class. The exception records the "bad" class and node for later reporting.

See Also:
Serialized Form

Constructor Summary
UnsupportedPolymorphismException(EnhNode node, Class<?> type)
          Initialise this exception with the node that couldn't be polymorphed and the class it couldn't be polymorphed to.
 
Method Summary
 Class<?> getBadClass()
          Answer the class that the node couldn't be polymorphed to
 EnhGraph getBadGraph()
          Answer the (enhanced) Graph of the node that couldn't be polymorphed; may be null if that node had no attached model.
 Object getBadNode()
          Answer the node that couldn't be polymorphed.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsupportedPolymorphismException

public UnsupportedPolymorphismException(EnhNode node,
                                        Class<?> type)
Initialise this exception with the node that couldn't be polymorphed and the class it couldn't be polymorphed to.

Method Detail

getBadGraph

public EnhGraph getBadGraph()
Answer the (enhanced) Graph of the node that couldn't be polymorphed; may be null if that node had no attached model.


getBadClass

public Class<?> getBadClass()
Answer the class that the node couldn't be polymorphed to


getBadNode

public Object getBadNode()
Answer the node that couldn't be polymorphed.



Licenced under the Apache License, Version 2.0