com.clarkparsia.stardog.api
Class ConnectionViews

java.lang.Object
  extended by com.clarkparsia.stardog.api.ConnectionViews

public final class ConnectionViews
extends Object

Utility class to support the polymorphic views of a connection.

Since:
0.7
Version:
0.7
Author:
Michael Grove

Method Summary
<I extends Connection,O extends Connection>
O
as(I theConn, Class<O> theView)
          Return the view of the provided connection, or null if the view is not supported.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

as

public <I extends Connection,O extends Connection> O as(I theConn,
                                                        Class<O> theView)
                        throws StardogException
Return the view of the provided connection, or null if the view is not supported.

Parameters:
theConn - the connection
theView - the new view of the connection
Returns:
the connection w/ a new view
Throws:
StardogException - if there was an exception viewing the connection as the new type


Copyright © 2010-2013 Clark & Parsia. All Rights Reserved.