com.clarkparsia.stardog.api
Class ConnectionViews
java.lang.Object
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 |
|
as(I theConn,
Class<O> theView)
Return the view of the provided connection, or null if the view is not supported. |
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 connectiontheView - 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.